]> git.alsa-project.org Git - alsa-ucm-conf.git/log
alsa-ucm-conf.git
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>
4 years agotegra: Add UCM for ASUS Google Nexus 7 (2012)
Dmitry Osipenko [Thu, 20 May 2021 05:32:29 +0000 (08:32 +0300)]
tegra: Add UCM for ASUS Google Nexus 7 (2012)

ASUS Google Nexus 7 tablet device is powered by NVIDIA Tegra30 SoC, it
has Realtek ALC5642 audio CODEC, which is compatible with the RT5640 CODEC.
Nexus 7 has a 2-channel built-in speaker, built-in 2-channel microphone,
a 3-pin 3.5mm jack for headphones, and a custom external audio output for
docking-station. The docking-station configuration isn't supported because
it's unsupported by the upstream Linux kernel yet.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agotegra: Add UCM for Acer Iconia Tab A500
Dmitry Osipenko [Thu, 20 May 2021 05:30:47 +0000 (08:30 +0300)]
tegra: Add UCM for Acer Iconia Tab A500

Acer Iconia Tab A500 is a tablet device which is powered by NVIDIA Tegra20
SoC, it has WM8903 audio CODEC. The device has built-in 2-channel speaker,
built-in mono microphone and 4-pin 3.5mm jack for headphones and headset.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agotegra: Add symlinks to conf.d/tegra
Dmitry Osipenko [Thu, 20 May 2021 05:11:29 +0000 (08:11 +0300)]
tegra: Add symlinks to conf.d/tegra

The old UCM names were matched only by the name of the kernel driver module.
This means that built-in kernel drivers never matched.

Tegra ASoC machine kernel drivers never specified the card's driver_name
and long_name properly, which is required in order to have a proper
'ucm2/conf.d/tegra/' path being used for the matching of UCMs. This will
be fixed in the kernel ASAP, the change will be backported to stable kernels.

This patch adds symlinks for the PAZ00 netbook and NyanBig Chromebook
to the new 'ucm2/conf.d/tegra/' directory that will match devices properly
in conjunction with the updated Linux kernel regardless of whether sound
driver is a loadable module or built-in.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocodecs/rt5640: Make headset optional
Dmitry Osipenko [Thu, 20 May 2021 16:20:57 +0000 (19:20 +0300)]
codecs/rt5640: Make headset optional

Nexus 7 has a 3-pin 3.5mm headphones jack, it doesn't support headset
microphone, and thus, it doesn't have headset microphone jack. Make
headset device optional.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocodecs/rt5640: Fix restoring of playback volumes
Dmitry Osipenko [Thu, 20 May 2021 14:14:57 +0000 (17:14 +0300)]
codecs/rt5640: Fix restoring of playback volumes

The playback volumes shall be initialized only during of the first
enable sequence, not during the initialization of speaker/headphones
devices. This fixes sound level restoring by pulseaudio when headphones
are inserted/ejected. Previously sound level was always reset to the
default level on insert/ejection, which is the incorrect behaviour.
The correct behaviour is to restore volume the previous level, i.e.
if sound level was 3% before headphones were ejected, then level should
be restored to 3% when headphones are inserted back.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocodecs/rt5640: Turn off playback switches by default
Dmitry Osipenko [Thu, 20 May 2021 13:53:51 +0000 (16:53 +0300)]
codecs/rt5640: Turn off playback switches by default

Previously RT5640 was turning off switches that are specific to the Intel
BayTrail SoC. In a case of other SoCs we need to turn off the codec switches.
This fixes audio playing from both speaker and headphones simultaneously on
Nexus 7, until headphones are re-inserted.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocodecs/rt5640: Move out BayTrail-specific pin switches
Dmitry Osipenko [Thu, 20 May 2021 13:49:22 +0000 (16:49 +0300)]
codecs/rt5640: Move out BayTrail-specific pin switches

The UCM of RT5640 codec toggles switches that exists only in a case of
the Intel BayTrail ASoC machine driver, RT5640 codec driver doesn't have
them. Move these switches to the BayTrail UCM in order to make generic UCM
rules reusable by other SoCs.

Signed-off-by: Dmitry Osipenko <digetx@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agofix ucm2/README.md - ALSA driver name has the precedence
Jaroslav Kysela [Wed, 19 May 2021 12:48:56 +0000 (14:48 +0200)]
fix ucm2/README.md - ALSA driver name has the precedence

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agort715: add the missing sof prefix to the hw control name
Jaroslav Kysela [Tue, 18 May 2021 17:31:10 +0000 (19:31 +0200)]
rt715: add the missing sof prefix to the hw control name

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agort715-scda (rt714) - add mic led support
Jaroslav Kysela [Tue, 18 May 2021 17:21:07 +0000 (19:21 +0200)]
rt715-scda (rt714) - add mic led support

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agort715: add mic led support
Jaroslav Kysela [Tue, 18 May 2021 17:17:48 +0000 (19:17 +0200)]
rt715: add mic led support

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agort715: don't initialize obsolete ADC controls
Jaroslav Kysela [Tue, 18 May 2021 17:14:47 +0000 (19:14 +0200)]
rt715: don't initialize obsolete ADC controls

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agosof-soundwire: rt715 - use the hw volume control
Jaroslav Kysela [Tue, 18 May 2021 17:01:58 +0000 (19:01 +0200)]
sof-soundwire: rt715 - use the hw volume control

Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/67
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agobytcr-rt5640: Add support for controlling a speaker-mute LED
Hans de Goede [Fri, 7 May 2021 13:11:39 +0000 (15:11 +0200)]
bytcr-rt5640: Add support for controlling a speaker-mute LED

Add support for controlling a speaker-mute LED using the new snd_ctl_led
kernel module for generic mute LED control.

Tested on a HP Pavilion X2 10-n000nd and a HP Pavilion X2 10-p002nd both of
which have a detachable USB keyboard with a speaker mute LED embedded in
the audio-mute button.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocht-bsw-rt5672: Add support for controlling speaker- and mic-mute LEDs
Hans de Goede [Fri, 7 May 2021 13:11:38 +0000 (15:11 +0200)]
cht-bsw-rt5672: Add support for controlling speaker- and mic-mute LEDs

Add support for controlling speaker- and mic-mute LEDs using the new
snd_ctl_led kernel module for generic mute LED control.

Tested on a Thinkpad 10 tablet which has a detachable USB keyboard with
a speaker mute LED embedded in the volume-mute button and a mic mute
LED embedded in the mic-mute button.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocht-bsw-rt5672: Add support for the components string
Hans de Goede [Fri, 7 May 2021 13:11:37 +0000 (15:11 +0200)]
cht-bsw-rt5672: Add support for the components string

Upcoming kernel versions will report which speaker and dmic config is used
by the device in a components strings so that we don't need to duplicate
the DMI quirks in both the kernel and the UCM profile.

Add support for getting the speaker and dmic config from the components string.

Note the old DMI matching is kept for support of older kernels, this means
that on devices where the old DMI matching was used things like:

Define.MonoSpeaker ""

Will now be done twice, this is harmless as long as the kernel and UCM profile
DMI quirks are in sync, which they are.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoremap mixer controls for rt5682
Jaroslav Kysela [Tue, 18 May 2021 14:25:17 +0000 (16:25 +0200)]
remap mixer controls for rt5682

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoremap mixer controls for rt5660
Jaroslav Kysela [Tue, 18 May 2021 14:17:12 +0000 (16:17 +0200)]
remap mixer controls for rt5660

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoremap mixer controls for rt5677
Jaroslav Kysela [Tue, 18 May 2021 12:02:10 +0000 (14:02 +0200)]
remap mixer controls for rt5677

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoremap mixer controls for rt5651
Jaroslav Kysela [Tue, 18 May 2021 11:52:44 +0000 (13:52 +0200)]
remap mixer controls for rt5651

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoremap mixer controls for rt5645
Jaroslav Kysela [Tue, 18 May 2021 11:28:58 +0000 (13:28 +0200)]
remap mixer controls for rt5645

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoremap mixer controls for rt5640
Jaroslav Kysela [Tue, 18 May 2021 08:25:35 +0000 (10:25 +0200)]
remap mixer controls for rt5640

Suggested-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: add lib / ctl-remap.conf generic device
Jaroslav Kysela [Fri, 14 May 2021 09:20:34 +0000 (11:20 +0200)]
ucm2: add lib / ctl-remap.conf generic device

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: lib/generic - use standard (not substituted) config tree
Jaroslav Kysela [Fri, 14 May 2021 08:34:07 +0000 (10:34 +0200)]
ucm2: lib/generic - use standard (not substituted) config tree

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: remove the trailing slash from the rm command
Jaroslav Kysela [Fri, 14 May 2021 08:15:56 +0000 (10:15 +0200)]
ucm2: remove the trailing slash from the rm command

Link: https://github.com/alsa-project/alsa-ucm-conf/commit/548036b8ecc92d4e8e2070046551fb0b8acb7d96#commitcomment-50808354
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: use private alsa-lib's configuration by default
Jaroslav Kysela [Thu, 13 May 2021 15:12:51 +0000 (17:12 +0200)]
ucm2: use private alsa-lib's configuration by default

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: replace ${CardIdByName} substitution with ${find-card}
Jaroslav Kysela [Thu, 13 May 2021 15:04:30 +0000 (17:04 +0200)]
ucm2: replace ${CardIdByName} substitution with ${find-card}

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: soundwire: use the codec kcontrols for rt711-sdca
Libin Yang [Wed, 28 Apr 2021 16:01:52 +0000 (00:01 +0800)]
ucm2: soundwire: use the codec kcontrols for rt711-sdca

Use "rt711 FU0F" as the HW control, instead of the "PGA2.0 2".

Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agosof-soundwire: use the ${find-device} lookup for the dmic device
Jaroslav Kysela [Wed, 3 Feb 2021 11:02:59 +0000 (12:02 +0100)]
sof-soundwire: use the ${find-device} lookup for the dmic device

The PCM device number for the internal digital microphone is not fixed.

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: add initial alsa library helpers
Jaroslav Kysela [Thu, 13 May 2021 14:28:04 +0000 (16:28 +0200)]
ucm2: add initial alsa library helpers

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: create empty conf.virt.d directory
Jaroslav Kysela [Fri, 23 Apr 2021 09:01:34 +0000 (11:01 +0200)]
ucm2: create empty conf.virt.d directory

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: add conf.virt.d lookup
Jaroslav Kysela [Fri, 23 Apr 2021 08:58:35 +0000 (10:58 +0200)]
ucm2: add conf.virt.d lookup

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoQualcomm/sm8250: fix the typo in Include identifier for Mic
Jaroslav Kysela [Mon, 19 Apr 2021 15:33:37 +0000 (17:33 +0200)]
Qualcomm/sm8250: fix the typo in Include identifier for Mic

BugLink: https://github.com/alsa-project/alsa-ucm-conf/commit/f4f0a97eb3f7d210a5573bd34d51b17bdfeb08ad#commitcomment-49705893
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2/conf.d/sm8250: add symlink for Qualcomm RB5 platform
Dmitry Baryshkov [Thu, 15 Apr 2021 11:50:28 +0000 (14:50 +0300)]
ucm2/conf.d/sm8250: add symlink for Qualcomm RB5 platform

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/84
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: add support to for Qualcomm RB5 Platform
Srinivas Kandagatla [Fri, 20 Nov 2020 12:14:31 +0000 (12:14 +0000)]
ucm2: add support to for Qualcomm RB5 Platform

The Qualcomm RB5 Robotics Platform contains HDMI,
2x WSA Smart-Speakers audio outputs along with One
Onboard DMIC audio input.

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/84
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
[DB: change paths to use case fragments]
Signed-off-by: Dmitry Baryshkov <dmitry.baryshkov@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: codecs: lpass: add codec sequences for wsa and va macro
Srinivas Kandagatla [Fri, 20 Nov 2020 12:12:48 +0000 (12:12 +0000)]
ucm2: codecs: lpass: add codec sequences for wsa and va macro

Add enable/disable codec sequence for Qualcomm Low Power Audio
Subsystem (LPASS) Codec WSA and VA Macros.

BugLink: https://github.com/alsa-project/alsa-ucm-conf/pull/84
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: soundwire: add basic settings for SDCA devices
Libin Yang [Sun, 7 Feb 2021 04:30:58 +0000 (12:30 +0800)]
ucm2: soundwire: add basic settings for SDCA devices

Add support for rt711-sdca, rt1316 and rt715-sdca (aka rt714).

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agoucm2: soundwire: use cfg-amp instead of cfg-spk component string
Pierre-Louis Bossart [Wed, 30 Sep 2020 22:20:34 +0000 (17:20 -0500)]
ucm2: soundwire: use cfg-amp instead of cfg-spk component string

For now we don't have a specific handing of the number of speakers, we
should be handling the number of amplifiers instead. The number of
speakers was added in machine drivers as a placeholder, if and when we
you it it would be in addition to the number of amplifiers, not as a
substitute.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agobroadwell-rt286, bdw-rt5677: Fix inconsistency in card detection
David Ward [Sat, 27 Feb 2021 14:45:39 +0000 (09:45 -0500)]
broadwell-rt286, bdw-rt5677: Fix inconsistency in card detection

This file is only read when the driver name is 'SOF'. Other entries
in this file do not check if a card name contains the 'sof-' prefix.
Adjust these new entries for Broadwell cards so they are consistent.

This conveniently provides a workaround for a bug in kernel 5.10+:
https://bugzilla.kernel.org/show_bug.cgi?id=211985

It happens to let the catpt driver work in kernels where this bug is
present for Broadwell cards. This is possible because the SOF driver
and catpt driver share the same use case configuration for the card.

Signed-off-by: David Ward <david.ward@gatech.edu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agobroadwell-rt286, bdw-rt5677: Fix comment at top of file
David Ward [Sat, 27 Feb 2021 14:45:39 +0000 (09:45 -0500)]
broadwell-rt286, bdw-rt5677: Fix comment at top of file

Signed-off-by: David Ward <david.ward@gatech.edu>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
4 years agocodecs/rt5640: Specify Playback/CaptureMasterElem for HW volume-control
Hans de Goede [Mon, 8 Mar 2021 22:05:54 +0000 (23:05 +0100)]
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>