audio: Fix panic on add_timer [1/1]
authorShuai Li <shuai.li@amlogic.com>
Mon, 22 Jul 2019 06:13:48 +0000 (14:13 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Thu, 25 Jul 2019 03:08:07 +0000 (20:08 -0700)
commit8f91ffe6295443fd26bb3d8b8002e89d66caaeec
treeba72a1e62e7a2b46e4080a8014fcbfb42da98efa
parent0178c2ae2db5d6f54f18890a91f66642ff340fb0
audio: Fix panic on add_timer [1/1]

PD#TV-7920

Problem:
Audio drive caused kernel panic.
BUG_ON timer_pending.

Solution:
Add timer will panic calling add_timer.
If timer is pending we need use mod_timer
to deal with this case.

Verify:
T962

Change-Id: Ib4143de384af40803609c3513ad07eeb3fe59bbf
Signed-off-by: Shuai Li <shuai.li@amlogic.com>
sound/soc/amlogic/meson/i2s.c