kernel-ark/sound/pci
James Courtier-Dutton 025cd2f6b1 [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree.
CA0106 driver,EMU10K1/EMU10K2 driver
A thread appeared on the LKML. This patch implements the fix.

Question:
in sysfs, /sys/bus/*/drivers lists the driver names, with their exported .name (eg. '.name = 'EMU10K1_Audigy'' in the module code, from now on 'driver name'). In /sys/modules, the kernel modules are listed with their module name, eg. snd_emu10k1. However, it seems to me that in sysfs, there is no way in particular to tell, which module has which .name. That is, that snd_emu10k1 is EMU10K1_Audigy and vice versa.

I wonder whether it wouldn't be possible to add a symlink to the particular module from the driver, and/or from the module to the driver, so the list of devices handled by the module and the module name would be accessible. This way, I would know which driver name corresponds to which module name and vice versa.

Answer:
For PCI drivers, just add the line:
	.owner = THIS_MODULE,

to their struct pci_driver definition and you will get the symlink
created for you.

Signed-off-by: James Courtier-Dutton <James@superbug.co.uk>
2005-09-12 10:41:07 +02:00
..
ac97 [ALSA] Fix ALC658D support 2005-09-12 10:41:01 +02:00
ali5451 [PATCH] ALSA: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
au88x0
ca0106 [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree. 2005-09-12 10:41:07 +02:00
cs46xx
emu10k1 [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree. 2005-09-12 10:41:07 +02:00
hda
ice1712
korg1212
mixart
nm256
rme9652 [ALSA] hdsp: always initialize card name 2005-09-12 10:40:55 +02:00
trident
vx222
ymfpci
ad1889.c [ALSA] ad1889: add AD1889 driver 2005-09-12 10:40:17 +02:00
ad1889.h [ALSA] ad1889: add AD1889 driver 2005-09-12 10:40:17 +02:00
als4000.c
atiixp_modem.c
atiixp.c [ALSA] atiixp - Fix PM resume 2005-09-12 10:40:24 +02:00
azt3328.c
azt3328.h
bt87x.c
cmipci.c
cs4281.c
ens1370.c
ens1371.c
es1938.c
es1968.c
fm801.c
intel8x0.c [ALSA] intel8x0 - Add quirk for IBM NetVisa A30p 2005-09-12 10:40:37 +02:00
intel8x0m.c
Kconfig [ALSA] ad1889: add AD1889 driver 2005-09-12 10:40:17 +02:00
maestro3.c
Makefile [ALSA] ad1889: add AD1889 driver 2005-09-12 10:40:17 +02:00
rme32.c
rme96.c
sonicvibes.c
via82xx_modem.c
via82xx.c