Page 7 of 8

Re: Cm6206 Output

Posted: Mon Dec 15, 2025 2:55 pm
by hudiy
1. Set card profile

Code: Select all

pactl set-card-profile alsa_card.usb-0d8c_USB_Sound_Device-00 output:analog-surround-51+input:analog-stereo
2. Enable upmixing in PipeWire
Modify or create $HOME/.config/pipewire/pipewire-pulse.conf.d/50-hudiy.conf file and add:

Code: Select all

stream.properties = {
    channelmix.upmix      = true
    channelmix.upmix-method = simple
    channelmix.lfe-cutoff = 150
}
3. Modify hudiy_startup.sh for sink remapping
Replace content of $HOME/.hudiy/share/hudiy_startup.sh to:

Code: Select all

#!/bin/bash

EC_SINK="echo_cancel_sink"
EC_SOURCE="echo_cancel_source"
EQ_SINK="hudiy_equalizer_sink"
REMAP_SINK="surround51_to_41"

sink_exists() { pactl list short sinks 2>/dev/null | awk '{print $2}' | grep -Fxq "$1"; }
until pactl info >/dev/null 2>&1; do sleep 0.1; done

# Gives PipeWire and WirePlumber additional time to detect all audio devices
sleep 1

sink_exists "$REMAP_SINK" || pactl load-module module-remap-sink sink_name="$REMAP_SINK" master=alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-51 channels=5 master_channel_map=front-left,front-right,rear-left,rear-right,front-center channel_map=front-left,front-right,rear-left,rear-right,lfe remix=yes
sink_exists "$EC_SINK" || pactl load-module module-echo-cancel aec_method=webrtc aec_args=\"voice_detection=false\" source_name="$EC_SOURCE" sink_name="$EC_SINK" sink_master="$REMAP_SINK"
sink_exists "$EQ_SINK" || pactl load-module module-ladspa-sink sink_name="$EQ_SINK" master="$EC_SINK" plugin=hudiy_equalizer label=hudiy_equalizer control=0,0,0,0,0,0,0,0,0,0,0,0,0,0,0

pactl set-default-sink "$EQ_SINK"
pactl set-default-source "$EC_SOURCE"

$HOME/.hudiy/share/hudiy &
4. modify $HOME/.hudiy/share/config/main_configuration.json
Set volumeSinkName to surround51_to_41

Code: Select all

"volumeSinkName" : "surround51_to_41",
5. Reboot the system

6. Verify routing with qpwgraph with below screenshot
cma6206_routing.png
cma6206_routing.png (167.34 KiB) Viewed 592 times
7. Set volume of echo_cancel_sink, hudiy_equalizer_sink and alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-51 to 100%

Code: Select all

pactl set-sink-volume hudiy_equalizer_sink 100%
pactl set-sink-volume echo_cancel_sink 100%
pactl set-sink-volume alsa_output.usb-0d8c_USB_Sound_Device-00.analog-surround-51 100%

Re: Cm6206 Output

Posted: Mon Dec 15, 2025 3:13 pm
by alex124.rh
Thanks for the prompt help, it is greatly appreciated. I will try this when I’m home.

For step 7, does the volume stick at 100 once set?

Re: Cm6206 Output

Posted: Mon Dec 15, 2025 3:16 pm
by hudiy
alex124.rh wrote: Mon Dec 15, 2025 3:13 pm For step 7, does the volume stick at 100 once set?
Yes, all volume levels will be restored by WirePlumber.

Re: Cm6206 Output

Posted: Tue Dec 16, 2025 12:28 pm
by alex124.rh
Thanks it’s working now, i want to ask however as the rear volume is still lower than the front. thanks!

Re: Cm6206 Output

Posted: Tue Dec 16, 2025 2:15 pm
by hudiy
"simple" upmix method just copy audio stream from front to the rear so exact same stream (including volume level) should be on both outputs. What volume, fade and balance are reported by pactl list sinks for remapped sink?

Re: Cm6206 Output

Posted: Tue Dec 16, 2025 4:32 pm
by alex124.rh
I’ll check this and let you know thanks

Re: Cm6206 Output

Posted: Wed Dec 17, 2025 2:46 am
by alex124.rh
Hi there, I’ve tried the levels and they’re all 100%

and all channels are the same volume level when adjusted.


Anything else to check? it’s also slightly lower quality audio.

It’s coming out of surround jack rather than “rear” is it meant to come out of surround

Re: Cm6206 Output

Posted: Wed Dec 17, 2025 5:31 am
by hudiy
You can check different channel mappings in module-remap-sink or map different card profile based on solution for 5.1 mapping from previous post. You need to figure out correct mapping for your sound card.

Re: Cm6206 Output

Posted: Wed Dec 17, 2025 11:22 am
by alex124.rh
Can you please elaborate a little more about that please. Sorry just want to know how i check these mappings etc

Re: Cm6206 Output

Posted: Wed Dec 17, 2025 11:22 am
by alex124.rh
Also still having major issues with crackly audio when using siri etc. It’s very muddled and crackles constantly.