Have a dedicated pulse profile for sj-201 and load it by udev

This commit is contained in:
j1nx 2023-01-19 16:01:12 +01:00
parent 53bae2b9e0
commit a019105f81
4 changed files with 47 additions and 2 deletions

View File

@ -64,8 +64,8 @@ load-module module-position-event-sounds
### OpenVoiceOS Audio Settings
load-module module-role-ducking
load-module module-combine-sink sink_name=OpenVoiceOS
load-module module-remap-source source_name=VF_ASR_L source_properties="device.description='VocalFusion ASR recording'" master=alsa_input.platform-asoc-simple-card.0.stereo-fallback remix=no master_channel_map=front-left channel_map=mono
load-module module-remap-source source_name=VF_Comms_R source_properties="device.description='VocalFusion Comms recording'" master=alsa_input.platform-asoc-simple-card.0.stereo-fallback remix=no master_channel_map=front-right channel_map=mono
load-module module-remap-source source_name=VF_ASR_L source_properties="device.description='VocalFusion ASR recording'" master=alsa_input.platform-asoc-simple-card.0.xvf3510-2mic remix=no master_channel_map=front-left channel_map=mono
load-module module-remap-source source_name=VF_Comms_R source_properties="device.description='VocalFusion Comms recording'" master=alsa_input.platform-asoc-simple-card.0.xvf3510-2mic remix=no master_channel_map=front-right channel_map=mono
set-default-source VF_ASR_L
set-default-sink OpenVoiceOS

View File

@ -0,0 +1,7 @@
SUBSYSTEM!="sound", GOTO="vocalfusion_end"
ACTION!="change", GOTO="vocalfusion_end"
KERNEL!="card*", GOTO="vocalfusion_end"
ATTR{id}=="sndxmosvocalfus",ENV{PULSE_PROFILE_SET}="xvf3510.conf"
LABEL="vocalfusion_end"

View File

@ -0,0 +1,38 @@
# /usr/share/pulseaudio/alsa-mixer/profile-sets/xvf3510.conf
[General]
auto-profiles = no
[Mapping xvf3510-2mic]
device-strings = hw:%f
channel-map = front-left,front-right
exact-channels = yes
fallback = yes
paths-input = xvf3510-2mic
priority = 3
direction = input
[Mapping xvf3510-stereo-output]
device-strings = hw:%f
channel-map = front-left,front-right
exact-channels = yes
fallback = yes
paths-output = xvf3510-stereo-output
direction = output
priority = 2
[Profile output:xvf3510-stereo-output+input:xvf3510-2mic]
output-mappings = xvf3510-stereo-output
input-mappings = xvf3510-2mic
priority = 100
skip-probe = yes
[Profile output:xvf3510-stereo-output]
output-mappings = xvf3510-stereo-output
priority = 4
skip-probe = yes
[Profile input:xvf3510-2mic]
input-mappings = xvf3510-2mic
priority = 5
skip-probe = yes