This change should fix the audience firmware crash observed while
switching between speaker and headphone devices during simultaneous
playback and capture usecase
Change summary:
Updatedthe Audience kernel driver to not send stop route
twice in a row when switching between speaker and headphone
during simultaneous playback and capture.
Change-Id: I62f5c6d5be58d3718a08dce6ef6c7984ef90e85b
Signed-off-by: Srinivas Anne <sanne@nvidia.com>
Reviewed-on: http://git-master/r/771360
(cherry picked from commit
fc19a43d2deb0b70094a4c4babb13ed658697549)
Reviewed-on: http://git-master/r/784943
Reviewed-by: Dara Ramesh <dramesh@nvidia.com>
Tested-by: Dara Ramesh <dramesh@nvidia.com>
* firmware after stopping the current route. The stream count will
* anyway will be decremented when the HAL layer stops the PCM stream
* of previous use-case. */
- if (unlikely(atomic_read(&escore->active_streams)))
+ else if (unlikely(atomic_read(&escore->active_streams)))
es300_codec_stop_algo(escore);
escore_flush_msg_list(escore);