summaryrefslogtreecommitdiff
path: root/audio_hw_utils.h (plain)
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_
21int get_sysfs_uint(const char *path, uint *value);
22int sysfs_set_sysfs_str(const char *path, const char *val);
23int get_sysfs_int (const char *path);
24int mystrstr(char *mystr,char *substr) ;
25void set_codec_type(int type);
26int get_codec_type(int format);
27int getprop_bool (const char *path);
28unsigned char codec_type_is_raw_data(int type);
29int mystrstr(char *mystr,char *substr);
30void *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