]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda - A new flag to enforce prefix to each pin
authorTakashi Iwai <tiwai@suse.de>
Mon, 10 Apr 2017 15:12:33 +0000 (17:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Apr 2017 15:44:39 +0000 (17:44 +0200)
commit16be416ea3846188e78967bad09c70165053b2ee
treeca0134ade7afeaf706f7f311749812dde2d16e50
parentfa069414cf53074cde7b779d4e95b4b4c5b72467
ALSA: hda - A new flag to enforce prefix to each pin

This is a preliminary patch for a smooth multi-codec support, and it
introduces a new flag, force_pin_prefix, to struct hda_codec.
This flag is used to force to add the pin location prefix to each
input pin.  For example, when there is only one microphone pin,
usually the auto-parser assigns the string "Mic".  With this flag on,
it'll be like "Front Mic".  Also, the creation of "Master" or "PCM"
playback volume for a single pin is suppressed, too.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=195305
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_auto_parser.c
sound/pci/hda/hda_codec.h
sound/pci/hda/hda_generic.c