linux/sound
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
..
arm [PATCH] iomem annotations (sound/arm/aaci) 2005-09-07 17:17:33 -07:00
core [PATCH] ALSA: convert kcalloc to kzalloc 2005-09-07 16:57:46 -07:00
drivers [ALSA] PCM resume cleanups 2005-08-30 08:46:40 +02:00
i2c [ALSA] ak4114: removed duplicate wake_up() 2005-07-28 12:09:18 +02:00
isa [PATCH] sb16_csp: untypedef 2005-09-10 10:06:25 -07:00
mips Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
oss [PATCH] patch] remove sound/oss/skeleton.c 2005-09-10 10:06:30 -07:00
parisc Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
pci [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree. 2005-09-12 10:41:07 +02:00
pcmcia [ALSA] vxpocket - Register device pointer 2005-08-30 08:47:16 +02:00
ppc [PATCH] Stop snd-powermac oopsing on non-pmac hardware. 2005-08-17 14:55:37 -07:00
sparc [ALSA] Add DBRI driver on Sparcs 2005-07-28 12:21:18 +02:00
synth [ALSA] Fix missing spin_unlock 2005-08-30 08:47:31 +02:00
usb [PATCH] USB: URB_ASYNC_UNLINK flag removed from the kernel 2005-09-08 16:23:04 -07:00
Kconfig [PATCH] Kconfig fix (ISA_DMA_API and sound/*) 2005-08-23 18:43:40 -07:00
last.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
Makefile Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00
sound_core.c [PATCH] Assign device pointer to OSS devices 2005-08-30 08:58:37 +02:00
sound_firmware.c Linux-2.6.12-rc2 2005-04-16 15:20:36 -07:00