]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ALSA: hda: cs35l41: Correct error condition handling
authorVitaly Rodionov <vitalyr@opensource.cirrus.com>
Mon, 13 Feb 2023 14:50:06 +0000 (14:50 +0000)
committerAndrea Righi <andrea.righi@canonical.com>
Thu, 9 Mar 2023 14:58:31 +0000 (15:58 +0100)
commit74c2ab66c4cdd8e65735a389e4683b0bf2edcd48
tree250687ab96b8b9548668565c8666fd94b9dc0ce4
parent083492f15eb83b4fce2af93dee1969469019807f
ALSA: hda: cs35l41: Correct error condition handling

BugLink: https://bugs.launchpad.net/bugs/2009358
commit 943f4e64ee177cf44d7f2c235281fcda7c32bb28 upstream.

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>
Cc: Richard Fitzgerald <rf@opensource.cirrus.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Andrea Righi <andrea.righi@canonical.com>
sound/pci/hda/hda_cs_dsp_ctl.c