linux/sound/aoa
Takashi Iwai 96e4b1fe3e ALSA: aoa: Fix I2S device accounting
[ Upstream commit f1fae475f1 ]

i2sbus_add_dev() is supposed to return the number of probed devices,
i.e. either 1 or 0.  However, i2sbus_add_dev() has one error handling
that returns -ENODEV; this will screw up the accumulation number
counted in the caller, i2sbus_probe().

Fix the return value to 0 and add the comment for better understanding
for readers.

Fixes: f3d9478b2c ("[ALSA] snd-aoa: add snd-aoa")
Link: https://lore.kernel.org/r/20221027065233.13292-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2022-11-03 23:52:33 +09:00
..
codecs ALSA: aoa: onyx: always initialize register read value 2020-01-27 14:51:02 +01:00
core ALSA: snd-aoa: add of_node_put() in error path 2018-06-29 20:35:14 +02:00
fabrics ALSA: declare snd_kcontrol_new structures as const 2017-05-30 10:29:25 +02:00
soundbus ALSA: aoa: Fix I2S device accounting 2022-11-03 23:52:33 +09:00
aoa-gpio.h ALSA: snd-aoa: handle master-amp if present 2009-01-15 18:28:37 +01:00
aoa.h ALSA: Drop __bitwise and typedefs for snd_device attributes 2014-02-14 08:20:24 +01:00
Kconfig
Makefile