-
Notifications
You must be signed in to change notification settings - Fork 17
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Selecting output stream for specific devices ? #16
Comments
Hi @rfvirgil, |
Device 8 is AUDIO_DEVICE_OUT_WIRED_HEADPHONE so you need a section in your config file for the "headphone" device.
|
Hi @rfvirgil and thank you for your answer.
With Linux UCM files, like the one linked previously, the mapping is very explicit. Am I wrong when I declare 2 pcm streams in tinyhal, like this ?
I'm under the impression that tinyhal only uses/manages one PCM output stream, Thank you |
It looks like this needs a small extension to tinyhal. The card/device are currently associated with a stream not the transducer. At the time tinyhal was written this was how the available hardware worked.
|
Hello,
my phone has an external codec for headphone and don't see how to select the correct PCM output stream on jack insertion.
I see
tinyhal : adev_set_parameters 'connect=8'
in logs but not sure how to manage it.At worse, some code should be written, but maybe that's doable from XML config ?
For reference, the Linux/postmarketOS working UCM, and my current tinyhal xml & audio policy :
https://github.com/msm8916-mainline/alsa-ucm-conf/blob/master/ucm2/alcatel-idol3/HiFi.conf
https://github.com/GloDroidCommunity/qcom-msm8916-series/blob/main/aosptree/vendor/devices-community/idol347/etc/audio.idol347.xml
https://github.com/GloDroidCommunity/qcom-msm8916-series/blob/main/aosptree/vendor/devices-community/idol347/etc/audio_policy_configuration.xml
Thank you
The text was updated successfully, but these errors were encountered: