diff options
author | Sayak Ghosh Choudhury <sayakc@nvidia.com> | 2012-04-24 20:09:09 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2013-09-14 01:12:33 -0700 |
commit | e6366cff5221fd3572f240c0402a53ce97a5b7d3 (patch) | |
tree | ff77fd3045ba0e0ae2a1c058aca16e337528cab0 /sound/pci/hda/patch_hdmi.c | |
parent | a3eed59c690050cf943cef00a4040c9573d16c1f (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>
Rebase-Id: R1ba4a7ad065cc589680966eecfdeea417d103d39
Diffstat (limited to 'sound/pci/hda/patch_hdmi.c')
-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 c3f33202d5f7..e975fe5661f6 100644 --- a/sound/pci/hda/patch_hdmi.c +++ b/sound/pci/hda/patch_hdmi.c @@ -1472,6 +1472,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); |