]> git.alsa-project.org Git - alsa-utils.git/commit
alsactl: suppress no device 'errors' for UCM
authorJaroslav Kysela <perex@perex.cz>
Thu, 28 Oct 2021 10:07:10 +0000 (12:07 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 28 Oct 2021 10:16:11 +0000 (12:16 +0200)
commitaf62c72e2d6db960405eb1bd8d50206d1600c392
tree9dcddeb2b3f4fb130e95536deb92c5277510e856
parent5d4442b2cfe967c44b5cd74fccb62d1fb4095b19
alsactl: suppress no device 'errors' for UCM

This patch adds --ucm-nodev (or -X) option to get those
messages back. The code works only with library 1.2.6+.

By default, these messages are suppressed:

  alsactl[xxx]: alsa-lib parser.c:242:(error_node) UCM is not supported for this HDA model (HDA Intel PCH...)
  alsactl[xxx]: alsa-lib main.c:1405:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6

Fixes: https://github.com/alsa-project/alsa-utils/issues/111
Link: https://lore.kernel.org/alsa-devel/20211027144008.27002-1-tiwai@suse.de/
Link: https://github.com/alsa-project/alsa-lib/commit/23198a72cd4f8f8759e650362b4adb485fc9fb12
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
alsactl/alsactl.c
alsactl/alsactl.h
alsactl/init_ucm.c