OSDN Git Service

codecs/es8316: Add hardware volume-control support
authorHans de Goede <hdegoede@redhat.com>
Sun, 7 Mar 2021 20:03:08 +0000 (21:03 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 10 Mar 2021 09:55:44 +0000 (10:55 +0100)
Add hardware volume-control support for the es8316 codec.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/es8316/HeadPhones.conf
ucm2/codecs/es8316/IN1-HeadsetMic.conf
ucm2/codecs/es8316/IN1-InternalMic.conf
ucm2/codecs/es8316/IN2-HeadsetMic.conf
ucm2/codecs/es8316/IN2-InternalMic.conf
ucm2/codecs/es8316/MonoSpeaker.conf
ucm2/codecs/es8316/Speaker.conf

index b68569a..57bd448 100644 (file)
@@ -16,6 +16,8 @@ SectionDevice."Headphones" {
        Value {
                PlaybackPriority 200
                PlaybackPCM "hw:${CardId}"
+               PlaybackMixerElem "Headphone Mixer"
+               PlaybackMasterElem "DAC"
                JackControl "Headphone Jack"
                JackHWMute "Speaker"
        }
index a76b275..53958ba 100644 (file)
@@ -17,6 +17,8 @@ SectionDevice."Headset" {
        Value {
                CapturePriority 200
                CapturePCM "hw:${CardId}"
+               CaptureMixerElem "ADC PGA Gain"
+               CaptureMasterElem "ADC"
                JackControl "Headset Mic Jack"
        }
 }
index ede0a8c..7e7f75f 100644 (file)
@@ -17,5 +17,7 @@ SectionDevice."Mic" {
        Value {
                CapturePriority 100
                CapturePCM "hw:${CardId}"
+               CaptureMixerElem "ADC PGA Gain"
+               CaptureMasterElem "ADC"
        }
 }
index b114c86..9221b24 100644 (file)
@@ -17,6 +17,8 @@ SectionDevice."Headset" {
        Value {
                CapturePriority 200
                CapturePCM "hw:${CardId}"
+               CaptureMixerElem "ADC PGA Gain"
+               CaptureMasterElem "ADC"
                JackControl "Headset Mic Jack"
        }
 }
index c8fce62..8b73da4 100644 (file)
@@ -17,5 +17,7 @@ SectionDevice."Mic" {
        Value {
                CapturePriority 100
                CapturePCM "hw:${CardId}"
+               CaptureMixerElem "ADC PGA Gain"
+               CaptureMasterElem "ADC"
        }
 }
index f5f4273..2d76413 100644 (file)
@@ -33,5 +33,9 @@ SectionDevice."Speaker" {
        Value {
                PlaybackPriority 100
                PlaybackPCM "hw:${CardId}"
+               # The es8316 only has a HP-amp which is muxed to the speaker
+               # or to the headpones output
+               PlaybackMixerElem "Headphone Mixer"
+               PlaybackMasterElem "DAC"
        }
 }
index 03c21b3..4e97772 100644 (file)
@@ -16,5 +16,9 @@ SectionDevice."Speaker" {
        Value {
                PlaybackPriority 100
                PlaybackPCM "hw:${CardId}"
+               # The es8316 only has a HP-amp which is muxed to the speaker
+               # or to the headpones output
+               PlaybackMixerElem "Headphone Mixer"
+               PlaybackMasterElem "DAC"
        }
 }