summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_eld.c
diff options
context:
space:
mode:
authorNikesh Oswal <noswal@nvidia.com>2012-07-26 15:58:46 +0530
committerSimone Willett <swillett@nvidia.com>2012-08-02 09:37:28 -0700
commit93fa2d495c82c5b63572e62e8bba6a6acf3269f9 (patch)
tree44dba35d2495d83e11e5360df6ef537226d53887 /sound/pci/hda/hda_eld.c
parentece74a0888415460a005d52bcf2d5f6cf535597d (diff)
alsa: hda: add alsa ctl to query max channels
add alsa ctl to query maximum supported channels Bug: 998697 Signed-off-by: Nikesh Oswal <noswal@nvidia.com> Change-Id: Id2f0e6a62d2413615f13a0c18757c05610ef0c2c Reviewed-on: http://git-master/r/118602 Reviewed-by: Automatic_Commit_Validation_User Reviewed-by: Scott Peterson <speterson@nvidia.com>
Diffstat (limited to 'sound/pci/hda/hda_eld.c')
-rw-r--r--sound/pci/hda/hda_eld.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/pci/hda/hda_eld.c b/sound/pci/hda/hda_eld.c
index a8042e14f5de..862dd35260d0 100644
--- a/sound/pci/hda/hda_eld.c
+++ b/sound/pci/hda/hda_eld.c
@@ -427,6 +427,10 @@ 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_LPCM) {
+ codec->max_pcm_channels =
+ eld->sad[i].channels > codec->max_pcm_channels ?
+ eld->sad[i].channels : codec->max_pcm_channels;
}
}