anand2532 commented on issue #19413: URL: https://github.com/apache/nuttx/issues/19413#issuecomment-6766423727
I tried that guard locally on master 7e5a7708. In sim_audio_configure(), if priv->volume is NULL, the AUDIO_FU_VOLUME and AUDIO_FU_INP_GAIN cases return without calling ALSA. play /data/center.wav no longer aborts. q returns to the nsh prompt, and poweroff exits 0. The recorded file is 176400 bytes, the full 1-second stereo WAV. The crash happened because snd_mixer_selem_set_playback_volume_all() was called with a NULL element; skipping that call lets PCM playback finish. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
