OSDN Git Service

USB-Audio: Dell-WD15-Dock: make input and output volume adjustable
authorHui Wang <hui.wang@canonical.com>
Mon, 17 Aug 2020 04:37:44 +0000 (12:37 +0800)
committerJaroslav Kysela <perex@perex.cz>
Tue, 18 Aug 2020 15:34:31 +0000 (17:34 +0200)
commit15a3ab694c703530e0d9317116be5d28129986e0
tree18c71983d27aeabf1d691e9c1d6be8f02a561be1
parent368f10bdc3dbfd4f83ab348b54b8455f08fd1a9e
USB-Audio: Dell-WD15-Dock: make input and output volume adjustable

Recently we found the input volume is too low for some specific
headset-mic, even we adjust the input volume to max from PA, we still
can't record the sound from that headset-mic. That is because we
change the input or output volume from PA, but the mixer's volume
is not changed, only PA's soft-volume is changed.

Checking the amixer controls for the sound card in the WD19, it
supports MixerElem, Volume and Switch, and checking the sound card in
the WD15, it doesn't have Volume and Switch for Headphone and Line,
So adding the volume and switch control in the ucm conditionally.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/47
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/USB-Audio/Dell-WD15-Dock-HiFi.conf