Add functions to switch between audio profiles

This commit is contained in:
Gabriel Augendre 2023-02-17 09:24:49 +01:00
parent c25811e614
commit f5b5f67c89
3 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,4 @@
function audio-onboard
pacmd set-default-sink "alsa_output.pci-0000_00_1f.3.analog-stereo"
pacmd set-default-source "alsa_input.pci-0000_00_1f.3.analog-stereo"
end

View file

@ -0,0 +1,5 @@
function audio-plt-conf
pacmd set-card-profile bluez_card.F4_B6_88_D4_1E_5D handsfree_head_unit
pacmd set-default-source bluez_source.F4_B6_88_D4_1E_5D.handsfree_head_unit
pacmd set-default-sink bluez_sink.F4_B6_88_D4_1E_5D.handsfree_head_unit
end

View file

@ -0,0 +1,5 @@
function audio-plt-no-mic
pacmd set-card-profile bluez_card.F4_B6_88_D4_1E_5D a2dp_sink
pacmd set-default-source alsa_input.pci-0000_00_1f.3.analog-stereo
pacmd set-default-sink bluez_sink.F4_B6_88_D4_1E_5D.a2dp_sink
end