linux/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 [ALSA] Fix missing spin_unlock 2005-08-30 08:47:31 +02:00
ca0106 [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree. 2005-09-12 10:41:07 +02:00
cs46xx [ALSA] PCM resume cleanups 2005-08-30 08:46:40 +02:00
emu10k1 [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree. 2005-09-12 10:41:07 +02:00
hda [ALSA] hda-intel - Fix ULI M5461 support 2005-08-30 08:47:22 +02:00
ice1712 [ALSA] use SNDRV_CTL_NAME_IEC958 macro 2005-08-30 08:43:35 +02:00
korg1212 [ALSA] sound - fix .iface field of mixer control elements 2005-08-30 08:43:22 +02:00
mixart [ALSA] sound/pci: fix-up sleeping paths 2005-07-28 12:22:13 +02:00
nm256 [ALSA] nm256 - Fix PM and irq handling 2005-08-30 08:46:29 +02:00
rme9652 [ALSA] hdsp: always initialize card name 2005-09-12 10:40:55 +02:00
trident [ALSA] PCM resume cleanups 2005-08-30 08:46:40 +02:00
vx222 [PATCH] clean up inline static vs static inline 2005-07-27 16:26:20 -07:00
ymfpci [ALSA] ymfpci: add per-voice volume controls 2005-08-30 08:44:46 +02:00
Kconfig [ALSA] ad1889: add AD1889 driver 2005-09-12 10:40:17 +02:00
Makefile [ALSA] ad1889: add AD1889 driver 2005-09-12 10:40:17 +02:00
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 [ALSA] als4000 - Fix kernel panic with MPU401 2005-05-29 10:15:21 +02:00
atiixp.c [ALSA] atiixp - Fix PM resume 2005-09-12 10:40:24 +02:00
atiixp_modem.c [ALSA] Add new pci device id (SB400) to atiixp-modem 2005-07-28 12:09:37 +02:00
azt3328.c [ALSA] Replace pci_module_init() with pci_register_driver() 2005-05-29 10:00:32 +02:00
azt3328.h Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
bt87x.c [PATCH] Fix bt87x.c build problem for real 2005-07-06 12:40:35 -07:00
cmipci.c [ALSA] sound - fix .iface field of mixer control elements 2005-08-30 08:43:22 +02:00
cs4281.c [PATCH] clean up inline static vs static inline 2005-07-27 16:26:20 -07:00
ens1370.c [ALSA] use PCM interface for IEC958 controls 2005-08-30 08:43:39 +02:00
ens1371.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
es1938.c [ALSA] Replace pci_module_init() with pci_register_driver() 2005-05-29 10:00:32 +02:00
es1968.c [ALSA] sound/pci: fix-up sleeping paths 2005-07-28 12:22:13 +02:00
fm801.c [ALSA] use SNDRV_CTL_NAME_IEC958 macro 2005-08-30 08:43:35 +02:00
intel8x0.c [ALSA] intel8x0 - Add quirk for IBM NetVisa A30p 2005-09-12 10:40:37 +02:00
intel8x0m.c [ALSA] PCI modem drivers update 2005-06-22 12:27:21 +02:00
maestro3.c [ALSA] maestro3 - Clean up 2005-07-28 12:21:13 +02:00
rme32.c [ALSA] sound - fix .iface field of mixer control elements 2005-08-30 08:43:22 +02:00
rme96.c [ALSA] sound - fix .iface field of mixer control elements 2005-08-30 08:43:22 +02:00
sonicvibes.c [ALSA] Replace pci_module_init() with pci_register_driver() 2005-05-29 10:00:32 +02:00
via82xx.c [ALSA] via82xx - Add DXS entry for MSI 7142 2005-08-30 08:46:45 +02:00
via82xx_modem.c [ALSA] PCM resume cleanups 2005-08-30 08:46:40 +02:00