anand2532 commented on issue #19413: URL: https://github.com/apache/nuttx/issues/19413#issuecomment-6766318357
If I guard the mixer call in sim_audio_configure(), will that fix this abort? In the AUDIO_FU_VOLUME case, snd_mixer_selem_set_playback_volume_all() is called with priv->volume. When sim_mixer_open() cannot find a Master element, that pointer is NULL and ALSA aborts inside snd_mixer_selem_has_playback_channel(). The change I would make: if priv->volume is NULL, return success and skip the ALSA call. Same check for AUDIO_FU_INP_GAIN. PCM start and write stay as they are, so playback still runs when the host has no volume slider. Does that match the fix you want on this issue? -- 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]
