diff options
author | Sayak Ghosh Choudhury <sayakc@nvidia.com> | 2013-05-28 20:07:07 +0530 |
---|---|---|
committer | Riham Haidar <rhaidar@nvidia.com> | 2013-05-31 18:02:19 -0700 |
commit | df92ca95b1047113568f80689d3e0d7e6b723d5b (patch) | |
tree | 444a07b6ded55defe5ee2c689d4c9647ff848bea /sound | |
parent | d6f6d7291dde16f238dee903b1c97fdb80f9e3d8 (diff) |
alsa:hda: add alsa control for eac3 cap. of a dev.
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
Diffstat (limited to 'sound')
-rw-r--r-- | sound/pci/hda/hda_eld.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index 01335a26b584..ab55014604d0 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c @@ -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 ? |