1/*
2 * Copyright (C) 2014 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 AUDIO_EXTN_H
18#define AUDIO_EXTN_H
19
20#include <cutils/str_parms.h>
21
22void *audio_extn_extspk_init(struct audio_device *adev);
23void audio_extn_extspk_deinit(void *extn);
24void audio_extn_extspk_update(void* extn);
25void audio_extn_extspk_set_mode(void* extn, audio_mode_t mode);
26void audio_extn_extspk_set_voice_vol(void* extn, float vol);
27
28#ifndef HFP_ENABLED
29#define audio_extn_hfp_is_active(adev)                  (0)
30#define audio_extn_hfp_get_usecase()                    (-1)
31#define audio_extn_hfp_set_parameters(adev, params)     (0)
32#else
33bool audio_extn_hfp_is_active(struct audio_device *adev);
34
35audio_usecase_t audio_extn_hfp_get_usecase();
36
37void audio_extn_hfp_set_parameters(struct audio_device *adev,
38                                    struct str_parms *parms);
39#endif
40
41#endif /* AUDIO_EXTN_H */
42