hal: handle EINRESET error on pcm_open
Watchdog is hitting due to excessive logging
in kernel space, while SSR/PDR stress test.
Framework try to call pcm_open or compress_open
until the sound card offline event is received in
case of SSR/PDR, there is a window between actual
SSR/PDR and the offline event and this window at
times gets bigger due to excessive logging in
driver space, due to excessive logging offline event
get delayed, and during this window if framework
try to call pcm_open or compress_open multiple times
then there is excessive logging in driver layer
leading to watchdog hit .
In case of SSR\PDR, pcm_open will result in
error with return type EINRESET. As a workaround,
handle error EINRESET return type in hal when
pcm_open or compress_open is called to avoid
excessive logging in driver layer.
CRs-fixed: 2223369
Change-Id: Icc18b5a343cedc1ead004e06e22261850a7bda33
1 file changed