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

Dual Audio out (HDMI-3.5mm jack) #102

Closed
cocarrig opened this issue Sep 18, 2023 · 2 comments
Closed

Dual Audio out (HDMI-3.5mm jack) #102

cocarrig opened this issue Sep 18, 2023 · 2 comments
Assignees

Comments

@cocarrig
Copy link
Collaborator

Description:
Creating this case to investigate and deploy multiple audio out capability for both supported devices (RPi devices and Orange Pi 3LTS).

Potential solution detailed in the following article:
https://askubuntu.com/questions/78174/play-sound-through-two-or-more-outputs-devices

@cocarrig
Copy link
Collaborator Author

cocarrig commented Feb 8, 2024

Since enhancements for volume control completed prior to the bookworm release are no longer functional in bookworm, it makes sense to fix them and address this case as well.

This will need a startup script to pull the sinks, and combine and activate them into one sink. Audio control commands will need to call the combined sink. Permissions need to be migrated from amixer for volume changes to pactl.

Script needs to run the following, and pull the name fields. They will always show as 'name: 'name':
pactl list sinks

Then build a command like the following:
pactl load-module module-combine-sink sink_name=combined slaves='sinkname1', 'sinkname2', 'sinkname3'

Then set the new "combined" sink as the default sink to play audio through:
pactl set-default-sink combined

Update volume controls to the following commands
pactl set-sink-volume combined 50%

Remove /etc/pulse/default.pa conf updates from the repo readme.

@Dan-Peck Dan-Peck self-assigned this Feb 12, 2024
@cocarrig
Copy link
Collaborator Author

cocarrig commented Mar 6, 2024

Completed and released in version 4.01 for RPi models, OPi may receive the update in a future release if new kernel becomes available:
https://github.com/dakboard/Hardware-OS/releases/tag/4.01

@cocarrig cocarrig closed this as completed Mar 6, 2024
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

No branches or pull requests

2 participants