aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJaroslav Kysela <perex@perex.cz>2020-01-23 19:53:52 +0100
committerJaroslav Kysela <perex@perex.cz>2020-02-05 03:16:05 +0100
commit7248ff84f18dc56d289937a81adfdc3852ee8a8f (patch)
treebeb568b586019b9d96a58dd25480a4ac1470509b
parent9b0f31cc65b558c0eee98be583b8a8108341e53d (diff)
bytcht-es8316: cleanups and corrections
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
-rw-r--r--ucm2/codecs/es8316/HeadPhones.conf7
-rw-r--r--ucm2/codecs/es8316/IN1-HeadsetMic.conf10
-rw-r--r--ucm2/codecs/es8316/IN1-InternalMic.conf10
-rw-r--r--ucm2/codecs/es8316/IN2-HeadsetMic.conf10
-rw-r--r--ucm2/codecs/es8316/IN2-InternalMic.conf6
-rw-r--r--ucm2/codecs/es8316/MonoSpeaker.conf7
-rw-r--r--ucm2/codecs/es8316/Speaker.conf4
7 files changed, 30 insertions, 24 deletions
diff --git a/ucm2/codecs/es8316/HeadPhones.conf b/ucm2/codecs/es8316/HeadPhones.conf
index 3f3e591..603b40c 100644
--- a/ucm2/codecs/es8316/HeadPhones.conf
+++ b/ucm2/codecs/es8316/HeadPhones.conf
@@ -3,7 +3,6 @@ SectionDevice."Headphones" {
ConflictingDevice [
"Speaker"
- "MonoSpeaker"
]
EnableSequence [
@@ -15,8 +14,10 @@ SectionDevice."Headphones" {
]
Value {
- PlaybackChannels "2"
+ PlaybackPriority 200
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackChannels 2
JackControl "Headphone Jack"
- JackHWMute "Speaker MonoSpeaker"
+ JackHWMute "Speaker"
}
}
diff --git a/ucm2/codecs/es8316/IN1-HeadsetMic.conf b/ucm2/codecs/es8316/IN1-HeadsetMic.conf
index 997a50b..d798270 100644
--- a/ucm2/codecs/es8316/IN1-HeadsetMic.conf
+++ b/ucm2/codecs/es8316/IN1-HeadsetMic.conf
@@ -1,10 +1,8 @@
-SectionDevice."HeadsetMic-IN1" {
+SectionDevice."Headset" {
Comment "Headset Microphone on IN1"
ConflictingDevice [
- "InternalMic-IN1"
- "InternalMic-IN2"
- "HeadsetMic-IN2"
+ "Mic"
]
EnableSequence [
@@ -17,7 +15,9 @@ SectionDevice."HeadsetMic-IN1" {
]
Value {
- CaptureChannels "2"
+ CapturePriority 200
+ CapturePCM "hw:${CardId},0"
+ CaptureChannels 2
JackControl "Headset Mic Jack"
}
}
diff --git a/ucm2/codecs/es8316/IN1-InternalMic.conf b/ucm2/codecs/es8316/IN1-InternalMic.conf
index 70a77b9..31c5cda 100644
--- a/ucm2/codecs/es8316/IN1-InternalMic.conf
+++ b/ucm2/codecs/es8316/IN1-InternalMic.conf
@@ -1,10 +1,8 @@
-SectionDevice."InternalMic-IN1" {
+SectionDevice."Mic" {
Comment "Internal Microphone on IN1"
ConflictingDevice [
- "InternalMic-IN2"
- "HeadsetMic-IN1"
- "HeadsetMic-IN2"
+ "Headset"
]
EnableSequence [
@@ -17,6 +15,8 @@ SectionDevice."InternalMic-IN1" {
]
Value {
- CaptureChannels "2"
+ CapturePriority 100
+ CapturePCM "hw:${CardId}"
+ CaptureChannels 2
}
}
diff --git a/ucm2/codecs/es8316/IN2-HeadsetMic.conf b/ucm2/codecs/es8316/IN2-HeadsetMic.conf
index 1ab1221..28f26f8 100644
--- a/ucm2/codecs/es8316/IN2-HeadsetMic.conf
+++ b/ucm2/codecs/es8316/IN2-HeadsetMic.conf
@@ -1,10 +1,8 @@
-SectionDevice."HeadsetMic-IN2" {
+SectionDevice."Headset" {
Comment "Headset Microphone on IN2"
ConflictingDevice [
- "InternalMic-IN1"
- "InternalMic-IN2"
- "HeadsetMic-IN1"
+ "Mic"
]
EnableSequence [
@@ -17,7 +15,9 @@ SectionDevice."HeadsetMic-IN2" {
]
Value {
- CaptureChannels "2"
+ CapturePriority 200
+ CapturePCM "hw:${CardId},0"
+ CaptureChannels 2
JackControl "Headset Mic Jack"
}
}
diff --git a/ucm2/codecs/es8316/IN2-InternalMic.conf b/ucm2/codecs/es8316/IN2-InternalMic.conf
index 7809f8a..8c0418f 100644
--- a/ucm2/codecs/es8316/IN2-InternalMic.conf
+++ b/ucm2/codecs/es8316/IN2-InternalMic.conf
@@ -1,4 +1,4 @@
-SectionDevice."InternalMic-IN2" {
+SectionDevice."Mic" {
Comment "Internal Microphone on IN2"
ConflictingDevice [
@@ -17,6 +17,8 @@ SectionDevice."InternalMic-IN2" {
]
Value {
- CaptureChannels "2"
+ CapturePriority 100
+ CapturePCM "hw:${CardId},0"
+ CaptureChannels 2
}
}
diff --git a/ucm2/codecs/es8316/MonoSpeaker.conf b/ucm2/codecs/es8316/MonoSpeaker.conf
index 704556a..f11f2b7 100644
--- a/ucm2/codecs/es8316/MonoSpeaker.conf
+++ b/ucm2/codecs/es8316/MonoSpeaker.conf
@@ -1,8 +1,7 @@
-SectionDevice."MonoSpeaker" {
+SectionDevice."Speaker" {
Comment "Mono Speaker"
ConflictingDevice [
- "Speaker"
"Headphones"
]
@@ -32,6 +31,8 @@ SectionDevice."MonoSpeaker" {
]
Value {
- PlaybackChannels "2"
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackChannels 2
}
}
diff --git a/ucm2/codecs/es8316/Speaker.conf b/ucm2/codecs/es8316/Speaker.conf
index 0e77746..a1e4491 100644
--- a/ucm2/codecs/es8316/Speaker.conf
+++ b/ucm2/codecs/es8316/Speaker.conf
@@ -15,6 +15,8 @@ SectionDevice."Speaker" {
]
Value {
- PlaybackChannels "2"
+ PlaybackPriority 100
+ PlaybackPCM "hw:${CardId},0"
+ PlaybackChannels 2
}
}