3 * Copyright 2012 Samsung Electronics S.LSI Co. LTD
5 * Licensed under the Apache License, Version 2.0 (the "License");
6 * you may not use this file except in compliance with the License.
7 * You may obtain a copy of the License at
9 * http://www.apache.org/licenses/LICENSE-2.0
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS,
13 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14 * See the License for the specific language governing permissions and
15 * limitations under the License.
21 * @author Yunji Kim (yunji.kim@samsung.com)
30 #include "srp_ioctl.h"
31 #include "srp_error.h"
34 #define SRP_DEV_NAME "dev/srp"
36 #define SRP_DEV_NAME "/dev/srp"
39 #define SRP_INIT_BLOCK_MODE 0
40 #define SRP_INIT_NONBLOCK_MODE 1
42 #define SRP_PENDING_STATE_RUNNING 0
43 #define SRP_PENDING_STATE_PENDING 1
48 unsigned int mmapped_size;
54 unsigned int sample_rate;
55 unsigned int channels;
62 int SRP_Create(int block_mode);
64 int SRP_Decode(void *buff, int size_byte);
65 int SRP_Send_EOS(void);
66 int SRP_SetParams(int id, unsigned long val);
67 int SRP_GetParams(int id, unsigned long *pval);
69 int SRP_Terminate(void);
72 int SRP_Get_Ibuf_Info(void **addr, unsigned int *size, unsigned int *num);
73 int SRP_Get_Obuf_Info(void **addr, unsigned int *size, unsigned int *num);
74 int SRP_Get_Dec_Info(struct srp_dec_info *dec_info);
75 int SRP_Get_PCM(void **addr, unsigned int *size);
82 #endif /*__SRP_API_H__ */