From: Jaroslav Kysela Date: Thu, 23 Jan 2020 18:03:53 +0000 (+0100) Subject: bytcr-rt5640: cleanups and corrections X-Git-Tag: v1.2.2~31 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=e1f9bdb95e1cf90c17a44fa5734b41b6656d648d;p=alsa-ucm-conf.git bytcr-rt5640: cleanups and corrections Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/codecs/rt5640/DigitalMics.conf b/ucm2/codecs/rt5640/DigitalMics.conf index 36982c4..17cae19 100644 --- a/ucm2/codecs/rt5640/DigitalMics.conf +++ b/ucm2/codecs/rt5640/DigitalMics.conf @@ -1,10 +1,8 @@ -SectionDevice."DigitalMics" { +SectionDevice."Mic" { Comment "Internal Digital Microphones" ConflictingDevice [ - "IN1-InternalMics" - "IN3-InternalMics" - "HeadsetMic" + "Headset" ] EnableSequence [ @@ -22,6 +20,8 @@ SectionDevice."DigitalMics" { ] Value { + CapturePriority 100 + CapturePCM "hw:${CardId},0" CaptureChannels 2 } } diff --git a/ucm2/codecs/rt5640/HeadPhones.conf b/ucm2/codecs/rt5640/HeadPhones.conf index e37442d..dccc943 100644 --- a/ucm2/codecs/rt5640/HeadPhones.conf +++ b/ucm2/codecs/rt5640/HeadPhones.conf @@ -32,7 +32,9 @@ SectionDevice."Headphones" { ] Value { - PlaybackChannels "2" + PlaybackPriority 300 + PlaybackPCM "hw:${CardId},0" + PlaybackChannels 2 JackControl "Headphone Jack" } } diff --git a/ucm2/codecs/rt5640/HeadsetMic.conf b/ucm2/codecs/rt5640/HeadsetMic.conf index a99b295..f6d9423 100644 --- a/ucm2/codecs/rt5640/HeadsetMic.conf +++ b/ucm2/codecs/rt5640/HeadsetMic.conf @@ -1,10 +1,8 @@ -SectionDevice."HeadsetMic" { +SectionDevice."Headset" { Comment "Headset Microphone" ConflictingDevice [ - "IN1-InternalMics" - "IN3-InternalMics" - "DigitalMics" + "Mic" ] EnableSequence [ @@ -38,6 +36,8 @@ SectionDevice."HeadsetMic" { ] Value { + CapturePriority 200 + CapturePCM "hw:${CardId},0" CaptureChannels 2 JackControl "Headset Mic Jack" } diff --git a/ucm2/codecs/rt5640/IN1-InternalMic.conf b/ucm2/codecs/rt5640/IN1-InternalMic.conf index 95fc89e..435cce8 100644 --- a/ucm2/codecs/rt5640/IN1-InternalMic.conf +++ b/ucm2/codecs/rt5640/IN1-InternalMic.conf @@ -1,10 +1,8 @@ -SectionDevice."IN1-InternalMics" { +SectionDevice."Mic" { Comment "Internal Microphone on IN1" ConflictingDevice [ - "DigitalMics" "HeadsetMic" - "IN3-InternalMics" ] EnableSequence [ @@ -41,6 +39,8 @@ SectionDevice."IN1-InternalMics" { ] Value { + CapturePriority 100 + CapturePCM "hw:${CardId},0" CaptureChannels 2 } } diff --git a/ucm2/codecs/rt5640/IN3-InternalMic.conf b/ucm2/codecs/rt5640/IN3-InternalMic.conf index b8270e9..4d4060e 100644 --- a/ucm2/codecs/rt5640/IN3-InternalMic.conf +++ b/ucm2/codecs/rt5640/IN3-InternalMic.conf @@ -1,10 +1,8 @@ -SectionDevice."IN3-InternalMics" { +SectionDevice."Mic" { Comment "Internal Microphone on IN3" ConflictingDevice [ - "DigitalMics" - "HeadsetMic" - "IN1-InternalMics" + "Headset" ] EnableSequence [ @@ -41,6 +39,8 @@ SectionDevice."IN3-InternalMics" { ] Value { + CapturePriority 100 + CapturePCM "hw:${CardId},0" CaptureChannels 2 } } diff --git a/ucm2/codecs/rt5640/MonoSpeaker.conf b/ucm2/codecs/rt5640/MonoSpeaker.conf index ee4eff3..6ca51e2 100644 --- a/ucm2/codecs/rt5640/MonoSpeaker.conf +++ b/ucm2/codecs/rt5640/MonoSpeaker.conf @@ -1,4 +1,4 @@ -SectionDevice."MonoSpeaker" { +SectionDevice."Speaker" { Comment "Mono Speaker" ConflictingDevice [ @@ -37,6 +37,8 @@ SectionDevice."MonoSpeaker" { ] Value { - PlaybackChannels "2" + PlaybackPriority 100 + PlaybackPCM "hw:${CardId},0" + PlaybackChannels 2 } } diff --git a/ucm2/codecs/rt5640/Speaker.conf b/ucm2/codecs/rt5640/Speaker.conf index 564a6b3..09b99cf 100644 --- a/ucm2/codecs/rt5640/Speaker.conf +++ b/ucm2/codecs/rt5640/Speaker.conf @@ -37,6 +37,8 @@ SectionDevice."Speaker" { ] Value { - PlaybackChannels "2" + PlaybackPCM "hw:${CardId},0" + PlaybackPriority 100 + PlaybackChannels 2 } }