diff options
| author | Thorsten Blum <thorsten.blum@linux.dev> | 2026-03-10 13:29:20 +0300 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2026-03-10 20:20:37 +0300 |
| commit | fd7df93013c5118812e63a52635dc6c3a805a1de (patch) | |
| tree | 78165dffe8581df1a66242143f111d57cdb8f73d /include | |
| parent | edf04f1af05d714c7aba0cf008ded1245365fcd7 (diff) | |
| download | linux-fd7df93013c5118812e63a52635dc6c3a805a1de.tar.xz | |
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>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions
