2 * This file is part of samsung-ril.
4 * Copyright (C) 2011-2012 Paul Kocialkowski <contact@oaulk.fr>
6 * samsung-ril is free software: you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation, either version 3 of the License, or
9 * (at your option) any later version.
11 * samsung-ril is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU General Public License
17 * along with samsung-ril. If not, see <http://www.gnu.org/licenses/>.
21 /* Samsung RIL Socket protocol defines */
23 #ifndef _SAMSUNG_RIL_SOCKET_H_
24 #define _SAMSUNG_RIL_SOCKET_H_
26 #define SRS_COMMAND(f) ((f->group << 8) | f->index)
27 #define SRS_GROUP(m) (m >> 8)
28 #define SRS_INDEX(m) (m & 0xff)
30 #define SRS_SOCKET_NAME "samsung-ril-socket"
31 #define SRS_DATA_MAX_SIZE 0x1000
33 #define SRS_CONTROL 0x01
34 #define SRS_CONTROL_PING 0x0101
37 #define SRS_SND_SET_CALL_VOLUME 0x0201
38 #define SRS_SND_SET_CALL_AUDIO_PATH 0x0202
39 #define SRS_SND_SET_CALL_CLOCK_SYNC 0x0203
41 #define SRS_CONTROL_CAFFE 0xCAFFE
47 } __attribute__((__packed__));
50 unsigned short command;
67 SRS_SND_PATH_BLUETOOTH,
68 SRS_SND_PATH_BLUETOOTH_NO_NR,
69 SRS_SND_PATH_HEADPHONE
77 struct srs_snd_call_volume {
78 enum srs_snd_type type;
80 } __attribute__((__packed__));
82 struct srs_snd_call_audio_path {
83 enum srs_snd_path path;
84 } __attribute__((__packed__));
86 struct srs_snd_call_clock_sync {
88 } __attribute__((__packed__));
90 struct srs_control_ping {
92 } __attribute__((__packed__));