From 8fab0d5a8801f1d4d8c8042d7f3b6c8dc7b40202 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Amadeusz=20S=C5=82awi=C5=84ski?= Date: Tue, 18 Jun 2024 12:44:58 +0200 Subject: [PATCH] ucm2: Intel: avs: Add UCM files for max98357a configuration MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Add configs for devices using max98357a codec. Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/418 Signed-off-by: Amadeusz Sławiński Signed-off-by: Jaroslav Kysela --- .../avs/avs_max98357a/avs_max98357a-HiFi.conf | 15 +++++++++++++++ ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf | 6 ++++++ ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf | 1 + ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf | 1 + ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf | 1 + 5 files changed, 24 insertions(+) create mode 100644 ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf create mode 100644 ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf create mode 120000 ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf create mode 120000 ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf create mode 120000 ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf diff --git a/ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf b/ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf new file mode 100644 index 0000000..9484a45 --- /dev/null +++ b/ucm2/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf @@ -0,0 +1,15 @@ +SectionDevice."Speaker" { + Comment "Speakers" + + Value { + PlaybackPCM "hw:${CardId},1" + } + + EnableSequence [ + cset "name='Spk Switch' on" + ] + + DisableSequence [ + cset "name='Spk Switch' off" + ] +} diff --git a/ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf b/ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf new file mode 100644 index 0000000..a3ec6e2 --- /dev/null +++ b/ucm2/Intel/avs/avs_max98357a/avs_max98357a.conf @@ -0,0 +1,6 @@ +Syntax 6 + +SectionUseCase."HiFi" { + File "/Intel/avs/avs_max98357a/avs_max98357a-HiFi.conf" + Comment "Play HiFi quality Music" +} diff --git a/ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf b/ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf new file mode 120000 index 0000000..3823fda --- /dev/null +++ b/ucm2/conf.d/avs_max98357a/Acer-Lars-1.0.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_max98357a/avs_max98357a.conf \ No newline at end of file diff --git a/ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf b/ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf new file mode 120000 index 0000000..3823fda --- /dev/null +++ b/ucm2/conf.d/avs_max98357a/Google-Cave-1.0.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_max98357a/avs_max98357a.conf \ No newline at end of file diff --git a/ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf b/ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf new file mode 120000 index 0000000..3823fda --- /dev/null +++ b/ucm2/conf.d/avs_max98357a/Google-Coral-rev2.conf @@ -0,0 +1 @@ +../../Intel/avs/avs_max98357a/avs_max98357a.conf \ No newline at end of file -- 2.47.1