kernel-ark/sound/pci/emu10k1
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
..
emu10k1_callback.c
emu10k1_main.c [ALSA] Add identification for Live 5.1 [SB0220] 2005-08-30 08:47:48 +02:00
emu10k1_patch.c
emu10k1_synth_local.h
emu10k1_synth.c
emu10k1.c [ALSA] snd-ca0106, snd-emu10k1: Add symlink in the sys tree. 2005-09-12 10:41:07 +02:00
emu10k1x.c [ALSA] use PCM interface for IEC958 controls 2005-08-30 08:43:39 +02:00
emufx.c [ALSA] use SNDRV_CTL_NAME_IEC958 macro 2005-08-30 08:43:35 +02:00
emumixer.c [ALSA] use PCM interface for IEC958 controls 2005-08-30 08:43:39 +02:00
emumpu401.c
emupcm.c [ALSA] sound - fix .iface field of mixer control elements 2005-08-30 08:43:22 +02:00
emuproc.c [ALSA] Fix permissions in some /proc files 2005-05-29 10:00:39 +02:00
io.c
irq.c [ALSA] Adds Capture to P16V chip. 2005-05-29 09:00:24 +02:00
Makefile
memory.c [PATCH] clean up inline static vs static inline 2005-07-27 16:26:20 -07:00
p16v.c [ALSA] snd-emu10k1: Tidy mixer controls. 2005-07-28 12:21:28 +02:00
p16v.h
timer.c
voice.c