blob: 792b15ba7e6876806f61ea2ae3fe1b0e6db43316 [file] [log] [blame]
Christopher N. Hessebc52af52017-02-10 21:20:30 +01001/*
2 * Copyright (C) 2013 The CyanogenMod 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 RIL_INTERFACE_H
18#define RIL_INTERFACE_H
19
Christopher N. Hesse74c317d2017-02-15 09:47:20 +010020#include <samsung_audio.h>
Christopher N. Hessebc52af52017-02-10 21:20:30 +010021#include <secril-client.h>
22
23typedef void (*ril_wb_amr_callback)(void *data, int enable);
24
25struct ril_handle
26{
27 void *client;
28 int volume_steps_max;
29};
30
31
32/* Function prototypes */
33int ril_open(struct ril_handle *ril);
34
35int ril_close(struct ril_handle *ril);
36
37int ril_set_call_volume(struct ril_handle *ril,
38 enum _SoundType sound_type,
39 float volume);
40
41int ril_set_call_audio_path(struct ril_handle *ril,
42 enum _AudioPath path);
43
44int ril_set_call_clock_sync(struct ril_handle *ril,
45 enum _SoundClockCondition condition);
46
47int ril_set_mute(struct ril_handle *ril, enum _MuteCondition condition);
48
49int ril_set_two_mic_control(struct ril_handle *ril,
50 enum __TwoMicSolDevice device,
51 enum __TwoMicSolReport report);
52
53int ril_set_wb_amr_callback(struct ril_handle *ril,
54 ril_wb_amr_callback fn,
55 void *data);
56
57#endif