The officially official Devuan Forum!

You are not logged in.

#26 Yesterday 16:22:24

igorzwx
Member
Registered: 2024-05-06
Posts: 455  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

Post the output of this commad:

ls -1 /usr/share/alsa/ucm2/USB-Audio/Behringer

If it is in the list, it is supported.

If not, you may try to compile:

$ apt source alsa-ucm-conf --simulate
Reading package lists... Done
NOTICE: 'alsa-ucm-conf' packaging is maintained in the 'Git' version control system at:
https://salsa.debian.org/alsa-team/alsa-ucm-conf.git
Please use:
git clone https://salsa.debian.org/alsa-team/alsa-ucm-conf.git
to retrieve the latest (possibly unreleased) updates to the package.
Need to get 47.6 kB of source archives.
Fetch source alsa-ucm-conf

Last edited by igorzwx (Yesterday 16:28:05)

Offline

#27 Yesterday 16:41:06

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

$ ls -1 /usr/share/alsa/ucm2/USB-Audio/Behringer
Flow8-Recording.conf
Flow8-Recording-Hifi.conf
Flow8-Streaming.conf
Flow8-Streaming-Hifi.conf
UMC202HD.conf
UMC202HD-HiFi.conf
UMC204HD.conf
UMC204HD-HiFi.conf
UMC404HD.conf
UMC404HD-HiFi.conf

It looks like all three are supported with HiFi output in Devuan Excalibur...


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#28 Yesterday 16:56:44

igorzwx
Member
Registered: 2024-05-06
Posts: 455  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

Post the output of these commands:

dmesg | grep -i ucm   
whereis alsaucm
alsaucm reload
alsaucm -c U192k list _verbs
alsaucm -c U192k set _verb HiFi
amixer -c U192k controls

Last edited by igorzwx (Yesterday 18:14:10)

Offline

#29 Yesterday 19:59:20

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

OK, here they are.

# dmesg | grep -i ucm

Nothing returned.

$ whereis alsaucm
alsaucm: /usr/bin/alsaucm /usr/share/man/man1/alsaucm.1.gz
$ alsaucm reload
ALSA lib parser.c:244:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xd05c8000 irq 81)
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
alsaucm: error failed to open sound card hw:0: No such device or address
$ alsaucm -c U192k list _verbs
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import U192k use case configuration -2
alsaucm: error failed to open sound card U192k: No such file or directory
$ alsaucm -c U192k set _verb HiFi
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import U192k use case configuration -2
alsaucm: error failed to open sound card U192k: No such file or directory
$ amixer -c U192k controls
numid=19,iface=CARD,name='Internal Validity'
numid=15,iface=MIXER,name='PCM Playback Switch'
numid=16,iface=MIXER,name='PCM Playback Switch',index=1
numid=17,iface=MIXER,name='PCM Playback Volume'
numid=18,iface=MIXER,name='PCM Playback Volume',index=1
numid=2,iface=MIXER,name='Line A Playback Switch'
numid=1,iface=MIXER,name='Line A Playback Volume'
numid=4,iface=MIXER,name='Line B Playback Switch'
numid=3,iface=MIXER,name='Line B Playback Volume'
numid=20,iface=MIXER,name='Mic Capture Switch'
numid=21,iface=MIXER,name='Mic Capture Switch',index=1
numid=22,iface=MIXER,name='Mic Capture Volume'
numid=23,iface=MIXER,name='Mic Capture Volume',index=1
numid=6,iface=MIXER,name='Input 1 Capture Switch'
numid=5,iface=MIXER,name='Input 1 Capture Volume'
numid=8,iface=MIXER,name='Input 2 Capture Switch'
numid=7,iface=MIXER,name='Input 2 Capture Volume'
numid=10,iface=MIXER,name='Input 3 Capture Switch'
numid=9,iface=MIXER,name='Input 3 Capture Volume'
numid=12,iface=MIXER,name='Input 4 Capture Switch'
numid=11,iface=MIXER,name='Input 4 Capture Volume'
numid=14,iface=PCM,name='Capture Channel Map'
numid=13,iface=PCM,name='Playback Channel Map'

Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#30 Yesterday 20:05:22

igorzwx
Member
Registered: 2024-05-06
Posts: 455  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

alsaucm: error failed to open sound card U192k: No such file or directory

It is not connected.

Check

cat /proc/asound/cards

It might be a hotplug issue. Try unplugging and plugging the device back in, then check

cat /proc/asound/cards

When the card was connected, the command

amixer -c U192k controls

printed mixer controls for it, including inputs (mic).

Last edited by igorzwx (Yesterday 20:22:26)

Offline

#31 Yesterday 20:46:12

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

It is still connected:

$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c8000 irq 81
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c0000 irq 82
 2 [U192k          ]: USB-Audio - UMC404HD 192k
                      BEHRINGER UMC404HD 192k at usb-0000:08:00.3-1, high speed

I haven't tried unplugging the USB cable, but it still works:

$ amixer -c U192k controls
numid=19,iface=CARD,name='Internal Validity'
numid=15,iface=MIXER,name='PCM Playback Switch'
numid=16,iface=MIXER,name='PCM Playback Switch',index=1
numid=17,iface=MIXER,name='PCM Playback Volume'
numid=18,iface=MIXER,name='PCM Playback Volume',index=1
numid=2,iface=MIXER,name='Line A Playback Switch'
numid=1,iface=MIXER,name='Line A Playback Volume'
numid=4,iface=MIXER,name='Line B Playback Switch'
numid=3,iface=MIXER,name='Line B Playback Volume'
numid=20,iface=MIXER,name='Mic Capture Switch'
numid=21,iface=MIXER,name='Mic Capture Switch',index=1
numid=22,iface=MIXER,name='Mic Capture Volume'
numid=23,iface=MIXER,name='Mic Capture Volume',index=1
numid=6,iface=MIXER,name='Input 1 Capture Switch'
numid=5,iface=MIXER,name='Input 1 Capture Volume'
numid=8,iface=MIXER,name='Input 2 Capture Switch'
numid=7,iface=MIXER,name='Input 2 Capture Volume'
numid=10,iface=MIXER,name='Input 3 Capture Switch'
numid=9,iface=MIXER,name='Input 3 Capture Volume'
numid=12,iface=MIXER,name='Input 4 Capture Switch'
numid=11,iface=MIXER,name='Input 4 Capture Volume'
numid=14,iface=PCM,name='Capture Channel Map'
numid=13,iface=PCM,name='Playback Channel Map'

Only rebooted since last post.


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#32 Yesterday 21:15:47

igorzwx
Member
Registered: 2024-05-06
Posts: 455  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

Do you want to enable HiFi profile?

alsaucm reload
alsaucm -c U192k list _verbs
alsaucm -c U192k set _verb HiFi

Offline

#33 Today 06:52:03

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

Hmmm. I ran

$ alsaucm reload

No complaints. However, the next command didn't work. Unfortunately I didn't copy the result down. I then rebooted and this is the result:

$ alsaucm reload
ALSA lib parser.c:244:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xd05c8000 irq 81)
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
alsaucm: error failed to open sound card hw:0: No such device or address

Suddenly, the Behringer card is in the wrong order priority, despite the ~/.asoundrc file supposedly setting the Behringer card to default:

$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c8000 irq 81
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c0000 irq 82
 2 [U192k          ]: USB-Audio - UMC404HD 192k
                      BEHRINGER UMC404HD 192k at usb-0000:08:00.3-1, high speed

I then tried unplugging and replugging the Behringer card, but still nothing:

$ alsaucm reload
ALSA lib parser.c:244:(error_node) UCM is not supported for this HDA model (HD-Audio Generic at 0xd05c8000 irq 81)
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import hw:0 use case configuration -6
alsaucm: error failed to open sound card hw:0: No such device or address
$ cat /proc/asound/cards
 0 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c8000 irq 81
 1 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c0000 irq 82
 2 [U192k          ]: USB-Audio - UMC404HD 192k
                      BEHRINGER UMC404HD 192k at usb-0000:08:00.3-1, high speed

Will try another restart.


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#34 Today 06:56:32

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

After restart:

$ alsaucm reload

Nothing returned.

$ alsaucm -c U192k list _verbs
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import U192k use case configuration -2
alsaucm: error failed to open sound card U192k: No such file or directory
$ cat /proc/asound/cards
 0 [U192k          ]: USB-Audio - UMC404HD 192k
                      BEHRINGER UMC404HD 192k at usb-0000:08:00.3-1, high speed
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c8000 irq 81
 2 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c0000 irq 82

Not sure what is going on. Please advise.


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#35 Today 10:07:43

igorzwx
Member
Registered: 2024-05-06
Posts: 455  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

You have the correct UCM config files (UMC404HD.conf, UMC404HD-HiFi.conf) in place — but ALSA UCM is not loading them because the card name U192k does not match the expected directory structure.

UCM expects:

/usr/share/alsa/ucm2/conf.d/USB-Audio/UMC404HD.conf

But your files are in:

/usr/share/alsa/ucm2/USB-Audio/Behringer/UMC404HD.conf

Fix:
Create a symlink so UCM finds the config:

sudo mkdir -p /usr/share/alsa/ucm2/conf.d/USB-Audio
sudo ln -s /usr/share/alsa/ucm2/USB-Audio/Behringer/UMC404HD.conf \
  /usr/share/alsa/ucm2/conf.d/USB-Audio/UMC404HD.conf
sudo ln -s /usr/share/alsa/ucm2/USB-Audio/Behringer/UMC404HD-HiFi.conf \
  /usr/share/alsa/ucm2/conf.d/USB-Audio/UMC404HD-HiFi.conf

Then reload:

sudo /etc/init.d/alsa-utils force-reload

Test:

alsaucm -c U192k list _cards

Last edited by igorzwx (Today 10:27:37)

Offline

#36 Today 10:25:14

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

$ alsaucm -n -b - <<EOM
open U192k
set _verb HiFi
list _devices
EOM
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import U192k use case configuration -2
alsaucm: error failed to open sound card U192k: No such file or directory

No dice.


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

#37 Today 10:28:16

igorzwx
Member
Registered: 2024-05-06
Posts: 455  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

see above _https://dev1galaxy.org/viewtopic.php?pid=61493#p61493

ALSA UCM2 expects the configuration to be in /usr/share/alsa/ucm2/conf.d/USB-Audio/UMC404HD.conf when using the modern conf.d scheme.

From the official ucm.conf and documentation:

UCM2 uses conf.d/${CardDriver}/${CardLongName}.conf as the primary lookup path.
Your card’s driver is USB-Audio, so UCM searches in conf.d/USB-Audio/.
Even though you have UMC404HD.conf in /usr/share/alsa/ucm2/USB-Audio/Behringer/, it won’t be found unless symlinked into conf.d/USB-Audio/.

On Deadalus, the folder /usr/share/alsa/ucm2/conf.d/USB-Audio already exists, but it has only one file inside

$ ls /usr/share/alsa/ucm2/conf.d/USB-Audio 
USB-Audio.conf
$ file /usr/share/alsa/ucm2/conf.d/USB-Audio/USB-Audio.conf
/usr/share/alsa/ucm2/conf.d/USB-Audio/USB-Audio.conf: symbolic link to ../../USB-Audio/USB-Audio.conf

Try to create symlinks so UCM finds the config:

sudo ln -s /usr/share/alsa/ucm2/USB-Audio/Behringer/UMC404HD.conf \
  /usr/share/alsa/ucm2/conf.d/USB-Audio/UMC404HD.conf
sudo ln -s /usr/share/alsa/ucm2/USB-Audio/Behringer/UMC404HD-HiFi.conf \
  /usr/share/alsa/ucm2/conf.d/USB-Audio/UMC404HD-HiFi.conf

Then reload ALSA

sudo /etc/init.d/alsa-utils force-reload

Now alsaucm -c U192k list _cards may work.

Last edited by igorzwx (Today 12:40:20)

Offline

#38 Today 14:30:43

devuan_dk_fan
Member
Registered: 2018-01-10
Posts: 135  

Re: Behringer UMC204HD with Devuan Excalibur install and Alsa.

Alsa refuses to cooperate:

$ alsaucm -c U192k list _cards
ALSA lib main.c:1554:(snd_use_case_mgr_open) error: failed to import U192k use case configuration -2
alsaucm: error failed to open sound card U192k: No such file or directory

The sound card is now default again:

$ cat /proc/asound/cards
 0 [U192k          ]: USB-Audio - UMC404HD 192k
                      BEHRINGER UMC404HD 192k at usb-0000:08:00.3-1, high speed
 1 [Generic        ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c8000 irq 81
 2 [Generic_1      ]: HDA-Intel - HD-Audio Generic
                      HD-Audio Generic at 0xd05c0000 irq 82

The symlinks appear to be correct:

$ ls /usr/share/alsa/ucm2/conf.d/USB-Audio/
UMC404HD.conf  UMC404HD-HiFi.conf  USB-Audio.conf

Last edited by devuan_dk_fan (Today 14:36:18)


Military justice is to justice what military music is to music. - Groucho Marx
I’ve had a perfectly wonderful evening, but this wasn’t it. - Groucho Marx

Offline

Board footer