From: Kay Sievers Date: Wed, 10 Jun 2009 17:50:33 +0000 (+0200) Subject: ALSA: use card device as parent for jack input-devices X-Git-Tag: v2.6.31-rc1~363^2~2^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1f3fff7bda95b75a6be5a02c2a6902573d8c18e6;p=pandora-kernel.git ALSA: use card device as parent for jack input-devices This moves the jack devices from the PCI device into the ALSA card device, which makes it easier for userspace to find all devices belonging to a specific card while granting access to logged-in users. Jack input devices from sound cards can now simply be matched with udev by doing: SUBSYSTEM="input", SUBSYSTEMS="sound", ... ls -l /sys/devices/pci0000:00/0000:00:1b.0/sound/card0 controlC0 device -> ../../../0000:00:1b.0 id input10 input11 input8 input9 number pcmC0D0c pcmC0D0p pcmC0D1p power subsystem -> ../../../../../class/sound uevent Cc: Lennart Poettering Signed-off-by: Kay Sievers Signed-off-by: Takashi Iwai --- Reading git-diff-tree failed