]> git.alsa-project.org Git - alsa-ucm-conf.git/log
alsa-ucm-conf.git
3 years agoUMC204HD: Use newly introduced macros to simplify configs
Jaroslav Kysela [Tue, 17 May 2022 17:44:56 +0000 (19:44 +0200)]
UMC204HD: Use newly introduced macros to simplify configs

Although the information is somehow duplicated, the current
macros support both "alsa-lib PCM channel split" and
"application side PCM channel split".

The key is the readability.

Test:

alsaucm -c "hw:1" dump text

vs.

alsaucm -c "<<<SplitPCM=1>>>hw:1" dump text

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoAdd common/ctl/remap.conf and common/pcm/split.conf
Jaroslav Kysela [Tue, 17 May 2022 17:30:56 +0000 (19:30 +0200)]
Add common/ctl/remap.conf and common/pcm/split.conf

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: put disdevall to HDA/Soundwire configs
Jaroslav Kysela [Tue, 24 May 2022 14:40:58 +0000 (16:40 +0200)]
ucm2: put disdevall to HDA/Soundwire configs

All device should be set to the sane (off) state when the verb
is selected.

Link: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1356
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoGoXLR: Fixed sampler input configuration
Craig McLure [Mon, 23 May 2022 23:56:17 +0000 (00:56 +0100)]
GoXLR: Fixed sampler input configuration

Renamed the 'Sample' input channel to 'Sampler' to better reflect it's behaviour, and corrected channel numbers.

Link: https://github.com/alsa-project/alsa-ucm-conf/pull/155
Signed-off-by: Craig McLure <craig@mclure.net>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: use the right mixers for speaker/headphone
Mauro Carvalho Chehab [Sat, 2 Apr 2022 10:03:06 +0000 (07:03 -0300)]
ucm2: sof-essx8336: use the right mixers for speaker/headphone

On es8316 and es8336, both speaker and headphone share the same
mixer. Adjust the controls to reflect the actual control names,
at the same way as bytcht-es8316.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/144
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: drop conditional control settings
Mauro Carvalho Chehab [Sun, 3 Apr 2022 11:13:00 +0000 (08:13 -0300)]
ucm2: sof-essx8336: drop conditional control settings

The Headphone controls are used by both speaker and headphone,
due to that, can't be used to detect if the device has Speaker
and/or headphones.

Also, all such controls are already initialized during the
BootSequence.

So, just drop them.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/144
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: Add a boot sequence
Mauro Carvalho Chehab [Tue, 29 Mar 2022 19:48:32 +0000 (16:48 -0300)]
ucm2: sof-essx8336: Add a boot sequence

Add a boot sequence to place the card on a reliable state.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/144
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: Fix location of HiFi.conf
Mauro Carvalho Chehab [Tue, 29 Mar 2022 19:48:32 +0000 (16:48 -0300)]
ucm2: sof-essx8336: Fix location of HiFi.conf

There's a typo there:

sof-es8336 -> sof-essx8336

That causes ucm HiFi profile to not load, nor Hdmi.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/144
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: Fill in SectionVerb session at HiFi.conf
Mauro Carvalho Chehab [Tue, 29 Mar 2022 19:48:32 +0000 (16:48 -0300)]
ucm2: sof-essx8336: Fill in SectionVerb session at HiFi.conf

There is an open:
SectionVerb {

at HiFi.conf, which is not only unused, but also it is missing
its close bracket.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/144
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio/Realtek/ALC4080: Fix microphone on MSI boards after ASUS changes.
Johannes Schickel [Wed, 13 Apr 2022 19:58:18 +0000 (21:58 +0200)]
USB-Audio/Realtek/ALC4080: Fix microphone on MSI boards after ASUS changes.

Signed-off-by: Johannes Schickel <lordhoto@gmail.com>.
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio/Realtek/ALC4080: conditional S/PDIF index, add back microphone (#1)
Tatsh [Wed, 13 Apr 2022 19:56:29 +0000 (15:56 -0400)]
USB-Audio/Realtek/ALC4080: conditional S/PDIF index, add back microphone (#1)

Fixes ASUS ROG Maximus XIII support.
C/Sub port is not tested.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: Match 0db0:1feb for ALC4080 profile.
Johannes Schickel [Sat, 9 Apr 2022 12:28:02 +0000 (14:28 +0200)]
USB-Audio: Match 0db0:1feb for ALC4080 profile.

Signed-off-by: Johannes Schickel <lordhoto@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: Additionally match 0b05:1996 and 0db0:a073 for ALC4080 profile.
Johannes Schickel [Thu, 7 Apr 2022 15:30:48 +0000 (17:30 +0200)]
USB-Audio: Additionally match 0b05:1996 and 0db0:a073 for ALC4080 profile.

Signed-off-by: Johannes Schickel <lordhoto@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: Add profile for MSI MPG X570S Carbon Max Wifi.
Johannes Schickel [Sun, 16 Jan 2022 13:27:08 +0000 (14:27 +0100)]
USB-Audio: Add profile for MSI MPG X570S Carbon Max Wifi.

This patch depends on Linux 5.17.

This board features an Realtek ALC4080 chip. The various inputs and
outputs are distributed over multiple hardware devices:
* Input
 - hw:$card,0 loop back from speaker (called "Analog In")
 - hw:$card,1 line in at back panel
 - hw:$card,2 microphone from front AND back panel
* Output
 - hw:$card,0 speaker output at back panel (up to 7.1)
 - hw:$card,1 headerphone output at front panel
 - hw:$card,2 could not figure this one out
 - hw:$card,3 guessed S/PDIF output (sadly no way to test)

By default Mic and Line in are disabled. This confuses applications,
thus I made the profile enable them by default.

Without an UCM profile PulseAudio is not able to create output on
the front panel nor record any microphone input.

Signed-off-by: Johannes Schickel <lordhoto@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUMC204HD: Add chmaps
Jaroslav Kysela [Mon, 16 May 2022 15:59:17 +0000 (17:59 +0200)]
UMC204HD: Add chmaps

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoAdd direct hardware profile for UMC204HD
Jaroslav Kysela [Sat, 14 May 2022 15:12:19 +0000 (16:12 +0100)]
Add direct hardware profile for UMC204HD

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/153
From: Peter Wedder <burneddi@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-DualCodecs: Fix wrong jack control on Lenovo P520
Jaroslav Kysela [Tue, 10 May 2022 15:11:41 +0000 (17:11 +0200)]
HDA-DualCodecs: Fix wrong jack control on Lenovo P520

Lenovo P520 uses the same line out switch like other dual codecs
systems, however it uses another jack control. So consolidate the switch and
separate the jacks to make its jack control work again.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/149
From: Kai-Heng Feng <kai.heng.feng@canonical.com>
Fixes: 7dda1e2 ("HDA: improve support for HDAudio-Gigabyte-ALC1220DualCodecs")
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoBehringer UMC204HD - change the default mixer profile
Jaroslav Kysela [Wed, 4 May 2022 09:36:38 +0000 (11:36 +0200)]
Behringer UMC204HD - change the default mixer profile

Link: https://github.com/alsa-project/alsa-ucm-conf/pull/128
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoAdd profile for Behringer UMC204HD
brndd [Sun, 12 Dec 2021 07:19:06 +0000 (09:19 +0200)]
Add profile for Behringer UMC204HD

Link: https://github.com/alsa-project/alsa-ucm-conf/pull/128
Signed-off-by: Peter Wedder <burneddi@gmail.com>
3 years agoucm2: HDA - add second Line output (Front)
Jaroslav Kysela [Mon, 21 Mar 2022 14:34:58 +0000 (15:34 +0100)]
ucm2: HDA - add second Line output (Front)

BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/141
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: HDA - make Speaker device optional
Jaroslav Kysela [Mon, 21 Mar 2022 14:24:51 +0000 (15:24 +0100)]
ucm2: HDA - make Speaker device optional

BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/141
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: HDA - add support for 'Line Playback' controls
Jaroslav Kysela [Mon, 21 Mar 2022 14:15:05 +0000 (15:15 +0100)]
ucm2: HDA - add support for 'Line Playback' controls

BugLink: https://github.com/alsa-project/alsa-ucm-conf/issues/141
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: add missing symlink from conf.d tree
Jaroslav Kysela [Fri, 11 Mar 2022 08:54:27 +0000 (09:54 +0100)]
ucm2: sof-essx8336: add missing symlink from conf.d tree

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: sof-essx8336: initial support
Pierre-Louis Bossart [Thu, 17 Feb 2022 17:39:52 +0000 (11:39 -0600)]
ucm2: sof-essx8336: initial support

Loosely based on the sof-hda-dsp model for DMIC conditional handling.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/139
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: add additional symlink for Pinebook Pro
Kyle Copperfield [Mon, 28 Feb 2022 05:47:59 +0000 (05:47 +0000)]
ucm2: add additional symlink for Pinebook Pro

since 907f0a305186 ASoC: simple-card: Fill in driver name of the linux
kernel, the base name is simple-card instead of rockchip_es8316

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/140
Fixes: 85eea19783cf ("ucm2: Add UCM support for rockchip_es8316 on Pinebook Pro")
Signed-off-by: Kyle Copperfield <kmcopper@danwin1210.me>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agosof-hda-dsp: fix multiple If.dmic blocks
Jaroslav Kysela [Wed, 9 Feb 2022 15:19:31 +0000 (16:19 +0100)]
sof-hda-dsp: fix multiple If.dmic blocks

Fix multiple If.dmic blocks - rename the first to devdmic
initialization.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/132
Reported-by: Kacper Michajłow <kasper93@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoacp6x: add initial support for AMD Yellow Carp - ACP6x
Jaroslav Kysela [Thu, 27 Jan 2022 20:50:32 +0000 (21:50 +0100)]
acp6x: add initial support for AMD Yellow Carp - ACP6x

Link: https://github.com/alsa-project/alsa-ucm-conf/issues/136
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-acp: avoid to create 'Mic ACP LED' control for the HDMI card
Jaroslav Kysela [Fri, 7 Jan 2022 09:57:48 +0000 (10:57 +0100)]
HDA-acp: avoid to create 'Mic ACP LED' control for the HDMI card

BugLink: https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1849#note_1210933
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-DualCodecs: fix typo in Speaker condition
Jaroslav Kysela [Mon, 27 Dec 2021 21:05:16 +0000 (22:05 +0100)]
HDA-DualCodecs: fix typo in Speaker condition

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoRelease v1.2.6.3 v1.2.6.3
Jaroslav Kysela [Fri, 17 Dec 2021 16:53:11 +0000 (17:53 +0100)]
Release v1.2.6.3

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2/Qualcomm/apq8096: Change plughw to hw to access card
Aníbal Limón [Tue, 14 Dec 2021 17:35:45 +0000 (11:35 -0600)]
ucm2/Qualcomm/apq8096: Change plughw to hw to access card

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2/Qualcomm/apq8016-sbc: Change plughw to hw to access card
Aníbal Limón [Tue, 14 Dec 2021 17:29:35 +0000 (11:29 -0600)]
ucm2/Qualcomm/apq8016-sbc: Change plughw to hw to access card

Signed-off-by: Aníbal Limón <anibal.limon@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: Add support for RT5650 on MediaTek SoCs
AngeloGioacchino Del Regno [Fri, 5 Nov 2021 16:12:45 +0000 (17:12 +0100)]
ucm2: Add support for RT5650 on MediaTek SoCs

At least one MT8173 machine uses a RT5650 codec and that's Google Elm:
add a UCM2 configuration for this codec.

This was tested on Acer Chromebook R13 (MT8173 Elm).

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoREADME.md: add example unpack command
Jaroslav Kysela [Tue, 14 Dec 2021 09:40:55 +0000 (10:40 +0100)]
README.md: add example unpack command

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agosof-soundwire: use absolute path in SectionUseCase
Jaroslav Kysela [Mon, 13 Dec 2021 09:32:22 +0000 (10:32 +0100)]
sof-soundwire: use absolute path in SectionUseCase

BugLink: https://bugzilla.redhat.com/show_bug.cgi?id=2031566
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoREADME.md: add installation paragraph
Jaroslav Kysela [Fri, 10 Dec 2021 18:29:58 +0000 (19:29 +0100)]
README.md: add installation paragraph

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoRelease v1.2.6.2 v1.2.6.2
Jaroslav Kysela [Fri, 10 Dec 2021 09:05:31 +0000 (10:05 +0100)]
Release v1.2.6.2

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcht-es8316: fix Include paths in HiFi.conf
Jaroslav Kysela [Fri, 10 Dec 2021 08:40:25 +0000 (09:40 +0100)]
bytcht-es8316: fix Include paths in HiFi.conf

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agosof-hda-dsp: fix path to Hdmi.conf
Miroslav Sustek [Thu, 9 Dec 2021 22:16:05 +0000 (23:16 +0100)]
sof-hda-dsp: fix path to Hdmi.conf

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/127
Signed-off-by: Miroslav Sustek <sustmidown@centrum.cz>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoRelease v1.2.6.1 v1.2.6.1
Jaroslav Kysela [Thu, 9 Dec 2021 14:52:52 +0000 (15:52 +0100)]
Release v1.2.6.1

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoacp: fix linked configuration
Jaroslav Kysela [Thu, 9 Dec 2021 10:24:14 +0000 (11:24 +0100)]
acp: fix linked configuration

Fixes: https://github.com/alsa-project/alsa-lib/issues/199
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: Add support for SC7180 Trogdor Lazor Chromebooks
AngeloGioacchino Del Regno [Wed, 10 Nov 2021 13:12:39 +0000 (14:12 +0100)]
ucm2: Add support for SC7180 Trogdor Lazor Chromebooks

Almost all Trogdor Chromebooks are using RT5682 for headphones/headset
on 3.5mm jack, internal microphone and headset microphone, and MAX98357A
for the internal speakers (Lazor and Limozeen).

This adds support for the sc7180-rt5682-max98357a-1mic sound card found
on the aforementioned Chromebooks.

Signed-off-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: fix the wrong condition type for If.realtek-alc1220-vb
Jaroslav Kysela [Thu, 9 Dec 2021 08:00:12 +0000 (09:00 +0100)]
USB-Audio: fix the wrong condition type for If.realtek-alc1220-vb

BugLink: https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/issues/1246
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoRelease v1.2.6 v1.2.6
Jaroslav Kysela [Mon, 6 Dec 2021 11:10:54 +0000 (12:10 +0100)]
Release v1.2.6

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA: improve support for HDAudio-Gigabyte-ALC1220DualCodecs
Jaroslav Kysela [Thu, 2 Dec 2021 18:12:05 +0000 (19:12 +0100)]
HDA: improve support for HDAudio-Gigabyte-ALC1220DualCodecs

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/48
Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/123
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA: improve init.conf (Capture volume, switches)
Jaroslav Kysela [Thu, 2 Dec 2021 13:49:10 +0000 (14:49 +0100)]
HDA: improve init.conf (Capture volume, switches)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA: Fix the DualCodecs condition
Jaroslav Kysela [Fri, 3 Dec 2021 08:25:13 +0000 (09:25 +0100)]
HDA: Fix the DualCodecs condition

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm.conf: turn off support for V2Module and V2Name by default
Jaroslav Kysela [Tue, 23 Nov 2021 11:43:37 +0000 (12:43 +0100)]
ucm.conf: turn off support for V2Module and V2Name by default

The only preferred lookup path is conf.d/ subtree.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA: shuffle order for HiFi-analog.conf include
Jaroslav Kysela [Tue, 23 Nov 2021 11:56:27 +0000 (12:56 +0100)]
HDA: shuffle order for HiFi-analog.conf include

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-Intel: rename config directory to HDA
Jaroslav Kysela [Tue, 23 Nov 2021 11:50:13 +0000 (12:50 +0100)]
HDA-Intel: rename config directory to HDA

It's not related only to Intel. We have AMD, NVidia
HDA hardware, too.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agosof-soundwire: add to conf.d
Jaroslav Kysela [Tue, 23 Nov 2021 11:47:03 +0000 (12:47 +0100)]
sof-soundwire: add to conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agohda-dsp: move to /Intel/hda-dsp, update conf.d
Jaroslav Kysela [Tue, 23 Nov 2021 11:36:56 +0000 (12:36 +0100)]
hda-dsp: move to /Intel/hda-dsp, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agosof-hda-dsp: move to /Intel/sof-hda-dsp, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:56:49 +0000 (18:56 +0100)]
sof-hda-dsp: move to /Intel/sof-hda-dsp, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoSOF: move to /Intel/SOF, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:52:33 +0000 (18:52 +0100)]
SOF: move to /Intel/SOF, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agosof-ehl-rt5660: move to /Intel/sof-ehl-rt5660, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:51:24 +0000 (18:51 +0100)]
sof-ehl-rt5660: move to /Intel/sof-ehl-rt5660, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoskylake-rt286: move to /Intel/skylake-rt286, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:49:45 +0000 (18:49 +0100)]
skylake-rt286: move to /Intel/skylake-rt286, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agokblrt5660: move to /Intel/kblrt5660, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:39:06 +0000 (18:39 +0100)]
kblrt5660: move to /Intel/kblrt5660, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agochtnau8824: move to /Intel/chtnau8824, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:36:57 +0000 (18:36 +0100)]
chtnau8824: move to /Intel/chtnau8824, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agochtrt5650: move to /Intel/chtrt5650, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:35:09 +0000 (18:35 +0100)]
chtrt5650: move to /Intel/chtrt5650, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agochtrt5645: move to /Intel/chtrt5645, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:33:23 +0000 (18:33 +0100)]
chtrt5645: move to /Intel/chtrt5645, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agochtmax98090: move to /Intel/chtmax98090, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:31:35 +0000 (18:31 +0100)]
chtmax98090: move to /Intel/chtmax98090, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agocht-bsw-rt5672: move to /Intel/cht-bsw-rt5672, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:29:09 +0000 (18:29 +0100)]
cht-bsw-rt5672: move to /Intel/cht-bsw-rt5672, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcht-es8316: move to /Intel/bytcht-es8316, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:26:26 +0000 (18:26 +0100)]
bytcht-es8316: move to /Intel/bytcht-es8316, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcht-cx2072x: move to /Intel/bytcht-cx2072x, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:19:40 +0000 (18:19 +0100)]
bytcht-cx2072x: move to /Intel/bytcht-cx2072x, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-wm5102: move to /Intel/bytcr-wm5102, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:17:41 +0000 (18:17 +0100)]
bytcr-wm5102: move to /Intel/bytcr-wm5102, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-rt5651: move to /Intel/bytcr-rt5651, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:14:07 +0000 (18:14 +0100)]
bytcr-rt5651: move to /Intel/bytcr-rt5651, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-rt5640: move to /Intel/bytcr-rt5640, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:10:20 +0000 (18:10 +0100)]
bytcr-rt5640: move to /Intel/bytcr-rt5640, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobroxton-rt298: move to /Intel/broxton-rt298, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:04:36 +0000 (18:04 +0100)]
broxton-rt298: move to /Intel/broxton-rt298, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobroadwell-rt286: move to /Intel/broadwell-rt286, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 17:01:58 +0000 (18:01 +0100)]
broadwell-rt286: move to /Intel/broadwell-rt286, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobdw-rt5677: move to /Intel/bdw-rt5677, update conf.d
Jaroslav Kysela [Mon, 22 Nov 2021 16:50:46 +0000 (17:50 +0100)]
bdw-rt5677: move to /Intel/bdw-rt5677, update conf.d

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-Intel: use conf.d/ move DualCodecs config to separate directory
Jaroslav Kysela [Mon, 22 Nov 2021 16:43:41 +0000 (17:43 +0100)]
HDA-Intel: use conf.d/ move DualCodecs config to separate directory

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: use conf.d/
Jaroslav Kysela [Mon, 22 Nov 2021 12:02:38 +0000 (13:02 +0100)]
USB-Audio: use conf.d/

Change relative paths to absolute.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoacp: move linked configuration from modules/ to conf.d/
Jaroslav Kysela [Mon, 22 Nov 2021 11:03:38 +0000 (12:03 +0100)]
acp: move linked configuration from modules/ to conf.d/

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: move Realtek config to separate directory
Jaroslav Kysela [Mon, 22 Nov 2021 09:09:36 +0000 (10:09 +0100)]
USB-Audio: move Realtek config to separate directory

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: move Lenovo P620 configs to separate directory
Jaroslav Kysela [Mon, 22 Nov 2021 08:56:04 +0000 (09:56 +0100)]
USB-Audio: move Lenovo P620 configs to separate directory

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: move Gigabyte Aorus configs to separate directory
Jaroslav Kysela [Mon, 22 Nov 2021 08:46:30 +0000 (09:46 +0100)]
USB-Audio: move Gigabyte Aorus configs to separate directory

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: add GoXLR configuration
Jaroslav Kysela [Thu, 18 Nov 2021 15:29:07 +0000 (16:29 +0100)]
USB-Audio: add GoXLR configuration

This hardware has multichannel output and input, but it's expected
to work in separate stereo groups.

Use dsnoop/dshare alsa-lib plugins to split the multichannel stream to
stereo devices.

Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/121
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: join two front configs of Dell Desktop into one
Shuming Fan [Wed, 17 Nov 2021 03:01:15 +0000 (11:01 +0800)]
ucm2: join two front configs of Dell Desktop into one

This patch makes the speaker and headset configs join to one config.

Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-Intel: AMD ACP - add LED support
Jaroslav Kysela [Thu, 4 Nov 2021 09:01:05 +0000 (10:01 +0100)]
HDA-Intel: AMD ACP - add LED support

- create 'Mic ACP LED Capture Switch'
- load the snd_ctl_led module when ACP microphone device is detected
- attach 'Mic ACP LED Capture Switch' to Mic LED
- add 'Mic ACP LED Capture Switch' control to ACP microphone device

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/115
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoHDA-Intel: fixes for Headphone+LO variant (Realtek ALC233)
Jaroslav Kysela [Thu, 4 Nov 2021 09:40:02 +0000 (10:40 +0100)]
HDA-Intel: fixes for Headphone+LO variant (Realtek ALC233)

This commit implements the support for shared Headphone and
Line Out and adds support for the Front Mic.

Controls for Headphone and Lineout:

Simple mixer control 'Headphone',0       # Switch only
Simple mixer control 'Headphone+LO',0    # Volume only
Simple mixer control 'Line Out',0        # Switch only
Jack 'Front Headphone Jack'
Jack 'Line Out Jack'

Control for Mic:

Simple mixer control 'Mic',0
Simple mixer control 'Mic Boost',0
Jack 'Mic Jack'

Control for Front Mic:

Simple mixer control 'Front Mic',0
Simple mixer control 'Front Mic Boost',0
Jack 'Front Mic Jack'

Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/114
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/116
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoUSB-Audio: move Dell configs to own subdirectory
Jaroslav Kysela [Tue, 16 Nov 2021 14:11:24 +0000 (15:11 +0100)]
USB-Audio: move Dell configs to own subdirectory

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: Add UCM support for Dell Desktop
Shuming Fan [Mon, 15 Nov 2021 03:43:12 +0000 (11:43 +0800)]
ucm2: Add UCM support for Dell Desktop

The Dell Desktop uses two USB audio codecs as front and rear panel.
The front UAC has two outputs of speaker/headphone and one input of headset mic.
The rear UAC has one output of line-out.

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/120
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agoucm2: Add UCM support for rockchip_es8316 on Pinebook Pro
Jian-Hong Pan [Tue, 7 Sep 2021 03:38:14 +0000 (11:38 +0800)]
ucm2: Add UCM support for rockchip_es8316 on Pinebook Pro

Add UCM config files for Pinebook Pro's audio. The config files are
transformed and tuned from Manjaro ARM's packages:
* pinebookpro-post-install's asound.state [1]
* pinebookpro-audio's audio_jack_plugged_in.sh [2]

By the way, with these config files, the Speaker and Headphones will be
switched according to the (un)plugged state automatically.

[1] https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-post-install/-/blob/4b4206c57b21044bf9c00848bd1f8b6f710d19eb/asound.state
[2] https://gitlab.manjaro.org/manjaro-arm/packages/community/pinebookpro-audio/-/blob/1f567db09495acc3beb5405c9ef85c3c07b86785/audio_jack_plugged_in.sh

Fixes: https://github.com/alsa-project/alsa-ucm-conf/issues/110
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/112
Signed-off-by: Jian-Hong Pan <jhp@endlessos.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-rt5640: Add support for a second headset input
Hans de Goede [Wed, 29 Sep 2021 09:11:44 +0000 (11:11 +0200)]
bytcr-rt5640: Add support for a second headset input

Some devices (HP Elitepad 1000 G2) have a second headphones output
(1 on the dock, 2nd on the tablet itself) the headset mic input of
this second headset is connected to IN1, add support for this.

BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=213415
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-rt5640: Add support for a second headphones output
Hans de Goede [Wed, 29 Sep 2021 09:11:43 +0000 (11:11 +0200)]
bytcr-rt5640: Add support for a second headphones output

Some devices (HP Elitepad 1000 G2) have a second headphones output
(1 on the dock, 2nd on the tablet itself) which is implemented through
the line-out output of the codec combined with an external hp-amp.

The kernel has recently gotten support for this setup and will
advertise this to userspace by adding cfg-hp2:lineout to the
components string, add support for this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-rt5640: Add support for devices using the DMIC2 input for their internal mic(s)
Hans de Goede [Wed, 29 Sep 2021 09:11:42 +0000 (11:11 +0200)]
bytcr-rt5640: Add support for devices using the DMIC2 input for their internal mic(s)

Add support for devices using the DMIC2 input for their internal mic(s),
this has been tested on a HP Elitepad 1000 G2.

Cc: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agocodecs/rt5640: Rename DAPM PIN switches to avoid having 2 Speaker and Headphones...
Hans de Goede [Wed, 29 Sep 2021 09:11:41 +0000 (11:11 +0200)]
codecs/rt5640: Rename DAPM PIN switches to avoid having 2 Speaker and Headphones switches

Now that we rename the mutes from their weird 'Channel Switch' postfix
to the standard 'Playback Switch' postfix we end up having 2 Switches
for the 'Speaker' resp. 'Headphones' volume controls, with 1 of the two
getting ignored by the alsa-lib mixer code because it is duplicate.

This is caused by the bytcr-rt5640 machine driver adding DAPM PIN
Switches which are named 'Headphone Switch' resp. 'Speaker Switch',
rename these to 'Headphone Output Switch' / 'Speaker Output Switch'
so that they get seen as separate controls by the alsa-lib mixer code.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
3 years agobytcr-rt5640: Fix 'Headphone Switch' / 'Headset Mic Switch' no longer getting set
Hans de Goede [Wed, 29 Sep 2021 09:11:40 +0000 (11:11 +0200)]
bytcr-rt5640: Fix 'Headphone Switch' / 'Headset Mic Switch' no longer getting set

Commit 446d0a71b47f ("codecs/rt5640: Move out BayTrail-specific pin switches")
moved the setting of the 'Headphone Switch' / 'Headset Mic Switch' into
"If.hp" resp "If.hsmic" blocks. But instead of making them part of the
True {} block inside that If, the statements where added add the top-level
of the If {} block where they are no-ops.

Move them to inside the True blocks so that these Switches again get
properly turned on/off. This fixes the Headphones and Headset-mic no longer
working on bytcr-rt5640 devices.

Cc: Dmitry Osipenko <digetx@gmail.com>
Fixes: 446d0a71b47f ("codecs/rt5640: Move out BayTrail-specific pin switches")
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agohda: improve the microphone device allocation
Jaroslav Kysela [Fri, 4 Jun 2021 10:02:53 +0000 (12:02 +0200)]
hda: improve the microphone device allocation

This change use the local variables for the UCM microphone
device names. Also, handle the no-dmic case for sof-hda-dsp
hardware.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agosof-soundwire: rt1316 - DAC L and R is replaced by DAC
Hui Wang [Fri, 23 Jul 2021 03:13:02 +0000 (11:13 +0800)]
sof-soundwire: rt1316 - DAC L and R is replaced by DAC

In the latest codec driver rt1316-sdw.c, the DAC L and DAC R are
replaced by DAC, so we change the ucm to add the condition checking,
if 'DAC L' exists, will set those mixers in the old way, otherwise,
set the mixers with new name.

The codec rt1316 is used on a Dell TGL soundwire audio machine.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agosof-hda-dsp: Set Capture Switch on in the BootSequence
Hui Wang [Fri, 23 Jul 2021 03:20:50 +0000 (11:20 +0800)]
sof-hda-dsp: Set Capture Switch on in the BootSequence

We found an issue that the PA source of Mic2/Headset and Mic2 is
muted by default after newly install an OS, the root cause is the
'Capture Switch' is set to off in the kernel.

Without ucm, the /usr/share/alsa/init/default will set the 'Capture
Switch' to on, similarly we set it to on in the BootSequence of ucm.

Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agosof-ehl-rt5660: Add UCM for Intel sof-ehl-rt5660
Libin Yang [Wed, 14 Jul 2021 06:21:44 +0000 (14:21 +0800)]
sof-ehl-rt5660: Add UCM for Intel sof-ehl-rt5660

Add the UCM support for the sof-ehl-rt5660 platform.

Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoHDA-Intel: add Boost volume control for Headset Mic
Hui Wang [Thu, 17 Jun 2021 03:50:53 +0000 (11:50 +0800)]
HDA-Intel: add Boost volume control for Headset Mic

Ubuntu Linux users complain even they set the input volume to maximum,
they still can't record sound with a pretty satisfied volume, they
need to run commandline commands to adjust "Mic Boost/Headset Mic
Boost/Headphone Mic boost" value to increase the input volume.

That is because the current ucm only defines "Capture Volume" to
control the input volume. Here we add Boost control, then users could
adjust both "Capture Volume" and "Boost Volume" through Pulseaudio and
Gnome.

BugLink: https://bugs.launchpad.net/bugs/1930188
Signed-off-by: Hui Wang <hui.wang@canonical.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoLibrem 5 Devkit: modernize config
Jaroslav Kysela [Mon, 23 Aug 2021 13:49:31 +0000 (15:49 +0200)]
Librem 5 Devkit: modernize config

- remove extra default values
- remove explicit zeros
- add PlaybackMixerElem

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoAdd UCM for Librem 5 Devkit
Guido Günther [Mon, 21 Jun 2021 09:58:45 +0000 (11:58 +0200)]
Add UCM for Librem 5 Devkit

The DTS configuration is in Linux mainline since 5.13-rc1:

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/tree/arch/arm64/boot/dts/freescale/imx8mq-librem5-devkit.dts?h=v5.13-rc1#n167

Signed-off-by: Guido Günther <agx@sigxcpu.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agotegra: Add UCM for Nvidia Tegra HDMI Audio v1.2.5.1
Svyatoslav Ryhel [Mon, 31 May 2021 08:27:36 +0000 (11:27 +0300)]
tegra: Add UCM for Nvidia Tegra HDMI Audio

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/94
Signed-off-by: Svyatoslav Ryhel <clamor95@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoHDA-Intel: the lookups are supported from syntax 4
Jaroslav Kysela [Tue, 1 Jun 2021 19:08:53 +0000 (21:08 +0200)]
HDA-Intel: the lookups are supported from syntax 4

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agotegra: shuffle ASUS Google Nexus 7 files
Jaroslav Kysela [Mon, 31 May 2021 11:31:54 +0000 (13:31 +0200)]
tegra: shuffle ASUS Google Nexus 7 files

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/94
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agotegra: shuffle Acer Iconia Tab A500 files
Jaroslav Kysela [Mon, 31 May 2021 11:26:14 +0000 (13:26 +0200)]
tegra: shuffle Acer Iconia Tab A500 files

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/94
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agort5640 / bytcr-rt5640: cleanups v1.2.5
Jaroslav Kysela [Thu, 27 May 2021 07:56:02 +0000 (09:56 +0200)]
rt5640 / bytcr-rt5640: cleanups

- merge HaveAif1 and HaveAif2 to HaveAif with values 1 and 2
- HaveSpeaker identifies stereo and mono (values 2 and 1)
- HaveInternalMic identifies internal mic input (dmic, in1, in3)
- rewrite (unify) bytcr-rt5640 components detection

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/92
Signed-off-by: Jaroslav Kysela <perex@perex.cz>