mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 16:54:27 +00:00
ASoC: Intel: cht_bsw_nau8824: Fix jack_type to include SND_JACK_MICROPHONE
The nau8824 codec can detect whether a headset or plain headphones is inserted (as well as button presses on the headset) as such the jack_type passed to snd_soc_card_jack_new() should include SND_JACK_MICROPHONE. Signed-off-by: Hans de Goede <hdegoede@redhat.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
b18c6c3c77
commit
5aff078ac8
1 changed files with 1 additions and 1 deletions
|
@ -120,7 +120,7 @@ static int cht_codec_init(struct snd_soc_pcm_runtime *runtime)
|
||||||
* KEY_VOLUMEUP
|
* KEY_VOLUMEUP
|
||||||
* KEY_VOLUMEDOWN
|
* KEY_VOLUMEDOWN
|
||||||
*/
|
*/
|
||||||
jack_type = SND_JACK_HEADPHONE | SND_JACK_BTN_0 | SND_JACK_BTN_1 |
|
jack_type = SND_JACK_HEADSET | SND_JACK_BTN_0 | SND_JACK_BTN_1 |
|
||||||
SND_JACK_BTN_2 | SND_JACK_BTN_3;
|
SND_JACK_BTN_2 | SND_JACK_BTN_3;
|
||||||
ret = snd_soc_card_jack_new(runtime->card, "Headset", jack_type, jack,
|
ret = snd_soc_card_jack_new(runtime->card, "Headset", jack_type, jack,
|
||||||
cht_bsw_jack_pins, ARRAY_SIZE(cht_bsw_jack_pins));
|
cht_bsw_jack_pins, ARRAY_SIZE(cht_bsw_jack_pins));
|
||||||
|
|
Loading…
Add table
Reference in a new issue