ALSA: hda/ca0132 - Add AE-7 exit commands.
Add exit commands for the AE-7. Signed-off-by: Connor McAdams <conmanx360@gmail.com> Link: https://lore.kernel.org/r/20200825201040.30339-21-conmanx360@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
24a28eaeb2
commit
685a04a537
|
@ -8838,6 +8838,32 @@ static void ae5_exit_chip(struct hda_codec *codec)
|
|||
snd_hda_codec_write(codec, 0x01, 0, 0x724, 0x83);
|
||||
}
|
||||
|
||||
static void ae7_exit_chip(struct hda_codec *codec)
|
||||
{
|
||||
chipio_set_stream_control(codec, 0x18, 0);
|
||||
chipio_set_stream_source_dest(codec, 0x21, 0xc8, 0xc8);
|
||||
chipio_set_stream_channels(codec, 0x21, 0);
|
||||
chipio_set_control_param(codec, CONTROL_PARAM_NODE_ID, 0x09);
|
||||
chipio_set_control_param(codec, 0x20, 0x01);
|
||||
|
||||
chipio_set_control_param(codec, CONTROL_PARAM_ASI, 0);
|
||||
|
||||
chipio_set_stream_control(codec, 0x18, 0);
|
||||
chipio_set_stream_control(codec, 0x0c, 0);
|
||||
|
||||
ca0113_mmio_command_set(codec, 0x30, 0x2b, 0x00);
|
||||
snd_hda_codec_write(codec, 0x15, 0, 0x724, 0x83);
|
||||
ca0113_mmio_command_set_type2(codec, 0x48, 0x07, 0x83);
|
||||
ca0113_mmio_command_set(codec, 0x30, 0x30, 0x00);
|
||||
ca0113_mmio_command_set(codec, 0x30, 0x2e, 0x00);
|
||||
ca0113_mmio_gpio_set(codec, 0, false);
|
||||
ca0113_mmio_gpio_set(codec, 1, false);
|
||||
ca0113_mmio_command_set(codec, 0x30, 0x32, 0x3f);
|
||||
|
||||
snd_hda_codec_write(codec, 0x01, 0, 0x793, 0x00);
|
||||
snd_hda_codec_write(codec, 0x01, 0, 0x794, 0x53);
|
||||
}
|
||||
|
||||
static void zxr_exit_chip(struct hda_codec *codec)
|
||||
{
|
||||
chipio_set_stream_control(codec, 0x03, 0);
|
||||
|
@ -9457,6 +9483,9 @@ static void ca0132_free(struct hda_codec *codec)
|
|||
case QUIRK_AE5:
|
||||
ae5_exit_chip(codec);
|
||||
break;
|
||||
case QUIRK_AE7:
|
||||
ae7_exit_chip(codec);
|
||||
break;
|
||||
case QUIRK_R3DI:
|
||||
r3di_gpio_shutdown(codec);
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue