IAP: Reset IAP state upon headphone or dock unplug

Provides a semi-automatic way of recovering from desynchronization

Change-Id: I527b0bacc22ef38c1e7213653e522ea1b0ac155d
This commit is contained in:
Solomon Peachy 2025-08-06 14:26:34 -04:00
parent 80eca90481
commit 472a6a69c6
5 changed files with 93 additions and 15 deletions

View file

@ -37,5 +37,6 @@ const unsigned char *iap_get_serbuf(void);
#ifdef HAVE_LINE_REC
extern bool iap_record(bool onoff);
#endif
void iap_reset_state(int port); /* 0 is dock, 1 is headphone */
bool dbg_iap(void);
#endif