CirrusLogic / tinyhal

Configurable audio HAL for Android
Apache License 2.0
32 stars 17 forks source link

Support for device specific ALSA card/device number #17

Open vknecht opened 1 year ago

vknecht commented 1 year ago

Following discussion in #16 , here's my current work on supporting eg.

    <device name="headphone" cardname="alcatelidol3" device="0">

Still a draft because only output devices are considered for now, there's some hardcoding for restoring the original card/dev of the stream, and reconfiguring after routing change is not done, mainly because it would require non-const hw_stream.

But it's a start since switching between speaker and headphone works after certain events (eg. screen off/on or restarting the music player).