From e130896de15396bcd19a0bdce1c032e2e31ab784 Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Thu, 21 Nov 2019 13:56:40 +0100 Subject: [PATCH] cht-bsw-rt5672: adapt to ucm2 Signed-off-by: Jaroslav Kysela --- .../cht-bsw-rt5672/HiFi-stereo-dmic2.conf | 8 ++++---- .../LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf | 1 + ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf | 1 + .../cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf | 4 +++- 4 files changed, 9 insertions(+), 5 deletions(-) rename ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/HiFi.conf => ucm2/cht-bsw-rt5672/HiFi-stereo-dmic2.conf (70%) create mode 120000 ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf create mode 120000 ucm2/cht-bsw-rt5672/LENOVO-20BN002QGE-ThinkPad8.conf rename ucm/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE/LENOVO-20BN002QGE-ThinkPad8-20BN002QGE.conf => ucm2/cht-bsw-rt5672/cht-bsw-rt5672-stereo-dmic2.conf (50%) 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" } -- 2.47.1