Code: Select all
pactl set-card-profile alsa_card.usb-0d8c_USB_Sound_Device-00 output:analog-surround-51+input:analog-stereoModify 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
}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 &Set volumeSinkName to surround51_to_41
Code: Select all
"volumeSinkName" : "surround51_to_41",6. Verify routing with qpwgraph with below screenshot 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%