alsa: hda: update max channel info from eld buffer
Sayak Ghosh Choudhury [Fri, 5 Oct 2012 15:54:24 +0000 (20:54 +0530)]
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>

sound/pci/hda/hda_eld.c

index cc15d09..01335a2 100644 (file)
@@ -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);