mirror of
https://github.com/Rockbox/rockbox.git
synced 2026-10-09 23:53:28 -04:00
recording: stop monitoring the input before USB mode
Plugging in USB on the recording screen closes recording, but the input stays selected: the screen switches it back to playback only when it ends, which is after USB mode, at the unplug. On a Samsung YP-CP3, whose codec passes the microphone or FM radio through to the headphones while recording, the input could be heard all through USB mode. Switch to playback before entering it. Tested on a YP-CP3. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Change-Id: I194d5e120cc39685aa43cea4741e826a86ed2c65
This commit is contained in:
parent
9ce3fca4cb
commit
136e6b9953
1 changed files with 3 additions and 0 deletions
|
|
@ -1540,6 +1540,9 @@ bool recording_screen(bool no_source)
|
|||
{
|
||||
FOR_NB_SCREENS(i)
|
||||
screens[i].set_viewport(NULL);
|
||||
/* not monitoring the input in USB mode: this screen
|
||||
* only switches back to playback when it ends */
|
||||
rec_set_source(AUDIO_SRC_PLAYBACK, SRCF_PLAYBACK);
|
||||
default_event_handler(SYS_USB_CONNECTED);
|
||||
done = true;
|
||||
rec_status |= RCSTAT_BEEN_IN_USB_MODE;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue