Daniel Hillenbrand | d81f36f | 2013-04-06 18:56:57 +0000 | [diff] [blame] | 1 | /* |
| 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 | |
| 24 | extern const char **msm_get_device_list(void); |
| 25 | extern int msm_mixer_count(void); |
| 26 | extern int msm_mixer_open(const char *name, int id); |
| 27 | extern void msm_mixer_close(void); |
| 28 | extern int msm_get_device(const char *name); |
| 29 | extern int msm_en_device(int device, short enable); |
| 30 | extern int msm_route_stream(int dir, int dec_id, int dev_id, int set); |
| 31 | extern int msm_route_voice(int tx, int rx, int set); |
| 32 | extern int msm_set_volume(int dec_id, float vol); |
| 33 | extern int msm_get_device_class(int dev_id); |
| 34 | extern int msm_get_device_capability(int dev_id); |
| 35 | extern int msm_get_device_count(void); |
| 36 | extern void msm_start_voice(void); |
| 37 | extern int msm_end_voice(void); |
| 38 | extern void msm_set_voice_tx_mute(int mute); |
| 39 | extern int msm_set_voice_rx_vol(int volume); |
| 40 | extern void msm_set_device_volume(int dev_id, int volume); |
| 41 | extern void msm_device_mute(int dev_id, int mute); |
| 42 | extern int msm_reset_all_device(void); |
| 43 | extern int msm_enable_anc(int dev_id, int enable); |
| 44 | |
| 45 | #ifndef LEGACY_QCOM_VOICE |
| 46 | int msm_get_voc_session(const char *name); |
| 47 | int msm_start_voice_ext(int id); |
| 48 | int msm_end_voice_ext(int id); |
| 49 | int msm_set_voice_tx_mute_ext(int mute, int id); |
| 50 | int msm_set_voice_rx_vol_ext(int volume, int id); |
| 51 | #endif |
| 52 | |
| 53 | __END_DECLS |
| 54 | |
| 55 | #endif |