usbaudio: triage panic from splash()

Do the check in gui_wps_show() to avoid calling splash()
from anything other than the main thread

Change-Id: Icc1c6f287d82dc6e73b7cae9c75c18be73b82d48
This commit is contained in:
Dana Conrad 2025-11-16 15:17:47 +00:00 committed by Solomon Peachy
parent bc7bc4e8ac
commit 896cceee24
2 changed files with 16 additions and 2 deletions

View file

@ -2984,11 +2984,14 @@ static void audio_on_track_changed(void)
static void audio_start_playback(const struct audio_resume_info *resume_info,
unsigned int flags)
{
/* NOTE: if USBAudio ever gets its own DSP channel, this block can go away! */
/*
* Refuse to start playback if usb audio is active. See gui_wps_show() for
* a splash message to the user.
* NOTE: if USBAudio ever gets its own DSP channel, this block can go away!
*/
#ifdef USB_ENABLE_AUDIO
if (usb_audio_get_active())
{
splash(HZ*2, ID2P(LANG_USB_DAC_ACTIVE));
queue_reply(&audio_queue, 0);
return;
}