feat(deck): Add new improved audio configs

This commit is contained in:
Kyle Gospodnetich 2023-11-21 17:56:44 -08:00
parent 84f685fd20
commit b1640effac
2 changed files with 46 additions and 0 deletions

View File

@ -1,6 +1,23 @@
bluez_monitor.properties = {
-- we only want these audio profiles:
-- 0000110a-0000-1000-8000-00805f9b34fb Audio Source
-- 0000110b-0000-1000-8000-00805f9b34fb Audio Sink
-- 0000110d-0000-1000-8000-00805f9b34fb Advanced Audio Distribution
["bluez5.roles"] = "[ a2dp_sink a2dp_source ]",
-- And only this one headset related profile:
-- 00001112-0000-1000-8000-00805f9b34fb Headset
-- disabled: 00001108-0000-1000-8000-00805f9b34fb hsp_hs
-- disabled: 0000111e-0000-1000-8000-00805f9b34fb hfp_hs
-- disabled: 0000111f-0000-1000-8000-00805f9b34fb hfp_ag
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> * <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
-- NOTE: check hfphsp-backend below as that also affects hs/hf profiles
-- >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> * <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<
["bluez5.headset-roles"] = "[ hsp_ag ]",
-- HFP/HSP backend (default: native).
-- Available values: any, none, hsphfpd, ofono, native
-- setting this to "none" disables all headset roles
["bluez5.hfphsp-backend"] = "none",
-- Disable dummy AVRCP player

View File

@ -7,13 +7,42 @@ table.insert (alsa_monitor.rules, {
{ "node.name", "matches", "alsa_input.*" },
{ "alsa.card_name", "matches", "acp5x" },
},
{
-- Matches all sources from card acp6x
{ "node.name", "matches", "alsa_input.*" },
{ "alsa.card_name", "matches", "acp6x" },
},
{
-- Matches all sources from SOF drivers
{ "node.name", "matches", "alsa_input.*" },
{ "alsa.card_name", "matches", "sof-nau8821-max" },
},
{
-- Matches all sinks from card acp5x
{ "node.name", "matches", "alsa_output.*" },
{ "alsa.card_name", "matches", "acp5x" },
},
{
-- Matches all sinks from card acp6x
{ "node.name", "matches", "alsa_output.*" },
{ "alsa.card_name", "matches", "acp6x" },
},
{
-- Matches all sinks from card acp6x
{ "node.name", "matches", "alsa_output.*" },
{ "alsa.card_name", "matches", "sof-nau8821-max" },
},
},
apply_properties = {
["session.suspend-timeout-seconds"] = 0,
["api.alsa.headroom"] = 1024,
}
})