]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: HDA: Create phantom jacks for fixed inputs and outputs
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 4 Jun 2012 07:33:51 +0000 (09:33 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 14 Jun 2012 10:59:35 +0000 (12:59 +0200)
commit57227c85acace5ed09b10b932608478bf8174b23
treee7b2634839fb7f698d1124a7b4d7a66065f5891a
parent33370de4dcf3c3373be1daec2251c1348d8ee49f
ALSA: HDA: Create phantom jacks for fixed inputs and outputs

PulseAudio sometimes have difficulties knowing that there is a
"Speaker" or "Internal Mic", if they have no individual volume
controls or selectors. As a result, only e g "Headphone" might
be created for a laptop, but no "Speaker".
To help out, create phantom jacks (that are always present,
at least for now) for "Speaker", "Internal Mic" etc, in case we
detect them.
The naming convention is e g "Speaker Phantom Jack".

In order not to pollute the /dev/input namespace with even more
devices, these are added to the kcontrols only, not the input devices.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h