Headphone / lineout pause/resume #FS13237

Allow Lineout to behave like headphone port in regards to
plug/unplug pause/resume

Change-Id: I9cb2c9c40e0bdf3bf7e1e272164acd343f6b3850
This commit is contained in:
William Wilgus 2020-09-17 14:53:29 -04:00 committed by William Wilgus
parent 4fa945d810
commit 2df3a5b04c
6 changed files with 56 additions and 13 deletions

View file

@ -448,7 +448,7 @@ struct user_settings
#endif
int pause_rewind; /* time in s to rewind when pausing */
#ifdef HAVE_HEADPHONE_DETECTION
#if defined(HAVE_HEADPHONE_DETECTION) || defined(HAVE_LINEOUT_DETECTION)
int unplug_mode; /* pause on headphone unplug */
bool unplug_autoresume; /* disable auto-resume if no phones */
#endif