From b36970a47836aee3ae2d28b8a048196da4b8b3af Mon Sep 17 00:00:00 2001 From: Hans de Goede Date: Thu, 3 Jan 2019 14:50:15 +0100 Subject: [PATCH] conf/ucm: bytcht-es8316: Add long-name UCM profiles After recent kernel work, the kernel now sets a long-name for bytcht-es8316 boards which indicates if a single (mono) speaker or stereo speakers are used and if in1 or in2 is used for the internal mic (the headset mic will be on the other input). This commit adds UCM profiles for bytcht-es8316 boards using these new long-names, based on the generic bytcht-es8316 profile. Signed-off-by: Hans de Goede Signed-off-by: Jaroslav Kysela --- ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf | 23 +++++++++++++++++++ .../bytcht-es8316-mono-spk-in1-mic.conf | 8 +++++++ ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf | 23 +++++++++++++++++++ .../bytcht-es8316-mono-spk-in2-mic.conf | 8 +++++++ .../HiFi.conf | 23 +++++++++++++++++++ .../bytcht-es8316-stereo-spk-in1-mic.conf | 8 +++++++ .../HiFi.conf | 23 +++++++++++++++++++ .../bytcht-es8316-stereo-spk-in2-mic.conf | 8 +++++++ 8 files changed, 124 insertions(+) create mode 100644 ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf create mode 100644 ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf create mode 100644 ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf create mode 100644 ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf create mode 100644 ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf create mode 100644 ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf create mode 100644 ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf create mode 100644 ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf diff --git a/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf b/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf new file mode 100644 index 0000000..9789949 --- /dev/null +++ b/ucm/bytcht-es8316-mono-spk-in1-mic/HiFi.conf @@ -0,0 +1,23 @@ +SectionVerb { + EnableSequence [ + cdev "hw:bytchtes8316" + + + ] + + DisableSequence [ + cdev "hw:bytchtes8316" + + ] + + Value { + PlaybackPCM "hw:bytchtes8316" + CapturePCM "hw:bytchtes8316" + } +} + + + + + + diff --git a/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf b/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf new file mode 100644 index 0000000..26d82ea --- /dev/null +++ b/ucm/bytcht-es8316-mono-spk-in1-mic/bytcht-es8316-mono-spk-in1-mic.conf @@ -0,0 +1,8 @@ +SectionUseCase."HiFi" { + File "../bytcht-es8316-mono-spk-in1-mic/HiFi.conf" + Comment "Play HiFi quality Music" +} + +SectionDefaults [ + cdev "hw:bytchtes8316" +] diff --git a/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf b/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf new file mode 100644 index 0000000..2821eb5 --- /dev/null +++ b/ucm/bytcht-es8316-mono-spk-in2-mic/HiFi.conf @@ -0,0 +1,23 @@ +SectionVerb { + EnableSequence [ + cdev "hw:bytchtes8316" + + + ] + + DisableSequence [ + cdev "hw:bytchtes8316" + + ] + + Value { + PlaybackPCM "hw:bytchtes8316" + CapturePCM "hw:bytchtes8316" + } +} + + + + + + diff --git a/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf b/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf new file mode 100644 index 0000000..b9885c2 --- /dev/null +++ b/ucm/bytcht-es8316-mono-spk-in2-mic/bytcht-es8316-mono-spk-in2-mic.conf @@ -0,0 +1,8 @@ +SectionUseCase."HiFi" { + File "../bytcht-es8316-mono-spk-in2-mic/HiFi.conf" + Comment "Play HiFi quality Music" +} + +SectionDefaults [ + cdev "hw:bytchtes8316" +] diff --git a/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf b/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf new file mode 100644 index 0000000..9f1801c --- /dev/null +++ b/ucm/bytcht-es8316-stereo-spk-in1-mic/HiFi.conf @@ -0,0 +1,23 @@ +SectionVerb { + EnableSequence [ + cdev "hw:bytchtes8316" + + + ] + + DisableSequence [ + cdev "hw:bytchtes8316" + + ] + + Value { + PlaybackPCM "hw:bytchtes8316" + CapturePCM "hw:bytchtes8316" + } +} + + + + + + diff --git a/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf b/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf new file mode 100644 index 0000000..9bd3266 --- /dev/null +++ b/ucm/bytcht-es8316-stereo-spk-in1-mic/bytcht-es8316-stereo-spk-in1-mic.conf @@ -0,0 +1,8 @@ +SectionUseCase."HiFi" { + File "../bytcht-es8316-stereo-spk-in1-mic/HiFi.conf" + Comment "Play HiFi quality Music" +} + +SectionDefaults [ + cdev "hw:bytchtes8316" +] diff --git a/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf b/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf new file mode 100644 index 0000000..00d4b7f --- /dev/null +++ b/ucm/bytcht-es8316-stereo-spk-in2-mic/HiFi.conf @@ -0,0 +1,23 @@ +SectionVerb { + EnableSequence [ + cdev "hw:bytchtes8316" + + + ] + + DisableSequence [ + cdev "hw:bytchtes8316" + + ] + + Value { + PlaybackPCM "hw:bytchtes8316" + CapturePCM "hw:bytchtes8316" + } +} + + + + + + diff --git a/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf b/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf new file mode 100644 index 0000000..a94f0f7 --- /dev/null +++ b/ucm/bytcht-es8316-stereo-spk-in2-mic/bytcht-es8316-stereo-spk-in2-mic.conf @@ -0,0 +1,8 @@ +SectionUseCase."HiFi" { + File "../bytcht-es8316-stereo-spk-in2-mic/HiFi.conf" + Comment "Play HiFi quality Music" +} + +SectionDefaults [ + cdev "hw:bytchtes8316" +] -- 2.47.1