Skip to content
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

audio: migrate back to yukawa HAL #12

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Conversation

calebccff
Copy link
Collaborator

This does the initial move to the newly "generic" yukawa audio HAL.

The HAL supports loading the mixer_paths.xml file based on some runtime
property (vendor.hw), this is used for dragonboard where the db845c and
rb5 use the same lunch target. However because we use different lunch
targets I've hardcoded vendor.hw to "sdm845", the mixer_paths.xml is
packaged from the device specific directory to
/vendor/etc/mixer_paths.sdm845.xml.

This depends on a new patch to system/media/ to support specifying the
output device in the mixer paths xml file:
https://android-review.googlesource.com/c/platform/system/media/+/2036767

I'll update our local_manifests to include this change in the mean time
before it's merged.

The beryllium and axolotl mixer paths are basically placeholder and will
need to be fixed. The enchilada paths should work, but for some reason
the speaker is broken, I suspect a kernel issue here. Headphone
detection and auto-switching works, on enchilada I'm able to hear audio
through headphones.

The work to make it generic can be found here: https://android-review.googlesource.com/c/device/linaro/dragonboard/+/2042597
Once this is accepted into AOSP we can drop the HAL from our repo and instead build it from there.

@calebccff calebccff requested a review from pundiramit May 10, 2022 12:22
This does the initial move to the newly "generic" yukawa audio HAL.

The HAL supports loading the mixer_paths.xml file based on some runtime
property (vendor.hw), this is used for dragonboard where the db845c and
rb5 use the same lunch target. However because we use different lunch
targets I've hardcoded vendor.hw to "sdm845", the mixer_paths.xml is
packaged from the device specific directory to
/vendor/etc/mixer_paths.sdm845.xml.

This depends on a new patch to system/media/ to support specifying the
output device in the mixer paths xml file:
https://android-review.googlesource.com/c/platform/system/media/+/2036767

I'll update our local_manifests to include this change in the mean time
before it's merged.

The beryllium and axolotl mixer paths are basically placeholder and will
need to be fixed. The enchilada paths *should* work, but for some reason
the speaker is broken, I suspect a kernel issue here. Headphone
detection and auto-switching works, on enchilada I'm able to hear audio
through headphones.

Signed-off-by: Caleb Connolly <caleb.connolly@linaro.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant