kernel-hacking-2024-linux-s.../sound
Takashi Iwai 1835a0f9a2 ALSA: hda - Cache the jack-detection value
Introduce a table containing the pins and their jack-detection states
for avoiding the unnecessary verbs to check the pin status at each time.

When the unsol event is enabled via snd_hda_jack_detect_enable(), it
automatically adds the given NID to the table.  Then the driver supposes
that the codec driver will set the dirty flag appropariately when an
unsolicited event is invoked for that pin.

The behavior for reading other pins that aren't registered in the table
doesn't change.  Only the pins assigned to the table are cached, so far.

In near futre, this table can be extended to use the central place for
the unsolicited events of all pins, etc, and eventually include the
jack-detect kcontrols that replace the current input-jack stuff.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
2011-11-16 11:11:15 +01:00
..
aoa sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
arm sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
atmel
core ALSA: vmaster - Free slave-links when freeing the master element 2011-11-10 12:34:24 +01:00
drivers sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
firewire Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
i2c sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
isa sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
mips Merge branch 'modsplit-Oct31_2011' of git://git.kernel.org/pub/scm/linux/kernel/git/paulg/linux 2011-11-06 19:44:47 -08:00
oss Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/tiwai/sound 2011-10-28 14:25:01 -07:00
parisc
pci ALSA: hda - Cache the jack-detection value 2011-11-16 11:11:15 +01:00
pcmcia sound: fix drivers needing module.h not moduleparam.h 2011-10-31 19:31:19 -04:00
ppc sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
sh sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
soc Merge branch 'for-3.2' of git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound into for-3.2 2011-11-08 10:37:41 +00:00
sparc sound: Add module.h to the previously silent sound users 2011-10-31 19:31:21 -04:00
spi
synth sound: Add export.h for THIS_MODULE/EXPORT_SYMBOL where needed 2011-10-31 19:31:22 -04:00
usb ALSA: usb-audio: Use kmemdup rather than duplicating its implementation 2011-11-10 19:51:45 +01:00
ac97_bus.c
Kconfig um: switch to use of drivers/Kconfig 2011-11-02 14:15:41 +01:00
last.c
Makefile
sound_core.c
sound_firmware.c