|
Some checks are pending
Validate UCM configuration / ucm_validate (push) Waiting to run
Add a UCM profile for the Fairphone (Gen. 6) (SM7635 "milos") as used on postmarketOS mainline: Speaker (2x Awinic AW88261 on Senary MI2S, MultiMedia1 playback) and the handset microphone (WCD9378 AMIC1 via the TX macro, MultiMedia2 capture). Tested on the phone with PipeWire in a Plasma Mobile session. The layout follows conf.d/qcm6490: real files under Qualcomm/milos/Fairphone-Gen6/, a card-name symlink in conf.d/milos/. Content is identical to the files tested on the device except the verb File path, which follows the new location. Assisted-by: Claude:claude-fable-5 Signed-off-by: Jorijn van der Graaf <jorijnvdgraaf@catcrafts.net> |
||
|---|---|---|
| .. | ||
| Allwinner | ||
| AMD | ||
| Amlogic/p241 | ||
| blobs/sof | ||
| codecs | ||
| common | ||
| conf.d | ||
| conf.virt.d | ||
| HDA | ||
| Intel | ||
| IO-Boards/Toradex | ||
| lib | ||
| MediaTek | ||
| module | ||
| NXP | ||
| OMAP/abe-twl6040 | ||
| platforms/bytcr | ||
| Qualcomm | ||
| Rockchip | ||
| Samsung/snow | ||
| sof-soundwire | ||
| Tegra | ||
| USB-Audio | ||
| DEBUG.md | ||
| README.md | ||
| ucm.conf | ||
Use Case Configuration files
Library directories:
platforms/ codecs/ dsps/
Those directories are not inspected for the list of available UCM configurations. They contain files included from other UCMs.
UCM master configuration path lookup is defined in the top level ucm.conf file. This file allows custom directory layout. The new ucm2 layout is based on the ALSA driver name with the kernel driver name as fallback. The virtual cards (no direct hw bound) lookups are placed to the separate conf.virt.d directory.
The lookup configuration:
https://git.alsa-project.org/?p=alsa-ucm-conf.git;a=blob;f=ucm2/ucm.conf
Example paths - new conf.d scheme:
- conf.d/USB-Audio/Dell-WD15-Dock.conf -- special configuration for the Dell docking station with USB soundcard
- conf.virt.d/TwoCardsMix.conf -- virtual UCM from two soundcards
Example paths - no conf.d scheme (may be invalidated):
- USB-Audio/Dell-WD15-Dock.conf -- special configuration for the Dell docking station with USB soundcard
- TwoCardsMix/TwoCardsMix.conf -- virtual UCM from two soundcards
Note: For the driver configurations, use always the ALSA driver name or the real kernel driver name - not the ucm card name configuration paths!
The kernel driver name is obtained using sysfs like (last part of the path is used from the symlink):
/sys/class/sound/card0/device/driver
The ALSA driver name can be obtained using procfs like:
cat /proc/asound/cards
1 [NVidia ]: HDA-Intel - HDA NVidia
HDA NVidia at 0xb5080000 irq 17
driver name: HDA-Intel
card short name: HDA NVidia
card long name: HDA NVidia at 0xb5080000 irq 17
Syntax, value names
https://git.alsa-project.org/?p=alsa-lib.git;a=blob;f=include/use-case.h