mirror of
https://github.com/apache/nuttx.git
synced 2026-10-10 15:50:23 +00:00
Under CONFIG_AUDIO_MULTI_SESSION, audio_pause() and audio_resume() take a session argument, but two internal call sites still passed only the file pointer: audio.c:612 audio_start() forwarding a resume of a paused device audio.c:694 audio_stop() forwarding a pause Neither compiles, so the option cannot be selected at all -- which is presumably why nobody has noticed. Guarded the way the rest of the file guards the same pair. Tested on sim:nsh with AUDIO, AUDIO_MULTI_SESSION and AUDIO_NULL. Before the change, audio.c does not compile. After the change, the build passes. A local test app on the null audio device runs both changed paths: AUDIOIOC_START on a paused device resumes it, and AUDIOIOC_STOP while another open is paused pauses the device. Both return 0. Assisted-by: Claude Code:claude-opus-5-5 Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> |
||
|---|---|---|
| .. | ||
| audio.c | ||
| audio_comp.c | ||
| CMakeLists.txt | ||
| Kconfig | ||
| Makefile | ||
| pcm_decode.c | ||