OSDN Git Service

codecs/rt5640: Specify Playback/CaptureMasterElem for HW volume-control
authorHans de Goede <hdegoede@redhat.com>
Mon, 8 Mar 2021 22:05:54 +0000 (23:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 13 Mar 2021 15:57:43 +0000 (16:57 +0100)
commitfe8f376257dc3cca5812c607cf0e29bf87a3b536
tree66a57e0430625dade6697181779abf39c24c6a7a
parent6fa02d3cfe72d1ead68edf274b315ad38cd49e9c
codecs/rt5640: Specify Playback/CaptureMasterElem for HW volume-control

Newer kernels add "aif:1" or "aif:2" to the components string to let
us know which AIF is being used.

Use this to specify the correct Playback/CaptureMasterElem for HW
volume-control, based on which AIF is being used.

On older kernels, where there is no "aif:%d" string in the components
string, no Playback/CaptureMasterElem is specified.

In DigitalMics.conf the master mixer is used as regular CaptureMixerElem
instead of as CaptureMasterElem since the DMICs don't have any analog
volume control.

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