blob: f21b59b727d0c2026afbd5cab3f6664537dc8dab [file] [log] [blame]
Daniel Hillenbrandd81f36f2013-04-06 18:56:57 +00001/*
2 * Copyright (C) 2009 The Android Open Source Project
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#ifndef __MSM_AUDIO_ALSA_CONTROL
18#define __MSM_AUDIO_ALSA_CONTROL
19
20#include <sys/cdefs.h>
21
22__BEGIN_DECLS
23
24extern const char **msm_get_device_list(void);
25extern int msm_mixer_count(void);
26extern int msm_mixer_open(const char *name, int id);
27extern void msm_mixer_close(void);
28extern int msm_get_device(const char *name);
29extern int msm_en_device(int device, short enable);
30extern int msm_route_stream(int dir, int dec_id, int dev_id, int set);
31extern int msm_route_voice(int tx, int rx, int set);
32extern int msm_set_volume(int dec_id, float vol);
33extern int msm_get_device_class(int dev_id);
34extern int msm_get_device_capability(int dev_id);
35extern int msm_get_device_count(void);
36extern void msm_start_voice(void);
37extern int msm_end_voice(void);
38extern void msm_set_voice_tx_mute(int mute);
39extern int msm_set_voice_rx_vol(int volume);
40extern void msm_set_device_volume(int dev_id, int volume);
41extern void msm_device_mute(int dev_id, int mute);
42extern int msm_reset_all_device(void);
43extern int msm_enable_anc(int dev_id, int enable);
44
45#ifndef LEGACY_QCOM_VOICE
46int msm_get_voc_session(const char *name);
47int msm_start_voice_ext(int id);
48int msm_end_voice_ext(int id);
49int msm_set_voice_tx_mute_ext(int mute, int id);
50int msm_set_voice_rx_vol_ext(int volume, int id);
51#endif
52
53__END_DECLS
54
55#endif