ALSA: ca0106: fix error code handling
authorTong Zhang <ztong0001@gmail.com>
Mon, 24 Aug 2020 22:45:41 +0000 (18:45 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 9 Sep 2020 17:14:26 +0000 (19:14 +0200)
commit2c9ba98fec4d4cc5e4963bf78882b08064ab19de
treeeab2cb0e0a9abcffbb91034f0b5fe64934e5b836
parent9aa4e2c3da1723b6a286d470c24374c993a25c44
ALSA: ca0106: fix error code handling

commit ee0761d1d8222bcc5c86bf10849dc86cf008557c upstream.

snd_ca0106_spi_write() returns 1 on error, snd_ca0106_pcm_power_dac()
is returning the error code directly, and the caller is expecting an
negative error code

Signed-off-by: Tong Zhang <ztong0001@gmail.com>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20200824224541.1260307-1-ztong0001@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
sound/pci/ca0106/ca0106_main.c