]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: ca0106: fix error code handling
authorTong Zhang <ztong0001@gmail.com>
Mon, 24 Aug 2020 22:45:41 +0000 (18:45 -0400)
committerTakashi Iwai <tiwai@suse.de>
Tue, 25 Aug 2020 07:27:49 +0000 (09:27 +0200)
commit9ba573e83463d720ee1b7bf09750274a1105f512
treeea3421cd3adf2e6a42895ca94af437d277a5b337
parent5ee4da45e4f177a4f2d4474f8643efc6376a7dfd
ALSA: ca0106: fix error code handling

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>
sound/pci/ca0106/ca0106_main.c