David Woodhouse [Tue, 26 Nov 2019 14:57:09 +0000 (14:57 +0000)]
Fix headset hotplug
Kill the old GIOChannel on shutdown (otherwise events were duplicated
after a manual rescan because the original one wasn't really torn down).
Remove the need for manual rescan anyway, by automatically rescanning
whenever a call starts... and by tearing down an existing headset when
its fd returns error.
Marc Olson [Mon, 20 Aug 2018 22:46:08 +0000 (15:46 -0700)]
Create dialog to rescan for new headsets
If the headset is plugged in (or repluged) after the library is
initialized, the library does not pick it up. This adds an action
allowing the user to trigger a rescan.
Signed-off-by: Marc Olson <marcolso@amazon.com> Signed-off-by: David Woodhouse <dwmw2@infradead.org>