Adds USB ids for several more 2i2 and 2i4 devices, along with the Solo
devices. Solo is basically identical to the 2i2 devices of the same
generation; the difference is that the first input can only be used for
a mic, and the second input can only be used for line/instrument. (On
the 2i devices, both inputs are the same - they both have mic preamps,
and both support line/instrument input.)
The conditions in the main configuration have been rewritten to assign
properties by device model and generation to simplify things and allow
setting comments on the playback/capture devices to better indicate
their functionality on different models.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/309
Signed-off-by: Calvin Walton <calvin.walton@kepstin.ca>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Improve quality with forcing the S32_LE format. Apparently,
current pipewire does not handle correctly the conflicting
PCM streams - not all splitted streams are closed before
rate / format change.
Link: https://github.com/alsa-project/alsa-ucm-conf/issues/333
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1. Switch Headphone on/off in Headphones enable/disable sequence. This
should be obvious.
2. "Headset Switch" is not recognized and triggers errors running
"alsaucm -c hw:0 set _verb Hifi". Change it to "Headset Mic Switch".
And in the disable sequence we should turn it off, not on.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/328
Signed-off-by: Xi Ruoyao <xry111@xry111.site>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The earpiece speaker is a mono device, using only a single channel (in
our case, the left one) from the DA0 output. This causes loss of
information as the right channel is completely discarded when playing
stereo audio.
In order to avoid this issue, set `AIF1 DA0 Stereo Playback Route` to
`Mix Mono` when using the "Earpiece" output port (and only in this
case).
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/324
Signed-off-by: Arnaud Ferraris <aferraris@debian.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Due to a bug in the Qualcomm ASoC drivers, we ended up with card device
numbers starting at some number that is not dai-link id. This bug is now
fixed, so update the ucm files inline with this.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/331
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/284
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
I created a separate file because of the additional input-Pairs and
output-Pairs result in different loopback channels.
Without the usecase outputs threated as surround channels.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/287
From: bernsnf <github>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The Sony inzone H7/H9 headset has two usb audio outputs and one usb
audio input.
One pair of audio output and input is the 'chat' interface which is
normally connected to a chat client.
The remaining audio ouput is the 'game' interface, which is normally
connected to the actual game you're playing.
The 'game' interface lists as a separate USB subdevice in alsa.
This commit adds the HiFi usecase for the Sony headset which is as
follows:
- One chat device
- One audio output
- One audio input
- One game device
- One audio output
Tested with pipewire and pulseaudio, verified with pavucontrol, both
devices are listed and audio can be played on both.
The audio is mixed in the headset itself.
Control wise there isn't much, the only thing that is reported in
alsamixer is a volume control for the CAPTURE channel.
However, changing the volume of this does not seem to affect the
actual audio that is recorded, so I don't see a need to change this
when enabling the device.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/293
Signed-off-by: Laurens Miers <laurensmiers@protonmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Looks like there was a typo in setting up dmic1 mux. Without this dmic01
selection would only do single channel record instead of 2 channel recording.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/294
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Adds support for the MSI MAG B650M MORTAR WIFI motherboard front & back 3.5mm jacks.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/289
From: cloudy-dev@github
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add support to LENOVO Thinkpad x13s which has 2xwsa883x smart speakers and a headset connector.
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/284
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Make sure VA decimator mux is correctly set while using DMICs by adding
explicit mixer control to set it in enable sequence.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add codec sequences for VA DMIC1 settings.
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add default, enable/disable codec sequence for Headphone and Mic on
WCD938x codec
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add ALSA-UCM support for the Rockchip RK817 audio codec. This codec
is typically configured either with an internal or external amplifier
as reflected by the longname. This configuration has been tested on
the Anbernic RG353P (rk817_ext) and the Odroid Go Advance (rk817_int).
Changes from V1:
- Use a constant to control if the output mux is set to HP or SPK.
Link: https://lore.kernel.org/alsa-devel/20230224193320.1503-1-macroalpha82@gmail.com/
Signed-off-by: Chris Morgan <macromorgan@hotmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
A bug in the driver / firmware may cause that the paths are
active for the first boot, but if the sound card state is saved
and restored later (e.g. next boot), the paths may be deactivated.
BugLink: https://github.com/thesofproject/linux/issues/4196
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The GIGABYTE Z590 Vision G Intel motherboard contains a Realtek ALC4080 souncard
that was missing from the available UCMs.
The change works on my machine and the HiFi profile seems to be fully functional
Fixes: https://github.com/alsa-project/alsa-ucm-conf/pull/279
From: Nikita Brancatisano
Signed-off-by: Jaroslav Kysela <perex@perex.cz>