-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Build without qcom audio calibration * Hack for prebuilt libraries we don't have access to * Little cleanup of makefile
- Loading branch information
Showing
4 changed files
with
104 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/* | ||
* Copyright (c) 2009, The Android Open-Source Project | ||
* Copyright (c) 2009-2010, The Linux Foundation. All rights reserved. | ||
* Copyright (c) 2011-2013, The CyanogenMod Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef __MSM_AUDIO_ALSA_CONTROL | ||
#define __MSM_AUDIO_ALSA_CONTROL | ||
|
||
#include <sys/cdefs.h> | ||
|
||
__BEGIN_DECLS | ||
|
||
extern const char **msm_get_device_list(void); | ||
extern int msm_mixer_count(void); | ||
extern int msm_mixer_open(const char *name, int id); | ||
extern void msm_mixer_close(void); | ||
extern int msm_get_device(const char *name); | ||
extern int msm_en_device(int device, short enable); | ||
extern int msm_route_stream(int dir, int dec_id, int dev_id, int set); | ||
extern int msm_route_voice(int tx, int rx, int set); | ||
extern int msm_set_volume(int dec_id, float vol); | ||
extern int msm_get_device_class(int dev_id); | ||
extern int msm_get_device_capability(int dev_id); | ||
extern int msm_get_device_count(void); | ||
extern void msm_start_voice(void); | ||
extern int msm_end_voice(void); | ||
extern int msm_set_voice_tx_mute(int mute); | ||
extern int msm_set_voice_rx_vol(int volume); | ||
extern void msm_set_device_volume(int dev_id, int volume); | ||
extern void msm_device_mute(int dev_id, int mute); | ||
extern int msm_reset_all_device(void); | ||
|
||
__END_DECLS | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* | ||
* Copyright (c) 2009, The Android Open-Source Project | ||
* Copyright (c) 2009-2010, The Linux Foundation. All rights reserved. | ||
* Copyright (c) 2011-2013, The CyanogenMod Project | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
#ifndef __MSM_AUDIO_CALIBRATION | ||
#define __MSM_AUDIO_CALIBRATION | ||
|
||
#include <sys/cdefs.h> | ||
|
||
__BEGIN_DECLS | ||
|
||
extern void audcal_initialize(void); | ||
extern void audcal_deinitialize(void); | ||
|
||
__END_DECLS | ||
|
||
#endif |