]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: jack: don't report input event for phantom jack
authorJie Yang <yang.jie@intel.com>
Thu, 30 Apr 2015 12:22:46 +0000 (20:22 +0800)
committerTakashi Iwai <tiwai@suse.de>
Thu, 30 Apr 2015 13:21:35 +0000 (15:21 +0200)
commitfeb306e11406022939d49fafa186a9f2b35ddad4
tree9bcc9094a0fee4f68393bdd4848b79a0e8b9acdb
parent11eaaa2027c7420a24ca967cbf701c188731689b
ALSA: jack: don't report input event for phantom jack

There is no input_dev for phantom jack, we should not report
input event for it, otherwise, NULL pointer dereference error
will occur.

Fixes: 8bbdbc9389a5 ('ALSA: hda - Update to use the new jack kctls method')
Signed-off-by: Jie Yang <yang.jie@intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/jack.c