diff options
author | Takashi Iwai <tiwai@suse.de> | 2013-05-31 14:10:03 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2013-06-03 11:33:06 +0200 |
commit | 77afe0e94884ae40de29cd813a1fb7ddee583591 (patch) | |
tree | 89c38b08c64f52168118c32cc299bd1959de0c24 /sound/pci/oxygen/virtuoso.c | |
parent | 087c2e3b4e062573dbbc8a50b9208992e3768dcf (diff) | |
download | blackbird-op-linux-77afe0e94884ae40de29cd813a1fb7ddee583591.tar.gz blackbird-op-linux-77afe0e94884ae40de29cd813a1fb7ddee583591.zip |
ALSA: hda - Allow setting automute/automic hooks after parsing
Some codec drivers (VIA codecs and some Realtek fixups) set the
automute and automic hooks after calling
snd_hda_gen_parse_auto_config(). In the current code, the hook
pointers are referred only in snd_hda_gen_parse_auto_config() and
passed to snd_hda_jack_detect_enable_callback(), thus changing the
hook values won't change the actually called callbacks properly.
This patch fixes this bug by setting the static functions as the
primary callback functions for the jack detection, and let them
calling the appropriate hooks dynamically.
Cc: <stable@vger.kernel.org> [v3.9]
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/oxygen/virtuoso.c')
0 files changed, 0 insertions, 0 deletions