hid: jarvis: Fix rare case deadlock
snd_pcm_resume() turns out to hold the same lock
as snd_pcm_suspend() and causes the same deadlock
fixed previously, only in less chance. There is no
easy way around this deadlock in kernel thus we do
a best effort prevent. In the rare case it still
happens, we avoid abort the operation and let userspace
try again.
Bug
1599000
Change-Id: I09ca660a8d785dff76a3cf44e5b67c9ce5b147a9
Signed-off-by: Xia Yang <xiay@nvidia.com>
Reviewed-on: http://git-master/r/678118
(cherry picked from commit
6c7e1a772234df7ed757859f1f5840885de26625)
Reviewed-on: http://git-master/r/716503
GVS: Gerrit_Virtual_Submit
Reviewed-by: Bharat Nihalani <bnihalani@nvidia.com>