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/233367
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Isaac Richards <irichards@nvidia.com>
Reviewed-by: David Clark <dclark@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>

sound/pci/hda/hda_eld.c

index 604448f..ab04eec 100644 (file)
@@ -438,6 +438,8 @@ int snd_hdmi_get_eld(struct hda_codec *codec, hda_nid_t nid,
                        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 ?