linux-stable/sound/pci
Takashi Iwai d604b39908 ALSA: hda - Fix registration of beep input device
The beep input device is registered via input_register_device(), but
this is called in snd_hda_attach_beep_device() where the sound devices
aren't registered yet.  This leads to the binding to non-existing
object, thus results in failure.  And, even if the binding worked
(against the PCI object), it's still racy; the input device appears
before the sound objects.

For fixing this, register the input device properly at dev_register
ops of the codec object it's bound with.  Also, call
snd_hda_detach_beep_device() at dev_disconnection so that it's
detached at the right timing.  As a bonus, since it's called in the
codec's ops, we can get rid of the further call from the other codec
drivers.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2014-02-28 14:02:21 +01:00
..
ac97 ALSA: ac97: Use standard printk helpers 2014-02-26 16:45:23 +01:00
ali5451 ALSA: ali5451: Use standard printk helpers 2014-02-26 16:45:23 +01:00
asihpi ALSA: pci: Convert to snd_card_new() with a device pointer 2014-02-12 11:17:52 +01:00
au88x0 ALSA: pci: Convert to snd_card_new() with a device pointer 2014-02-12 11:17:52 +01:00
aw2 ALSA: aw2: Use standard printk helpers 2014-02-26 16:45:24 +01:00
ca0106 ALSA: ca0106: Use standard printk helpers 2014-02-26 16:45:24 +01:00
cs46xx ALSA: cs46xx: Use standard printk helpers 2014-02-26 16:45:25 +01:00
cs5535audio ALSA: cs5535audio: Use standard printk helpers 2014-02-26 16:45:25 +01:00
ctxfi ALSA: pci: Convert to snd_card_new() with a device pointer 2014-02-12 11:17:52 +01:00
echoaudio ALSA: echoaudio: Use standard printk helpers 2014-02-26 16:45:26 +01:00
emu10k1 ALSA: emu10k1: Use standard printk helpers 2014-02-26 16:45:27 +01:00
hda ALSA: hda - Fix registration of beep input device 2014-02-28 14:02:21 +01:00
ice1712 ALSA: ice17xx: Use standard printk helpers 2014-02-26 16:45:27 +01:00
korg1212 ALSA: pci: Convert to snd_card_new() with a device pointer 2014-02-12 11:17:52 +01:00
lola ALSA: lola: Use standard printk helpers 2014-02-26 16:45:28 +01:00
lx6464es ALSA: lx6464es: Use standard printk helpers 2014-02-26 16:45:28 +01:00
mixart ALSA: mixart: Use standard printk helpers 2014-02-26 16:45:29 +01:00
nm256 ALSA: nm256: Use standard printk helpers 2014-02-26 16:45:29 +01:00
oxygen ALSA: oxygen: Use standard printk helpers 2014-02-26 16:45:30 +01:00
pcxhr ALSA: pcxhr: Use standard printk helpers 2014-02-26 16:45:30 +01:00
riptide ALSA: pci: Convert to snd_card_new() with a device pointer 2014-02-12 11:17:52 +01:00
rme9652 ALSA: rme9652: Use standard printk helpers 2014-02-26 16:45:32 +01:00
trident ALSA: trident: Use standard printk helpers 2014-02-26 16:45:32 +01:00
vx222 ALSA: vx222: Use standard printk helpers 2014-02-26 16:45:33 +01:00
ymfpci ALSA: ymfpci: Use standard printk helpers 2014-02-26 16:45:33 +01:00
Kconfig ALSA: Enable CONFIG_ZONE_DMA for smaller PCI DMA masks 2014-01-11 11:05:13 +01:00
Makefile ALSA: Add the driver for Digigram Lola PCI-e boards 2011-05-03 16:31:05 +02:00
ad1889.c ALSA: ad1889: Use standard printk helpers 2014-02-26 16:45:10 +01:00
ad1889.h
ak4531_codec.c ALSA: pci: remove __dev* attributes 2012-12-07 07:20:55 +01:00
als300.c ALSA: als300: Use standard printk helpers 2014-02-26 16:45:11 +01:00
als4000.c ALSA: als4000: Use standard printk helpers 2014-02-26 16:45:12 +01:00
atiixp.c ALSA: atiixp: Use standard printk helpers 2014-02-26 16:45:12 +01:00
atiixp_modem.c ALSA: atiixp-modem: Use standard printk helpers 2014-02-26 16:45:13 +01:00
azt3328.c ALSA: azt3328: Use standard printk helpers 2014-02-26 16:45:14 +01:00
azt3328.h ALSA: azt3328: fix previous breakage, improve suspend, cleanups 2009-07-15 12:03:26 +02:00
bt87x.c ALSA: bt87x: Use standard printk helpers 2014-02-26 16:45:14 +01:00
cmipci.c ALSA: cmipci: Use standard printk helpers 2014-02-26 16:45:15 +01:00
cs4281.c ALSA: cs4281: Use standard printk helpers 2014-02-26 16:45:15 +01:00
cs5530.c ALSA: cs5530: Use standard printk helpers 2014-02-26 16:45:16 +01:00
ens1370.c ALSA: ens137x: Use standard printk helpers 2014-02-26 16:45:16 +01:00
ens1371.c
es1938.c ALSA: es1938: Use standard printk helpers 2014-02-26 16:45:17 +01:00
es1968.c ALSA: es1968: Use standard printk helpers 2014-02-26 16:45:17 +01:00
fm801.c ALSA: fm801: Use standard printk helpers 2014-02-26 16:45:18 +01:00
intel8x0.c ALSA: intel8x0: Use standard printk helpers 2014-02-26 16:45:18 +01:00
intel8x0m.c ALSA: intel8x0m: Use standard printk helpers 2014-02-26 16:45:19 +01:00
maestro3.c ALSA: maestro3: Use standard printk helpers 2014-02-26 16:45:19 +01:00
rme32.c ALSA: rme32: Use standard printk helpers 2014-02-26 16:45:20 +01:00
rme96.c ALSA: rme96: Use standard printk helpers 2014-02-26 16:45:20 +01:00
sis7019.c ALSA: pci: Convert to snd_card_new() with a device pointer 2014-02-12 11:17:52 +01:00
sis7019.h trivial: fix typos s/paramter/parameter/ and s/excute/execute/ in documentation and source comments. 2009-06-12 18:01:46 +02:00
sonicvibes.c ALSA: sonicvibes: Use standard printk helpers 2014-02-26 16:45:21 +01:00
via82xx.c ALSA: via82xx: Use standard printk helpers 2014-02-26 16:45:21 +01:00
via82xx_modem.c ALSA: via82xx_modem: Use standard printk helpers 2014-02-26 16:45:22 +01:00