summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorSayak Ghosh Choudhury <sayakc@nvidia.com>2012-10-05 21:24:24 +0530
committerDan Willemsen <dwillemsen@nvidia.com>2013-09-14 12:35:20 -0700
commit8b8837234b1a0a7b4042896c05696179d81fb72f (patch)
tree6829c5bbb31218e749bbe9a4a092302e29738882 /sound/pci
parentc3c493820a8338617ab938dbd26a3734ef9eca4b (diff)
alsa: hda: update max channel info from eld buffer
the max pcm channel info was not coming proper and was not matching eld buffer information. This fix is made to solve that issue. Bug 1046366 Change-Id: I8f3abe06cca5a3d7047c46df9e35cb635ceee5d9 Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com> Reviewed-on: http://git-master/r/141995 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Nikesh Oswal <noswal@nvidia.com> GVS: Gerrit_Virtual_Submit Reviewed-by: Scott Peterson <speterson@nvidia.com> Rebase-Id: Ra651a61cd14621090fcc72e3fe61093ecc6ab10b
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/hda_eld.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c
index aea57897f87c..604448fe4057 100644
--- a/sound/pci/hda/hda_eld.c
+++ b/sound/pci/hda/hda_eld.c
@@ -432,6 +432,7 @@ int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid,
hdmi_update_lpcm_sad_eld(codec, nid, eld, size);
codec->recv_dec_cap = 0;
+ codec->max_pcm_channels = 0;
for (i = 0; i < eld->sad_count; i++) {
if (eld->sad[i].format == AUDIO_CODING_TYPE_AC3) {
codec->recv_dec_cap |= (1 << AUDIO_CODING_TYPE_AC3);