ALSA: hda: cs35l41: Correct error condition handling
authorVitaly Rodionov <vitalyr@opensource.cirrus.com>
Mon, 13 Feb 2023 14:50:06 +0000 (14:50 +0000)
committerTakashi Iwai <tiwai@suse.de>
Tue, 14 Feb 2023 14:06:13 +0000 (15:06 +0100)
commit943f4e64ee177cf44d7f2c235281fcda7c32bb28
treea0661dabe55114ba4f506694ecfbefc100b36d3f
parentaacdac35b906e476b175a8ffc057165eca563076
ALSA: hda: cs35l41: Correct error condition handling

Function cs_dsp_coeff_write_ctrl() can return 3 possible values:
0 - no change, 1 - value has changed and -1 - error, so positive value
is not an error.
Fixes: 7406bdbc4fb8 ("ASoC: wm_adsp: Return whether changed when writing controls")
Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Signed-off-by: Stefan Binding <sbinding@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230213145008.1215849-2-sbinding@opensource.cirrus.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_cs_dsp_ctl.c