blob: 55a807822ba5f581ce01aebd2f83a92bfdfd5d6f
1 | /* |
2 | * Copyright (C) 2010 Amlogic Corporation. |
3 | * |
4 | * Licensed under the Apache License, Version 2.0 (the "License"); |
5 | * you may not use this file except in compliance with the License. |
6 | * You may obtain a copy of the License at |
7 | * |
8 | * http://www.apache.org/licenses/LICENSE-2.0 |
9 | * |
10 | * Unless required by applicable law or agreed to in writing, software |
11 | * distributed under the License is distributed on an "AS IS" BASIS, |
12 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
13 | * See the License for the specific language governing permissions and |
14 | * limitations under the License. |
15 | */ |
16 | |
17 | |
18 | |
19 | #ifndef _AUDIO_HW_UTILS_H_ |
20 | #define _AUDIO_HW_UTILS_H_ |
21 | int get_sysfs_uint(const char *path, uint *value); |
22 | int sysfs_set_sysfs_str(const char *path, const char *val); |
23 | int get_sysfs_int (const char *path); |
24 | int mystrstr(char *mystr,char *substr) ; |
25 | void set_codec_type(int type); |
26 | int get_codec_type(int format); |
27 | int getprop_bool (const char *path); |
28 | unsigned char codec_type_is_raw_data(int type); |
29 | int mystrstr(char *mystr,char *substr); |
30 | void *convert_audio_sample_for_output(int input_frames,int input_format,int input_ch,void *input_buf,int *out_size/*,float lvol*/); |
31 | |
32 | #endif |
33 |