dsp: audio_prm: check if gpr is ready
During SSR, GPR will receive adsp down notification first and set to SUBSYS_DOWN mode. Sometimes before audio_prm received adsp down notification, prm_gpr_send_pkt is called but it will get stucked in spf_core_is_apm_ready for 30s and device crash happens. In audio_prm, before checking if spf is ready, check if both prm and gpr are ready to avoid getting stucked. Change-Id: I851c140a07162e4fcf20353002ef0130441ca1db Signed-off-by: Meng Wang <mengw@codeaurora.org>
This commit is contained in:
@@ -284,4 +284,5 @@ void gpr_driver_unregister(struct gpr_driver *drv);
|
||||
int gpr_send_pkt(struct gpr_device *adev, struct gpr_pkt *pkt);
|
||||
|
||||
enum gpr_subsys_state gpr_get_modem_state(void);
|
||||
enum gpr_subsys_state gpr_get_q6_state(void);
|
||||
#endif /* __QCOM_GPR_H_ */
|
||||
|
مرجع در شماره جدید
Block a user