[LAU] manual ALSA device rescan

From: Brent Busby <brent@email-addr-hidden>
Date: Tue Jul 30 2019 - 06:16:58 EEST

This problem is trivial, but maybe there's a trivial solution...

I have an Edirol UM-3EX USB MIDI interface that I sometimes pass through
to guest OS's in QEMU, which works surprisingly well at letting the
guest use the real world MIDI hardware.

However, QEMU does a reset on the device, which seems to cause it to get
a new USB device number and disappear from ALSA's view. If I physically
unplug and replug it, ALSA picks it up again and everything is fine, and
I don't even need to reboot.

It bugs me that I even need to do that. (I told you it was trivial.)
Is there a way to make ALSA scan for new devices manually? I'm on
Gentoo for what it's worth, but that may not matter. Obviously, ALSA
has some way of picking new devices up or else replugging wouldn't
work. I'm just thinking I should be able to trigger that myself, and
also it may be educational for me to learn how ALSA does this.

-- 
- Brent Busby	+ ===============================================
		+ "The introduction of a new kind of music must
-- Studio    --	+  be shunned as imperiling the whole state, for
-- Amadeus/  --	+  styles of music are never disturbed without
-- Keycorner --	+  without affecting the most important political
-- Recording --	+  institutions."    --Plato, "Republic"
----------------+ ===============================================

_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@lists.linuxaudio.org
https://lists.linuxaudio.org/listinfo/linux-audio-user

Received on Tue Jul 30 08:15:01 2019

This archive was generated by hypermail 2.1.8 : Tue Jul 30 2019 - 08:15:01 EEST