]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - Add suffix argument to snd_hda_add_vmaster()
authorTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2012 13:28:01 +0000 (14:28 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 3 Feb 2012 13:28:01 +0000 (14:28 +0100)
commit7aa885bfeac0a7e943abbeea63aecd3b2b12ec7d
tree464dd5828486ccedd5342a21a6607392b560af29
parent5a08745a7dcf44e9d9676600653fc9bc8a2fae4c
ALSA: hda - Add suffix argument to snd_hda_add_vmaster()

In most cases, the slave strings for vmaster are identical between
volumes and switches except for "xxx Volume" and "xxx Switch" suffix.
Now snd_hda_add_vmaster() takes the optional suffix argument so that
each string can be composed with the given suffix, and we can share the
slave name strings in both volume and switch calls nicely.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_codec.c
sound/pci/hda/hda_local.h
sound/pci/hda/patch_analog.c
sound/pci/hda/patch_conexant.c
sound/pci/hda/patch_realtek.c
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_via.c