]> git.alsa-project.org Git - alsa-lib.git/commit
control: ucm: add ioctl to retrieve full card components
authorMaciej Strozek <mstrozek@opensource.cirrus.com>
Thu, 19 Feb 2026 13:46:20 +0000 (13:46 +0000)
committerJaroslav Kysela <perex@perex.cz>
Mon, 30 Nov 2026 19:41:12 +0000 (20:41 +0100)
commitef4327849cfb49d8944ce36bd7ea5b207fa6b9d3
treed2f7fbfa6e2fac563946609c608cbc5268d80a79
parent0b304a166516f292ff00a18ae91c4398767be2e1
control: ucm: add ioctl to retrieve full card components

The fixed-size components field in SNDRV_CTL_IOCTL_CARD_INFO can be too
small on systems with many audio devices. The kernel [1] will provide a
new ioctl to read the full string while truncating the original in
card_info if it grows too big. Make sure alsa-lib can read the full
string if the original is truncated.

[1] https://patch.msgid.link/20260720103505.1860399-2-mstrozek@opensource.cirrus.com

Closes: https://github.com/alsa-project/alsa-lib/pull/494
Signed-off-by: Maciej Strozek <mstrozek@opensource.cirrus.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
include/local.h
include/sound/uapi/asound.h
src/control/cards.c
src/control/control_hw.c