Merge "asoc: dsp: ipc: Reduce wait timeout to 1 second"
This commit is contained in:

کامیت شده توسط
Gerrit - the friendly Code Review server

کامیت
9cdd3ad6f9
@@ -9,7 +9,6 @@
|
||||
#include <linux/jiffies.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <linux/atomic.h>
|
||||
#include <linux/wait.h>
|
||||
#include <sound/asound.h>
|
||||
#include <dsp/msm-dts-srs-tm-config.h>
|
||||
#include <dsp/apr_audio-v2.h>
|
||||
@@ -1852,7 +1851,7 @@ static int adm_memory_map_regions(phys_addr_t *buf_add, uint32_t mempool_id,
|
||||
|
||||
ret = wait_event_timeout(this_adm.adm_wait,
|
||||
atomic_read(&this_adm.adm_stat) >= 0,
|
||||
5 * HZ);
|
||||
msecs_to_jiffies(TIMEOUT_MS));
|
||||
if (!ret) {
|
||||
pr_err("%s: timeout. waited for memory_map\n", __func__);
|
||||
ret = -EINVAL;
|
||||
@@ -1902,7 +1901,7 @@ static int adm_memory_unmap_regions(void)
|
||||
|
||||
ret = wait_event_timeout(this_adm.adm_wait,
|
||||
atomic_read(&this_adm.adm_stat) >= 0,
|
||||
5 * HZ);
|
||||
msecs_to_jiffies(TIMEOUT_MS));
|
||||
if (!ret) {
|
||||
pr_err("%s: timeout. waited for memory_unmap\n",
|
||||
__func__);
|
||||
|
مرجع در شماره جدید
Block a user