Commit 71818dcb authored by Sebastian Krzyszkowiak's avatar Sebastian Krzyszkowiak Committed by Guido Gunther
Browse files

pulse: Set echo-cancel parameters also for default sink

Due to the way module-filter-apply works, it may not know the source
yet when it's being loaded, so help it by setting the same parameters
on the default sink.

Fixes #50
parent 18484cf9
Pipeline #70850 passed with stages
in 3 minutes and 50 seconds
......@@ -4,6 +4,7 @@
.ifexists /sys/devices/platform/sound/308b0000.sai-sgtl5000
set-default-sink alsa_output.platform-sound.HiFi__hw_Devkit_0__sink
set-default-source alsa_input.platform-sound.HiFi__hw_Devkit_0__source
update-sink-proplist alsa_output.platform-sound.HiFi__hw_Devkit_0__sink filter.apply.echo-cancel.parameters="channels=1 use_master_format=yes aec_args=\"analog_gain_control=0 voice_detection=0 high_pass_filter=0 noise_suppression=0\""
update-source-proplist alsa_input.platform-sound.HiFi__hw_Devkit_0__source filter.apply.echo-cancel.parameters="channels=1 use_master_format=yes aec_args=\"analog_gain_control=0 voice_detection=0 high_pass_filter=0 noise_suppression=0\""
.endif
......@@ -16,6 +17,7 @@ load-module module-alsa-card device_id="Modem" name="platform-sound-wwan" card_p
set-card-profile alsa_card.platform-sound HiFi
set-default-sink alsa_output.platform-sound.HiFi__hw_L5_0__sink
set-default-source alsa_input.platform-sound.HiFi__hw_L5_0__source
update-sink-proplist alsa_output.platform-sound.HiFi__hw_L5_0__sink filter.apply.echo-cancel.parameters="channels=1 use_master_format=yes aec_args=\"analog_gain_control=0 voice_detection=0 high_pass_filter=0 noise_suppression=0\""
update-source-proplist alsa_input.platform-sound.HiFi__hw_L5_0__source filter.apply.echo-cancel.parameters="channels=1 use_master_format=yes aec_args=\"analog_gain_control=0 voice_detection=0 high_pass_filter=0 noise_suppression=0\""
.endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment