summaryrefslogtreecommitdiff
path: root/include/sound
diff options
context:
space:
mode:
authorLinux Build Service Account <lnxbuild@quicinc.com>2017-05-10 23:03:37 -0700
committerGerrit - the friendly Code Review server <code-review@localhost>2017-05-10 23:03:37 -0700
commitd575147a75cbf9556dfb9fc8e837d625885fc1a0 (patch)
tree489d361522f55297f35dd73f510408bb387815a1 /include/sound
parent4cb291c99a103e4db4ab9d5c4f95f30427cc374d (diff)
parent87cac622d88b38cb6ced76930155958491f51340 (diff)
Merge "ASoC: msm: enhance ADSP Stream Callback"
Diffstat (limited to 'include/sound')
-rw-r--r--include/sound/apr_audio-v2.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/include/sound/apr_audio-v2.h b/include/sound/apr_audio-v2.h
index 021b81105c42..40cd9a752c53 100644
--- a/include/sound/apr_audio-v2.h
+++ b/include/sound/apr_audio-v2.h
@@ -15,6 +15,7 @@
#define _APR_AUDIO_V2_H_
#include <linux/qdsp6v2/apr.h>
+#include <linux/msm_audio.h>
/* size of header needed for passing data out of band */
#define APR_CMD_OB_HDR_SZ 12
@@ -447,6 +448,18 @@ struct adm_param_data_v5 {
#define ASM_STREAM_PP_EVENT 0x00013214
#define DSP_STREAM_CMD "ADSP Stream Cmd"
#define DSP_STREAM_CALLBACK "ADSP Stream Callback Event"
+#define DSP_STREAM_CALLBACK_QUEUE_SIZE 1024
+
+struct dsp_stream_callback_list {
+ struct list_head list;
+ struct msm_adsp_event_data event;
+};
+
+struct dsp_stream_callback_prtd {
+ uint16_t event_count;
+ struct list_head event_queue;
+ spinlock_t prtd_spin_lock;
+};
/* set customized mixing on matrix mixer */
#define ADM_CMD_SET_PSPD_MTMX_STRTR_PARAMS_V5 0x00010344