From 58cd7cc74816e3ef6cca7c516edeb5780daf4f1d Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Sun, 10 Nov 2019 21:14:46 +0100 Subject: [PATCH] GoogleNyan: adapt to ucm2 Signed-off-by: Jaroslav Kysela --- {ucm => ucm2}/GoogleNyan/GoogleNyan.conf | 1 + {ucm => ucm2}/GoogleNyan/HiFi.conf | 11 ++--------- 2 files changed, 3 insertions(+), 9 deletions(-) rename {ucm => ucm2}/GoogleNyan/GoogleNyan.conf (91%) rename {ucm => ucm2}/GoogleNyan/HiFi.conf (91%) diff --git a/ucm/GoogleNyan/GoogleNyan.conf b/ucm2/GoogleNyan/GoogleNyan.conf similarity index 91% rename from ucm/GoogleNyan/GoogleNyan.conf rename to ucm2/GoogleNyan/GoogleNyan.conf index efe6ad8..33f22cc 100644 --- a/ucm/GoogleNyan/GoogleNyan.conf +++ b/ucm2/GoogleNyan/GoogleNyan.conf @@ -1,3 +1,4 @@ +Syntax 2 Comment "Nyan internal card" SectionUseCase."HiFi" { File "HiFi.conf" diff --git a/ucm/GoogleNyan/HiFi.conf b/ucm2/GoogleNyan/HiFi.conf similarity index 91% rename from ucm/GoogleNyan/HiFi.conf rename to ucm2/GoogleNyan/HiFi.conf index b28fe91..0050590 100644 --- a/ucm/GoogleNyan/HiFi.conf +++ b/ucm2/GoogleNyan/HiFi.conf @@ -1,6 +1,5 @@ SectionVerb { EnableSequence [ - cdev "hw:GoogleNyan" cset "name='Left Speaker Mixer Left DAC Switch' on" cset "name='Right Speaker Mixer Right DAC Switch' on" cset "name='Headphone Left Switch' on" @@ -36,39 +35,33 @@ SectionVerb { cset "name='Speaker Right Switch' on" cset "name='Speakers Switch' on" ] - DisableSequence [ - ] } -SectionDevice."Headphone".0 { +SectionDevice."Headphone" { Value { OutputDspName "" } EnableSequence [ - cdev "hw:GoogleNyan" cset "name='Speakers Switch' off" cset "name='Headphones Switch' on" ] DisableSequence [ - cdev "hw:GoogleNyan" cset "name='Headphones Switch' off" cset "name='Speakers Switch' on" ] } -SectionDevice."Mic".0 { +SectionDevice."Mic" { Value { CaptureControl "MIC2" } EnableSequence [ - cdev "hw:GoogleNyan" cset "name='Int Mic Switch' off" cset "name='DMIC Mux' ADC" cset "name='Mic Jack Switch' on" cset "name='Record Path DC Blocking' on" ] DisableSequence [ - cdev "hw:GoogleNyan" cset "name='Mic Jack Switch' off" cset "name='DMIC Mux' DMIC" cset "name='Int Mic Switch' on" -- 2.47.1