]> git.alsa-project.org Git - alsa-ucm-conf.git/commit
bytcr-rt5651: Fix dmic check in HiFi-Components.conf
authorHans de Goede <hdegoede@redhat.com>
Sun, 5 Apr 2020 18:34:50 +0000 (20:34 +0200)
committerJaroslav Kysela <perex@perex.cz>
Mon, 6 Apr 2020 07:38:38 +0000 (09:38 +0200)
commit85ca26a4f2b73888dbce3437a402df13faf628fa
tree74d09b65a4c18ad66a0d9cdc12f2acf3da604f34
parent340b8a1d6aaa164bc27bdb8811cc00d729ca2e45
bytcr-rt5651: Fix dmic check in HiFi-Components.conf

The kernel sets cfg-mic:dmic not cfg-mic:dmic1 when a digital mic is
used. The wrong check for cfg-mic:dmic1 causes there to be no "Mic"
device at all, which causes the check for the ConflictingDevices section
of the HeadSet (mic) device to fail like e.g. so:

[hans@localhost ~]$ alsaucm -c bytcr-rt5651 set _verb HiFi set _enadev Speaker
ALSA lib parser.c:1138:(verb_dev_list_add) error: unable to find device 'Mic'
ALSA lib parser.c:1433:(parse_verb_file) error: device management error in verb 'HiFi'
ALSA lib main.c:962:(snd_use_case_mgr_open) error: failed to import bytcr-rt5651 use case configuration -2
alsaucm: error failed to open sound card bytcr-rt5651: No such file or directory

This commit fixes this.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
ucm2/bytcr-rt5651/HiFi-Components.conf