Merge "ASoC: msm: qdspv2: add result check when audio process fail"
This commit is contained in:
commit
7407b90c6d
1 changed files with 6 additions and 0 deletions
|
@ -851,6 +851,7 @@ static long audio_aio_process_event_req_compat(struct q6audio_aio *audio,
|
|||
long rc;
|
||||
struct msm_audio_event32 usr_evt_32;
|
||||
struct msm_audio_event usr_evt;
|
||||
memset(&usr_evt, 0, sizeof(struct msm_audio_event));
|
||||
|
||||
if (copy_from_user(&usr_evt_32, arg,
|
||||
sizeof(struct msm_audio_event32))) {
|
||||
|
@ -860,6 +861,11 @@ static long audio_aio_process_event_req_compat(struct q6audio_aio *audio,
|
|||
usr_evt.timeout_ms = usr_evt_32.timeout_ms;
|
||||
|
||||
rc = audio_aio_process_event_req_common(audio, &usr_evt);
|
||||
if (rc < 0) {
|
||||
pr_err("%s: audio process event failed, rc = %ld",
|
||||
__func__, rc);
|
||||
return rc;
|
||||
}
|
||||
|
||||
usr_evt_32.event_type = usr_evt.event_type;
|
||||
switch (usr_evt_32.event_type) {
|
||||
|
|
Loading…
Add table
Reference in a new issue