alsa:hda: add alsa control for eac3 cap. of a dev.
Sayak Ghosh Choudhury [Tue, 28 May 2013 14:37:07 +0000 (19:37 +0530)]
The EAC3 capability of the device is collected from the eld buffer
and it is tranfered to the framework layer through hda capability
control.

Bug 1295255

Change-Id: Ib0f0aa04aab4515a58ac0761c69f080961013159
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/234093
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Reviewed-by: David Clark <dclark@nvidia.com>
GVS: Gerrit_Virtual_Submit

sound/pci/hda/hda_eld.c

index 01335a2..ab55014 100644 (file)
@@ -444,6 +444,8 @@ int snd_hdmi_get_eld(struct hdmi_eld *eld,
                        codec->recv_dec_cap |= (1 << AUDIO_CODING_TYPE_AC3);
                } else if (eld->sad[i].format == AUDIO_CODING_TYPE_DTS) {
                        codec->recv_dec_cap |= (1 << AUDIO_CODING_TYPE_DTS);
+               } else if (eld->sad[i].format == AUDIO_CODING_TYPE_EAC3) {
+                       codec->recv_dec_cap |= (1 << AUDIO_CODING_TYPE_EAC3);
                } else if (eld->sad[i].format == AUDIO_CODING_TYPE_LPCM) {
                        codec->max_pcm_channels =
                                eld->sad[i].channels > codec->max_pcm_channels ?