mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
ALSA: hda/ca0132 - Add alt_functions unsolicited response
This patch fixes a previous oversight where the microphone unsolicited response would use the wrong input selection function. Signed-off-by: Connor McAdams <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
This commit is contained in:
parent
d97420d2b0
commit
a1b7f016a1
1 changed files with 6 additions and 1 deletions
|
|
@ -6744,7 +6744,12 @@ static void hp_callback(struct hda_codec *codec, struct hda_jack_callback *cb)
|
|||
|
||||
static void amic_callback(struct hda_codec *codec, struct hda_jack_callback *cb)
|
||||
{
|
||||
ca0132_select_mic(codec);
|
||||
struct ca0132_spec *spec = codec->spec;
|
||||
|
||||
if (spec->use_alt_functions)
|
||||
ca0132_alt_select_in(codec);
|
||||
else
|
||||
ca0132_select_mic(codec);
|
||||
}
|
||||
|
||||
static void ca0132_init_unsol(struct hda_codec *codec)
|
||||
|
|
|
|||
Loading…
Reference in a new issue