diff options
author | Jaroslav Kysela <perex@perex.cz> | 2009-12-08 11:45:25 -0500 |
---|---|---|
committer | Jaroslav Kysela <perex@perex.cz> | 2009-12-15 03:33:17 -0500 |
commit | 9e3fd8719f624a43575b56a4777b1552399a8be8 (patch) | |
tree | 273a7f8a6e264eb74f966abb18f0a69608f62d88 /sound/pci/hda/patch_cirrus.c | |
parent | 5b0cb1d850c26893b1468b3a519433a1b7a176be (diff) |
ALSA: hda - introduce HDA_SUBDEV_AMP_FLAG (ControlAmp in proc)
The purpose of this changeset is to show information about amplifier
setting in the codec proc file. Something like:
Control: name="Front Playback Volume", index=0, device=0
ControlAmp: chs=3, dir=Out, idx=0, ofs=0
Control: name="Front Playback Switch", index=0, device=0
ControlAmp: chs=3, dir=In, idx=2, ofs=0
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci/hda/patch_cirrus.c')
-rw-r--r-- | sound/pci/hda/patch_cirrus.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/pci/hda/patch_cirrus.c b/sound/pci/hda/patch_cirrus.c index d0b8c6dc7322..e51f6658aa2c 100644 --- a/sound/pci/hda/patch_cirrus.c +++ b/sound/pci/hda/patch_cirrus.c | |||
@@ -500,6 +500,7 @@ static int add_mute(struct hda_codec *codec, const char *name, int index, | |||
500 | knew.private_value = pval; | 500 | knew.private_value = pval; |
501 | snprintf(tmp, sizeof(tmp), "%s %s Switch", name, dir_sfx[dir]); | 501 | snprintf(tmp, sizeof(tmp), "%s %s Switch", name, dir_sfx[dir]); |
502 | *kctlp = snd_ctl_new1(&knew, codec); | 502 | *kctlp = snd_ctl_new1(&knew, codec); |
503 | (*kctlp)->id.subdevice = HDA_SUBDEV_AMP_FLAG; | ||
503 | return snd_hda_ctl_add(codec, get_amp_nid_(pval), *kctlp); | 504 | return snd_hda_ctl_add(codec, get_amp_nid_(pval), *kctlp); |
504 | } | 505 | } |
505 | 506 | ||
@@ -513,6 +514,7 @@ static int add_volume(struct hda_codec *codec, const char *name, | |||
513 | knew.private_value = pval; | 514 | knew.private_value = pval; |
514 | snprintf(tmp, sizeof(tmp), "%s %s Volume", name, dir_sfx[dir]); | 515 | snprintf(tmp, sizeof(tmp), "%s %s Volume", name, dir_sfx[dir]); |
515 | *kctlp = snd_ctl_new1(&knew, codec); | 516 | *kctlp = snd_ctl_new1(&knew, codec); |
517 | (*kctlp)->id.subdevice = HDA_SUBDEV_AMP_FLAG; | ||
516 | return snd_hda_ctl_add(codec, get_amp_nid_(pval), *kctlp); | 518 | return snd_hda_ctl_add(codec, get_amp_nid_(pval), *kctlp); |
517 | } | 519 | } |
518 | 520 | ||