ALSA: hda - Clearing jackpoll_interval avoid pending work
authorWang Xingchao <xingchao.wang@linux.intel.com>
Fri, 26 Jul 2013 03:34:44 +0000 (23:34 -0400)
committerTakashi Iwai <tiwai@suse.de>
Mon, 29 Jul 2013 12:19:03 +0000 (14:19 +0200)
commit7eaa9161edd1bb41c026db252bb7e7dfe97ab90a
treed42ddf1fc85c8df33255015f58962b5458fecf43
parent85054b2153f18eac16df9ff88913c98adea6a23e
ALSA: hda - Clearing jackpoll_interval avoid pending work

Clearing jackpoll_interval before calling cancel_delayed_work_sync(),
otherwise the work will be triggered again and cause impact in
hda_jackpoll_work(). The next patch will poll jack once even with
jackpoll_interval=0.

Signed-off-by: Wang Xingchao <xingchao.wang@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_via.c