Compounds starting with zero (and with continuous indexes)
are handled as array type. It means that they are appended
when they are parsed multiple times. Fix this.
Closes: https://github.com/alsa-project/alsa-ucm-conf/issues/646
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The Sony DualSense wireless controller (PS5) has an internal mono
speaker and a microphone, in addition to a 3.5mm jack socket for
headphone output and headset microphone input.
Because this is a UAC1 device, it doesn't advertise any jack detection
capability. However, since kernel v6.18-rc1 the controller is able to
report HP & MIC insert events via HID, i.e. through a dedicated input
device managed by the hid-playstation driver. This is further used by a
quirk in the generic USB audio driver (added in v6.17), which creates
the Headphone Jack & Headset Mic Jack controls and receives hotplug
events from the HID driver via input handlers.
Moreover, the device provides haptic feedback functionality, which is
controlled by a pair of dedicated channels in a quadraphonic audio
stream.
Ensure proper support for audio switching between headphones/headset and
internal speaker/microphone by adding a UCM to split the 4.0 PCM stream
into 4 mono channels or a pair of stereo (FL+FR) channels, depending on
the active output device/profile.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/634
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add 'Mode' argument to SetLED macro in order to allow setting a
different LED mode. This will allow mute switches with inverted
values to control the LEDs with 'follow-route' option instead of
default 'follow-mute'.
The Mode argument is optional.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/637
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The -sdca suffix should be handled like normal codec identification
for multi-codecs.
Fixes: 76c14b8 ("ucm2: sof-soundwire: support rt713vb codec")
Closes: https://github.com/alsa-project/alsa-ucm-conf/issues/639
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The rt713 is the multi-function codec, so check it by MultiCodec variable.
This patch also supports the rt713VB, which integrates with DMIC function into one interface.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/628
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
cs42l45 SDCA codec includes headphone playback with headset and DMIC input.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/629
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add support for the Google Rauru Rev0 Chromebook, powered by MediaTek
Kompanio Ultra (MT8196). This machine uses NAU8825 as headphone codec
and NAU8318 as speaker codec.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/625
Signed-off-by: Laura Nao <laura.nao@collabora.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sequence
Headset L is connected as Lineout on some platforms like RB1, so add the
rx codec macro sequences required to enable Lineout on those platforms.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/621
Cc: Alexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add UCM support for Headset and Lineout mixer sequences for PM4125
codec that got merged in last cycle.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/621
Cc: Alexey Klimov <alexey.klimov@linaro.org>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add two DisplayPort (over USB) and one HDMI playback devices,
conflicting with the headset, because they use the same MultiMedia1
frontend.
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/627
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add UCM2 configs for the Qualcomm Talos Board.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/631
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This device is basically an earlier model of the UR22C that already has
a configuration. The main functional difference is that the UR22mkII
only has 2 hardware channels for the inputs. I have also changed the
names/comments in the config to mostly match the text on the device
(Input 1/Input 2).
This configuration was tested with a Steinberg UR22mkII with firmware
version 1.04.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/626
Signed-off-by: Marius Renner <marius@mariusrenner.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
for some reason this ucm endedup using DisplayPort for SectionDevice
instead of HDMI. This was resulting in below failures of any PR against
Qualcomm devices.
Run cd alsa-tests/python/ucm-validator2
./ucm.py configs --level=0 --ucmdir=../../../alsa-ucm-conf/ucm2
./Qualcomm/qcs6490/QCS6490-Radxa-Dragon-Q6A/HiFi.conf: Device name DisplayPort
/'SectionDevice'.'DisplayPort'/ is not valid
(see https://github.com/alsa-project/alsa-lib/blob/master/include/use-case.h)
total errors: 1
make: *** [Makefile:10: configs] Error 1
Error: Process completed with exit code 2.
Fix this by using known devices from use-case.h
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/624
Fixes: 67628fb487 ("ucm2: Qualcomm: add Radxa Dragon Q6A")
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add UCM2 configs for the Qualcomm MONACO-EVK Board to handle:
- I2S Speaker Amplifier
- I2S Mic
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/597
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Move lemans-evk HiFi configuration files to the sa8775p subdirectory,
aligning with the kernel's use of the sa8775p folder for all Linux
firmware. So Update the UCM HiFi configuration file accordingly.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/618
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add alsa-ucm support for the MediaTek mt8391-evk platform.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/607
Signed-off-by: Zoran Zhan <zoran.zhan@mediatek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The X1E001DE Devkit needs basically the same audio configuration as the
X1E80100 CRD, so just include the HiFi.conf intended for the CRD. The only
difference is that there are no speakers connected to the pin header on the
mainboard by default, so remove the speakers from the available outputs.
If someone wants to connect speakers there they could drop the RemoveDevice
line after verifying that it works correctly for their speakers. At the
moment we do not have any way to automatically detect if there are speakers
connected or not.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/602
Signed-off-by: Stephan Gerhold <stephan.gerhold@linaro.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Rename the ucm2 conf for Qualcomm qcs6490-rb3gen2 and qcs9075-iq-evk.
qcs6490-rb3gen2-snd-card.conf -> QCS6490-RB3Gen2.conf
qcs9075-iq-evk-snd-card.conf -> LEMANS-EVK.conf
Removed snd-card tags from conf files and update the
mixer settings for LEMANS-EVK.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/596
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
7441 support
(Both SKUs are identical, the codename is Thena)
This configuration is:
- 4 speakers
- 2 DMICs
- headset with mic
- DisplayPort (not yet)
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/589
Signed-off-by: Val Packett <val@packett.cool>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Some of the mixers endedup in rx-macro which actually are part of WCD
codecs.
Move such mixers to their respective codecs.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/585
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
I relabeled the 'line outs' as Mix 1 and 2, because that is what is accessible to a computer.
Mix 1 and 2 are not necessarily mapped to any output.
The inputs are named after where they are on the device (Front, Back)
The device is internally complex and needs quite a bit of reverse
engineering to fully expose its functionality on linux and will
need dedicated software to be written, but this at least makes
it usable on a basic level.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/584
Signed-off-by: Petr Mrázek <peterix@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
This patch makes SpeakerCodec could get rt712+rt1320 string from spk:rt712+rt1320 component string.
According to the control name, we will know that one or two amplifiers exist.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/580
Signed-off-by: Shuming Fan <shumingf@realtek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add support for MT8395 EVK with the SOF enabled.
Since all the features are not available yet only enable
HDMI output and headphones.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/549
Signed-off-by: Julien Massot <julien.massot@collabora.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
The behaviour was slightly changed for the Macro arguments. The substitution
is executed more early before If block evaluation.
Closes: https://github.com/alsa-project/alsa-ucm-conf/issues/564
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add support for MT8365 EVK with SOF enabled. When SOF is
disabled, the "HiFi" use case is used; when SOF is enabled,
the "SOF" use case is used.
The main difference compared to the UCM with SOF disabled is
the device number for playback and capture, which now uses the
PCMs for SOF instead.
Define these parameters as variables for each case (with and
without SOF), and move the common initialization to init.conf,
so the UCM can be shared by both configurations.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/583
Signed-off-by: Zoran Zhan <zoran.zhan@mediatek.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
two stereo outputs: one for "game" and one for "chat".
one mono input
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/582
Signed-off-by: Harald Sitter <sitter@kde.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
When a single DMIC is present in the system we need to set the
CaptureChannels to 1 since the PCM device only supports mono, PA/PW will
reject the profile since it cannot open the DMIC PCM device.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/579
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Rename the HiFi conf files for QCM6490-IDP and QCS6490-RB3Gen2 boards
to match with soundcard name.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/577
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add UCM2 configs for the Qualcomm QCS9075-IQ-EVK Board to handle:
- I2S Speaker Amplifier
- I2S Mic
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/576
Signed-off-by: Mohammad Rafi Shaik <mohammad.rafi.shaik@oss.qualcomm.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
S15 supports:
- 2 speakers.
- 2 dmics
- headset with mic.
This patch adds support to all these, however only speakers, dmic and
headset playback is tested.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/570
Signed-off-by: binarycraft007 <elliot.huang.signed@gmail.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Add support for Toradex SMARC Development board, using the WM8904 audio
codec.
This is a carrier board for the Toradex SMARC family, where any SMARC
SoM can be connected to it, therefore this is being added to the
IO-Boards instead of a specific hardware vendor.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/562
Signed-off-by: Hiago De Franco <hiago.franco@toradex.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
devices
A recent change renamed the Line-56 and Line-78 devices but failed to
update the conflicting device lists.
Closes: https://github.com/alsa-project/alsa-ucm-conf/pull/563
Fixes: ea7a065a7b ("ucm: fix SectionDevice identifiers")
Signed-off-by: Johan Hovold <johan+linaro@kernel.org>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>