From: Jaroslav Kysela Date: Thu, 21 Nov 2019 12:56:40 +0000 (+0100) Subject: cht-bsw-rt5672: adapt to ucm2 X-Git-Tag: v1.2.1.2~18 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e130896de15396bcd19a0bdce1c032e2e31ab784;p=alsa-ucm-conf.git cht-bsw-rt5672: adapt to ucm2 Signed-off-by: Jaroslav Kysela --- diff --git a/ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf b/ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.conf similarity index 70% rename from ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf rename to ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.conf index 43c3c0d..2916490 100644 --- a/ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf +++ b/ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.conf @@ -1,18 +1,18 @@ +# Adapted from https://github.com/plbossart/UCM/tree/master/cht-bsw-rt5672 + SectionVerb { EnableSequence [ - cdev "hw:chtbswrt5672" ] DisableSequence [ - cdev "hw:chtbswrt5672" ] Value { - PlaybackPCM "hw:chtbswrt5672" - CapturePCM "hw:chtbswrt5672" + PlaybackPCM "hw:${CardId}" + CapturePCM "hw:${CardId}" } } diff --git a/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf b/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf new file mode 120000 index 0000000..461f0c4 --- /dev/null +++ b/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf @@ -0,0 +1 @@ +cht-bsw-rt5672-stereo-dmic2.conf \ No newline at end of file diff --git a/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf b/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf new file mode 120000 index 0000000..461f0c4 --- /dev/null +++ b/ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf @@ -0,0 +1 @@ +cht-bsw-rt5672-stereo-dmic2.conf \ No newline at end of file diff --git a/ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf b/ucm2/cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf similarity index 50% rename from ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf rename to ucm2/cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf index 1c3a766..68837b2 100644 --- a/ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf +++ b/ucm2/cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf @@ -1,4 +1,6 @@ +Syntax 2 + SectionUseCase."HiFi" { - File "../LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf" + File "HiFi-stereo-dmic2.conf" Comment "Play HiFi quality Music" }