]> git.sesse.net Git - vlc/commit
udev: use ALSA to find capture device names
authorRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Jul 2010 17:25:35 +0000 (20:25 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sat, 17 Jul 2010 17:30:04 +0000 (20:30 +0300)
commit0c6062ece8e73986a031a22c440f2b2b5f5a9a12
tree2aab1a5a8fd191265851f070fdfa16d7fd2e2917
parent483379cdc00fc5ac61c2f2f2ea2af3c31aad4a6b
udev: use ALSA to find capture device names

This is a little bit more understandable than device numbers.
Unfortunately, hot plug is as flaky as before: udev reports the device
before it is ready. alsa-lib provides no event interface (that I know),
so we have to stick with udev for now though.

Also, alsa-lib is _not_ used to fetch the card name. In my opinion, the
udev vendor string is a lot better. Compare:
- "USB Device 0xccd:0x77" (alsa card name) with
  "TerraTec Electronic GmbH" (udev vendor), or
- "Intel ICH6" (alsa card name) with "Intel Corporation" (udev vendor).
modules/services_discovery/Modules.am
modules/services_discovery/udev.c