summaryrefslogtreecommitdiff
path: root/include/linux/errqueue.h
diff options
context:
space:
mode:
authorCen Zhang <zzzccc427@gmail.com>2026-05-07 09:19:44 +0800
committerTakashi Iwai <tiwai@suse.de>2026-05-07 12:52:51 +0200
commit9fc9caf346085dbb5d69cb6ad71a5ff388ecc6b9 (patch)
tree3dea08e72780a339287586b590a4a689c3558209 /include/linux/errqueue.h
parent5367e2ad14f0ae9350a7aaf2e77c87de39a43ae9 (diff)
ALSA: pcm: use snd_pcm_get_state() in remaining ioctl checks
The recent OSS runtime->state locking cleanup converted the OSS I/O paths to use snd_pcm_get_state(), but a few ioctl-side checks in pcm_native.c still sample runtime->state directly: the prepare pre-checks, the early drain open-state check, and the common snd_pcm_kernel_ioctl() disconnected check. Use snd_pcm_get_state() for those remaining samples. In snd_pcm_pre_prepare(), keep a single state snapshot and reuse it for both the OPEN/DISCONNECTED check and the running-state test. Signed-off-by: Cen Zhang <zzzccc427@gmail.com> Link: https://patch.msgid.link/20260507011944.2897240-1-zzzccc427@gmail.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/errqueue.h')
0 files changed, 0 insertions, 0 deletions