David Woodhouse [Fri, 21 Jan 2022 10:46:25 +0000 (10:46 +0000)]
Fix handling of ENOENT on opening hiddev
The original Jabra code returned a boolean from doListDev(), but I made it
return the fd. Which means returning zero for ENOENT probably isn't a good
idea any more. Make it return -1 for that case too.
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>