MLK-16468-1: include: uapi: add multi-codec support for hifi4
authorWeiguang Kong <weiguang.kong@nxp.com>
Thu, 14 Sep 2017 05:31:22 +0000 (13:31 +0800)
committerNitin Garg <nitin.garg@nxp.com>
Mon, 19 Mar 2018 20:38:34 +0000 (15:38 -0500)
update the mxc_hifi4.h header file to support multi-codec
decoding or encoding together for hifi4 dsp.

Signed-off-by: Weiguang Kong <weiguang.kong@nxp.com>
Reviewed-by: Mihai Serban <mihai.serban@nxp.com>
include/uapi/linux/mxc_hifi4.h

index f8db598..4da1700 100644 (file)
@@ -33,7 +33,7 @@
 #define HIFI4_DECODE_ONE_FRAME         _IOW(HIFI4_IOC_MAGIC, 4, unsigned int)
 #define HIFI4_UNLOAD_CODEC             _IOW(HIFI4_IOC_MAGIC, 5, unsigned int)
 #define HIFI4_GET_PCM_PROP             _IOW(HIFI4_IOC_MAGIC, 6, unsigned int)
-#define HIFI4_SET_CONFIG               _IOW(HIFI4_IOC_MAGIC, 7, unsigned int)
+#define HIFI4_SET_CONFIG               _IOW(HIFI4_IOC_MAGIC, 7, unsigned int)
 
 #define CODEC_MP3_DEC          1
 #define CODEC_AAC_DEC          2
@@ -54,6 +54,7 @@ struct decode_info {
        int   out_buf_off;
        unsigned int cycles;
        unsigned int input_over;
+       unsigned int process_id;
 };
 
 struct prop_info {
@@ -69,11 +70,14 @@ struct prop_info {
        int   aac_samplerate;
        int   sbr_type;
        int   mpeg_surr_present;
+
+       unsigned int process_id;
 };
 
 struct binary_info {
        int type;
        char *file;
+       unsigned int process_id;
 };
 
 struct prop_config {
@@ -81,6 +85,7 @@ struct prop_config {
        int   cmd;       /* command value */
        int   val;       /* parameter value */
        int   ret;       /* executed status of function */
+       unsigned int process_id;
 };
 
 #endif/* __MXC_HIFI4_UAPI_H__ */