1 /* 2 * Copyright (C) 2013-2016 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 TFA_98XX_H 18 #define TFA_98XX_H 19 20 #ifdef SMART_PA_TFA_98XX_SUPPORTED 21 int audio_extn_tfa_98xx_enable_speaker(void); 22 void audio_extn_tfa_98xx_disable_speaker(snd_device_t snd_device); 23 void audio_extn_tfa_98xx_set_mode(); 24 void audio_extn_tfa_98xx_set_mode_bt(void); 25 void audio_extn_tfa_98xx_update(void); 26 void audio_extn_tfa_98xx_set_voice_vol(float vol); 27 int audio_extn_tfa_98xx_init(struct audio_device *adev); 28 void audio_extn_tfa_98xx_deinit(void); 29 bool audio_extn_tfa_98xx_is_supported(void); 30 #else 31 #define audio_extn_tfa_98xx_enable_speaker(void) (0) 32 #define audio_extn_tfa_98xx_disable_speaker(snd_device) (0) 33 #define audio_extn_tfa_98xx_set_mode() (0) 34 #define audio_extn_tfa_98xx_set_mode_bt() (0) 35 #define audio_extn_tfa_98xx_update(void) (0) 36 #define audio_extn_tfa_98xx_set_voice_vol(vol) (0) 37 #define audio_extn_tfa_98xx_init(adev) (0) 38 #define audio_extn_tfa_98xx_deinit(void) (0) 39 #define audio_extn_tfa_98xx_is_supported(void) (false) 40 #endif 41 42 #endif /* TFA_98XX_H */ 43