ubuntu-22.04.3-desktop-amd64/casper/filesystem/usr/share/alsa/ucm2
Dwayne Hart 148999cf35 Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
..
HDA Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
Intel Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
Librem_5 Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
MediaTek/mtk-rt5650 Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
NXP/iMX8/Librem_5_Devkit Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
OMAP/abe-twl6040 Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
PinePhone Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
PineTab Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
Qualcomm Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
Rockchip Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
Samsung/snow Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
Tegra Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
USB-Audio Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
codecs Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
common Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
conf.d Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
lib Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
module Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
platforms/bytcr Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
sof-soundwire Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
README.md Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
ucm.conf Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30
wm8962 Adding the filesystem content from the Ubuntu 22.04 LTS amd64 squashfs. 2023-11-12 20:31:01 -03:30

README.md

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