nuttx/audio
Marco Casaroli e1f82fcc1c audio: Fix the build with CONFIG_AUDIO_MULTI_SESSION.
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>
2026-10-08 15:52:09 -03:00
..
audio.c audio: Fix the build with CONFIG_AUDIO_MULTI_SESSION. 2026-10-08 15:52:09 -03:00
audio_comp.c style: Fix "is is" typo across the codebase. 2026-03-24 09:39:26 +08:00
CMakeLists.txt
Kconfig
Makefile tools: fix stale archive members surviving a Kconfig-driven CSRCS change 2026-07-28 21:26:03 -03:00
pcm_decode.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00