]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
codecs/rt5640: Unify capture volume for AIF1 and AIF2 recording paths
authorHans de Goede <hdegoede@redhat.com>
Mon, 8 Mar 2021 22:05:52 +0000 (23:05 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 10 Mar 2021 10:04:01 +0000 (11:04 +0100)
commitaa5eb452b45dc322344e797d3b31274ba5a055bd
treee317ad52eadad7cf85754293e12130ab1935f87c
parent3df03f08d5f3f60719a73e9962aa3e4caea11b32
codecs/rt5640: Unify capture volume for AIF1 and AIF2 recording paths

The rt5640 codec is sometimes used with AIF1 connected to the
SoC and sometimes with AIF2 connected to the SoC.

The rt5640 UCM configuration deals with this by accepting input from
and sending output to both AIFs, relying on the kernels DAPM framework to
disable parts of the graph which are connected to the unconnected AIF.

Before this commit codecs/rt5640/EnableSeq.conf was adding a +9dB
(digital) boost to recording going through the 'ADC' path to AIF1,
while not touching the 'Mono ADC' path to AIF2.

This was causing recordings on devices using AIF2 to be somewhat soft.

This commit unifies the record volume control settings for both paths by
only using the '[Mono ]ADC Capture Volume' control, which is present
in both paths and setting it to +9dB on both paths.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/codecs/rt5640/EnableSeq.conf