ALSA: hda: cs35l41: Add defaulted values into dsp bypass config sequence
authorStefan Binding <sbinding@opensource.cirrus.com>
Thu, 30 Jun 2022 00:23:33 +0000 (01:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Fri, 15 Jul 2022 14:23:14 +0000 (16:23 +0200)
commit4fa58b1d7ec714581bfb1d12370746d29518cd3a
treeec5f3e1e5622df17dfeb3d56974f6843f25fd29f
parent291e7c220b82b28d4c128dfb2abaa51d29969dd5
ALSA: hda: cs35l41: Add defaulted values into dsp bypass config sequence

The config sequences for running with and without firmware and DSP
are different. The original behavior assumed that we would only
run without DSP only in the case where firmware load failed.
This meant the non-firmware sequence was written with the assumtion
that various registers would be set to their default value.
However, to support the ability to unload the firmware, the
non-firmware register sequence must be updated to update all
required registers, including values that would be defaulted,
in case the firmware sequence, which could have already run,
has changed their value.

Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220630002335.366545-13-vitalyr@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/cs35l41_hda.c