blob: 653619591b5b343a37446f387cba3ff63e8fb135 [file] [log] [blame]
Christopher N. Hesse0fdef0c2017-02-25 01:37:56 +01001/*
2 * Copyright (C) 2017 Christopher N. Hesse <raymanfx@gmail.com>
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/*
18 * NOTICE
19 *
20 * This must be kept in sync with the kernel API, for exmaple
21 * "es705-routes.h" for the Galaxy Note 5 (N920T) with its ES804 IC.
22 */
23
24#define SYSFS_PATH_POWERCTRL "/sys/class/earsmart/control/power_control_set"
25#define SYSFS_PATH_PRESET "/sys/class/earsmart/control/route_value"
26#define SYSFS_PATH_VEQ "/sys/class/earsmart/control/veq_control_set"
27#define SYSFS_PATH_EXTRAVOLUME "/sys/class/earsmart/control/extra_volume"
28#define Call_HS_NB 0 /* Call, Headset, Narrow Band */
29#define Call_FT_NB 1 /* Call, Far Talk, Narrow Band */
30#define Call_CT_NB 2 /* Call, Close Talk, Narrow Band */
31#define Call_FT_NB_NR_OFF 3 /* Call, Far Talk, NB, NR off */
32#define Call_CT_NB_NR_OFF 4 /* Call, Close Talk, NB, NR off */
33#define Call_BT_NB 10 /* Call, BT, NB */
34#define Call_TTY_VCO 11 /* Call, TTY HCO NB */
35#define Call_TTY_HCO 12 /* Call, TTY VCO NB */
36#define Call_TTY_FULL 13 /* Call, TTY FULL NB */
37#define Call_FT_EVS 14 /* Call, Far Talk, EVS */
38#define Call_CT_EVS 15 /* Call, Close Talk, EVS */
39#define LOOPBACK_CT 17 /* Loopback, Close Talk */
40#define LOOPBACK_FT 18 /* Loopback, Far Talk */
41#define LOOPBACK_HS 19 /* Loopback, Headset */
42#define Call_BT_WB 20 /* Call, BT, WB */
43#define Call_HS_WB 21 /* Call, Headset, Wide Band */
44#define Call_FT_WB 22 /* Call, Far Talk, Wide Band */
45#define Call_CT_WB 23 /* Call, Close Talk, Wide Band */
46#define Call_FT_WB_NR_OFF 24 /* Call, Far Talk, WB, NR off */
47#define Call_CT_WB_NR_OFF 25 /* Call, Close Talk, WB, NR off */
48#define AUDIENCE_SLEEP 40 /* Route none, Audience Sleep State */