summaryrefslogtreecommitdiff
path: root/sound/pci/hda/hda_codec.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/hda_codec.c')
-rw-r--r--sound/pci/hda/hda_codec.c16
1 files changed, 13 insertions, 3 deletions
diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c
index 6e171eef07ee..91b2e4689175 100644
--- a/sound/pci/hda/hda_codec.c
+++ b/sound/pci/hda/hda_codec.c
@@ -2840,12 +2840,22 @@ static int snd_hda_spdif_out_switch_put(struct snd_kcontrol *kcontrol,
return change;
}
+int snd_hda_hdmi_decode_info(struct snd_kcontrol *kcontrol,
+ struct snd_ctl_elem_info *uinfo)
+{
+ uinfo->type = SNDRV_CTL_ELEM_TYPE_INTEGER;
+ uinfo->count = 1;
+ uinfo->value.integer.min = 0;
+ uinfo->value.integer.max = 0xFFFFFFFF;
+ return 0;
+}
+
static int snd_hda_hdmi_decode_get(struct snd_kcontrol *kcontrol,
struct snd_ctl_elem_value *ucontrol)
{
struct hda_codec *codec = snd_kcontrol_chip(kcontrol);
- ucontrol->value.integer.value[0] = codec->ac3dec_capable;
+ ucontrol->value.integer.value[0] = codec->recv_dec_cap;
return 0;
}
@@ -2880,8 +2890,8 @@ static struct snd_kcontrol_new dig_mixes[] = {
},
{
.iface = SNDRV_CTL_ELEM_IFACE_MIXER,
- .name = "AC3 Decode Capability",
- .info = snd_ctl_boolean_mono_info,
+ .name = "HDA Decode Capability",
+ .info = snd_hda_hdmi_decode_info,
.get = snd_hda_hdmi_decode_get,
},
{ } /* end */