diff options
author | Sayak Ghosh Choudhury <sayakc@nvidia.com> | 2012-04-24 20:09:09 +0530 |
---|---|---|
committer | Simone Willett <swillett@nvidia.com> | 2012-04-24 15:54:52 -0700 |
commit | 7704ad9bb06b97de75437700dc08549c99d16f0c (patch) | |
tree | 913ad6ac0f887534b0bc29383291ab7a2a8d0b12 /sound | |
parent | dfa00e184b5fe0d4d48fa62a15fc956de9b6b65c (diff) |
hdmi: Set INJECT_NULL_SAMPLE only for stereo streams
Bug 953210
Change-Id: Id40b3fe90174a2a8c9a6faf3f35f61d9f7eeb642
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/98477
Reviewed-by: Simone Willett <swillett@nvidia.com>
Tested-by: Simone Willett <swillett@nvidia.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/patch_hdmi.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c index fcc32f590874..5942395099ad 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -1112,6 +1112,12 @@ static int generic_hdmi_playback_pcm_prepare(struct hda_pcm_stream *hinfo, #if defined(CONFIG_SND_HDA_PLATFORM_NVIDIA_TEGRA) && defined(CONFIG_TEGRA_DC) if (codec->preset->id == 0x10de0020) { int err = 0; + + if (substream->runtime->channels == 2) + tegra_hdmi_audio_null_sample_inject(true); + else + tegra_hdmi_audio_null_sample_inject(false); + /* Set hdmi:audio freq and source selection*/ err = tegra_hdmi_setup_audio_freq_source( substream->runtime->rate, HDA); |