Robert Günzler [Sat, 19 Mar 2022 17:26:28 +0000 (18:26 +0100)]
USB-Audio: add Audient iD4 configuration
hardware represents 2 stereo inputs/outputs as a single multichannel
input/output, similar to 97beee6ded9e3dddfb56580eee360088fbfa8595 we
split it using dsnoop/dshare
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/151 Signed-off-by: Robert Günzler <r@gnzler.io> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Clément Hermann [Fri, 8 Apr 2022 21:01:52 +0000 (23:01 +0200)]
USB-Audio: Add Direct HW verb for Arturia Minifuse 2
This is the same as the fallback ucm profile. It just exposes the device,
which can be useful in some contexts, like when routing audio using jack
or pipewire.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/145 Signed-off-by: Clément Hermann <nodens@debian.org> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Clément Hermann [Sat, 12 Mar 2022 20:56:03 +0000 (21:56 +0100)]
USB-Audio: Add Use Case for Arturia Minifuse 2
Arturia Minifuse 2
(https://www.arturia.com/products/audio/minifuse/minifuse2)
is an USB audio interface with 2 mono inputs and 2 channel outputs.
It uses 1 subinterface with 4 capture and 4 playback channels:
Capture channels:
- Mic/Line/Inst 1 (Mono)
- Mic/Line/Inst 2 (Mono)
- Loopback (Stereo, L+R)
Playback:
- Main (Stereo, L+R)
- Loopback (L+R)
The Loopback capture and playback are intended to ease recording sound
from the computer, e.g if you're doing a podcast and want to record
something that plays from the computer. Of course us linux user don't
need that, since we have many tools able to do that.
However, without a dedicated use case, alsa treats the channels as
surround 4.0, which make the card difficult to use.
At this stage, no controls are available.
TODO/FIXMEs:
- add a channel map override on the pcm device ?
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/145 Signed-off-by: Clément Hermann <nodens@debian.org> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
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.
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>
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>
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>
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>
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>
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>
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.
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.
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>
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>