From: Jaroslav Kysela Date: Fri, 24 Jan 2020 13:39:26 +0000 (+0100) Subject: chtnau8824: fixes and corrections X-Git-Tag: v1.2.2~21 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=54f0ed010f7353b37a7b0eee109537675323b9d8;p=alsa-ucm-conf.git chtnau8824: fixes and corrections Signed-off-by: Jaroslav Kysela --- diff --git a/ucm2/chtnau8824/HiFi-mono.conf b/ucm2/chtnau8824/HiFi-mono.conf index 3433d03..26d6a56 100644 --- a/ucm2/chtnau8824/HiFi-mono.conf +++ b/ucm2/chtnau8824/HiFi-mono.conf @@ -3,9 +3,6 @@ SectionVerb { Value { TQ "HiFi" - # ALSA PCM device for HiFi - PlaybackPCM "hw:${CardId}" - CapturePCM "hw:${CardId}" } EnableSequence [ diff --git a/ucm2/chtnau8824/HiFi.conf b/ucm2/chtnau8824/HiFi.conf index 9f7ac74..fd8b741 100644 --- a/ucm2/chtnau8824/HiFi.conf +++ b/ucm2/chtnau8824/HiFi.conf @@ -1,13 +1,5 @@ SectionVerb { - - Value { - TQ "HiFi" - # ALSA PCM device for HiFi - PlaybackPCM "hw:${CardId}" - CapturePCM "hw:${CardId}" - } - EnableSequence [ diff --git a/ucm2/codecs/nau8824/HeadPhones.conf b/ucm2/codecs/nau8824/HeadPhones.conf index f35f4e2..6623365 100644 --- a/ucm2/codecs/nau8824/HeadPhones.conf +++ b/ucm2/codecs/nau8824/HeadPhones.conf @@ -2,12 +2,13 @@ SectionDevice."Headphones" { Comment "Headphones" Value { - PlaybackChannels "2" + PlaybackPriority 200 + PlaybackPCM "hw:${CardId}" + PlaybackChannels 2 JackControl "Headphone Jack" } ConflictingDevice [ - "MonoSpeaker" "Speaker" ] diff --git a/ucm2/codecs/nau8824/HeadsetMic.conf b/ucm2/codecs/nau8824/HeadsetMic.conf index bc17f9f..7381638 100644 --- a/ucm2/codecs/nau8824/HeadsetMic.conf +++ b/ucm2/codecs/nau8824/HeadsetMic.conf @@ -1,13 +1,15 @@ -SectionDevice."HeadsetMic" { +SectionDevice."Headset" { Comment "Headset Microphone" Value { - CaptureChannels "2" + CapturePriority 300 + CapturePCM "hw:${CardId}" + CaptureChannels 2 JackControl "Headset Mic Jack" } ConflictingDevice [ - "InternalMic" + "Mic" ] EnableSequence [ diff --git a/ucm2/codecs/nau8824/InternalMic.conf b/ucm2/codecs/nau8824/InternalMic.conf index 3793d64..731a261 100644 --- a/ucm2/codecs/nau8824/InternalMic.conf +++ b/ucm2/codecs/nau8824/InternalMic.conf @@ -1,13 +1,14 @@ -SectionDevice."InternalMic" { +SectionDevice."Mic" { Comment "Internal Microphone" Value { - CaptureChannels "2" - CapturePriority "150" + CapturePriority 200 + CapturePCM "hw:${CardId}" + CaptureChannels 2 } ConflictingDevice [ - "HeadsetMic" + "Headset" ] EnableSequence [ diff --git a/ucm2/codecs/nau8824/MonoSpeaker.conf b/ucm2/codecs/nau8824/MonoSpeaker.conf index 5321c8a..b02a22c 100644 --- a/ucm2/codecs/nau8824/MonoSpeaker.conf +++ b/ucm2/codecs/nau8824/MonoSpeaker.conf @@ -1,12 +1,13 @@ -SectionDevice."MonoSpeaker" { +SectionDevice."Speaker" { Comment "Mono Speaker" Value { - PlaybackChannels "2" + PlaybackPriority 100 + PlaybackPCM "hw:${CardId}" + PlaybackChannels 2 } ConflictingDevice [ - "Speaker" "Headphones" ] diff --git a/ucm2/codecs/nau8824/Speaker.conf b/ucm2/codecs/nau8824/Speaker.conf index 474c373..3658795 100644 --- a/ucm2/codecs/nau8824/Speaker.conf +++ b/ucm2/codecs/nau8824/Speaker.conf @@ -2,11 +2,12 @@ SectionDevice."Speaker" { Comment "Speaker" Value { - PlaybackChannels "2" + PlaybackPriority 100 + PlaybackPCM "hw:${CardId}" + PlaybackChannels 2 } ConflictingDevice [ - "MonoSpeaker" "Headphones" ]