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)
commit6ed9495e225605b7c4cd1544b87740e18ef43320
tree9bcc9094a0fee4f68393bdd4848b79a0e8b9acdb
parent12e180a27f3e066a4ed4a446d428fd117f168beb
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: 2ba2dfa1fcc7 ('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