ALSA: hda - Make snd_hda_jack_detect_enable_callback() returning the jack object
authorTakashi Iwai <tiwai@suse.de>
Thu, 11 Sep 2014 12:39:09 +0000 (14:39 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 15 Sep 2014 09:50:48 +0000 (11:50 +0200)
commitbda17b82bfa9601f167ec338755b0b96909db5a0
tree54b53015593eb1665c89855da780130c2096e12d
parent81965f1f58ce120a616f2fdd0594916fa183c5fc
ALSA: hda - Make snd_hda_jack_detect_enable_callback() returning the jack object

STAC/IDT driver calls snd_hda_jack_tbl_get() again after calling
snd_hda_jack_detect_enable_callback().  For simplifying this, let's
make snd_hda_jack_detect_enable_callback() returning the pointer while
handling the error with the standard IS_ERR() & co.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/hda_jack.c
sound/pci/hda/hda_jack.h
sound/pci/hda/patch_sigmatel.c