diff options
author | Sayak Ghosh Choudhury <sayakc@nvidia.com> | 2012-01-31 21:05:05 +0530 |
---|---|---|
committer | Dan Willemsen <dwillemsen@nvidia.com> | 2012-03-23 16:05:26 -0700 |
commit | 54458d39c2b2f5454f0f9544c9886202e66d1895 (patch) | |
tree | 11df800e91371b9110044870ecc07533e269f236 /sound/pci/hda/hda_eld.c | |
parent | cc27393d5c25171b377be78737bc275f7666345d (diff) |
ALSA:hda: add alsa control for query of device
alsa control is added to facilitate querying ac3 decode capability of
connected device. ac3 decode capability of the connected device is
updated in the ELD buffer. That information is updated in the
ALSA control structure.
Bug 909141
Bug 904553
Bug 920831
Change-Id: I81af196fc5dd85c5c87691393cf2f079611f9b47
Signed-off-by: Sayak Ghosh Choudhury <sayakc@nvidia.com>
Reviewed-on: http://git-master/r/83067
Reviewed-by: Automatic_Commit_Validation_User
Reviewed-by: Scott Peterson <speterson@nvidia.com>
Reviewed-by: Sumit Bhattacharya <sumitb@nvidia.com>
Rebase-Id: R70cf80867ed43840fa8f5549e00613cd25ae9508
Diffstat (limited to 'sound/pci/hda/hda_eld.c')
-rw-r--r-- | sound/pci/hda/hda_eld.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c index c1da422e085a..9c78d83d8e95 100644 --- a/sound/pci/hda/hda_eld.c +++ b/sound/pci/hda/hda_eld.c @@ -373,6 +373,11 @@ int snd_hdmi_get_eld(struct hdmi_eld *eld, } ret = hdmi_update_eld(eld, buf, size); + codec->ac3dec_capable = false; + for (i = 0; i < eld->sad_count; i++) { + if (eld->sad[i].format == AUDIO_CODING_TYPE_AC3) + codec->ac3dec_capable = true; + } error: return ret; |