]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: aoa: Skip devices with no codecs in i2sbus_resume()
authorThorsten Blum <thorsten.blum@linux.dev>
Tue, 10 Mar 2026 10:29:20 +0000 (11:29 +0100)
committerTakashi Iwai <tiwai@suse.de>
Tue, 10 Mar 2026 17:20:37 +0000 (18:20 +0100)
commitfd7df93013c5118812e63a52635dc6c3a805a1de
tree78165dffe8581df1a66242143f111d57cdb8f73d
parentedf04f1af05d714c7aba0cf008ded1245365fcd7
ALSA: aoa: Skip devices with no codecs in i2sbus_resume()

In i2sbus_resume(), skip devices with an empty codec list, which avoids
using an uninitialized 'sysclock_factor' in the 32-bit format path in
i2sbus_pcm_prepare().

In i2sbus_pcm_prepare(), replace two list_for_each_entry() loops with a
single list_first_entry() now that the codec list is guaranteed to be
non-empty by all callers.

Fixes: f3d9478b2ce4 ("[ALSA] snd-aoa: add snd-aoa")
Cc: stable@vger.kernel.org
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20260310102921.210109-3-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/aoa/soundbus/i2sbus/core.c
sound/aoa/soundbus/i2sbus/pcm.c