Skip to content

Commit ed93f97

Browse files
Conmanx360tiwai
authored andcommitted
ALSA: hda/ca0132 - Add AE-7 microphone selection commands.
Add AE-7 quirk data for setting of microphone. The AE-7 has no front panel connector, so only rear-mic/line-in have new commands. Signed-off-by: Connor McAdams <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 91b94a9 commit ed93f97

File tree

1 file changed

+21
-1
lines changed

1 file changed

+21
-1
lines changed

sound/pci/hda/patch_ca0132.c

+21-1
Original file line numberDiff line numberDiff line change
@@ -4997,6 +4997,15 @@ static int ca0132_alt_select_in(struct hda_codec *codec)
49974997
ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00);
49984998
tmp = FLOAT_THREE;
49994999
break;
5000+
case QUIRK_AE7:
5001+
ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00);
5002+
tmp = FLOAT_THREE;
5003+
chipio_set_conn_rate(codec, MEM_CONNID_MICIN2,
5004+
SR_96_000);
5005+
chipio_set_conn_rate(codec, MEM_CONNID_MICOUT2,
5006+
SR_96_000);
5007+
dspio_set_uint_param(codec, 0x80, 0x01, FLOAT_ZERO);
5008+
break;
50005009
default:
50015010
tmp = FLOAT_ONE;
50025011
break;
@@ -5042,6 +5051,14 @@ static int ca0132_alt_select_in(struct hda_codec *codec)
50425051
case QUIRK_AE5:
50435052
ca0113_mmio_command_set(codec, 0x30, 0x28, 0x00);
50445053
break;
5054+
case QUIRK_AE7:
5055+
ca0113_mmio_command_set(codec, 0x30, 0x28, 0x3f);
5056+
chipio_set_conn_rate(codec, MEM_CONNID_MICIN2,
5057+
SR_96_000);
5058+
chipio_set_conn_rate(codec, MEM_CONNID_MICOUT2,
5059+
SR_96_000);
5060+
dspio_set_uint_param(codec, 0x80, 0x01, FLOAT_ZERO);
5061+
break;
50455062
default:
50465063
break;
50475064
}
@@ -5051,7 +5068,10 @@ static int ca0132_alt_select_in(struct hda_codec *codec)
50515068
if (ca0132_quirk(spec) == QUIRK_R3DI)
50525069
chipio_set_conn_rate(codec, 0x0F, SR_96_000);
50535070

5054-
tmp = FLOAT_ZERO;
5071+
if (ca0132_quirk(spec) == QUIRK_AE7)
5072+
tmp = FLOAT_THREE;
5073+
else
5074+
tmp = FLOAT_ZERO;
50555075
dspio_set_uint_param(codec, 0x80, 0x00, tmp);
50565076

50575077
switch (ca0132_quirk(spec)) {

0 commit comments

Comments
 (0)