summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSayak Ghosh Choudhury <sayakc@nvidia.com>2012-10-05 21:24:24 +0530
committerSimone Willett <swillett@nvidia.com>2012-10-09 09:33:31 -0700
commitff340b4bfe750a587311df098783ded6afabf3b4 (patch)
tree24bc7f999a9922ad1f614864f03e832459a07734
parentc22007256036810632897643be108a1a495514d0 (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>
-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 cc15d09e8d99..01335a26b584 100644
--- a/sound/pci/hda/hda_eld.c
+++ b/sound/pci/hda/hda_eld.c
@@ -438,6 +438,7 @@ int snd_hdmi_get_eld(struct hdmi_eld *eld,
buf = eld->eld_buffer;
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);