aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorPaulK <contact@paulk.fr>2011-12-10 23:16:57 +0100
committerPaulK <contact@paulk.fr>2011-12-10 23:16:57 +0100
commit00de0ea41d609aa883bb26e574ded1b22baacffb (patch)
tree1715a78de0c8e94d974886f34554aee4671765e5 /include
parenta874a1e9f5fc38df67d019380a90ddf207c5c3e7 (diff)
downloadexternal_libsamsung-ipc-00de0ea41d609aa883bb26e574ded1b22baacffb.zip
external_libsamsung-ipc-00de0ea41d609aa883bb26e574ded1b22baacffb.tar.gz
external_libsamsung-ipc-00de0ea41d609aa883bb26e574ded1b22baacffb.tar.bz2
Added SND defines and structures
Diffstat (limited to 'include')
-rw-r--r--include/snd.h51
-rw-r--r--include/types.h9
2 files changed, 52 insertions, 8 deletions
diff --git a/include/snd.h b/include/snd.h
new file mode 100644
index 0000000..ee3f446
--- /dev/null
+++ b/include/snd.h
@@ -0,0 +1,51 @@
+/**
+ * This file is part of libsamsung-ipc.
+ *
+ * Copyright (C) 2011 Paul Kocialkowski <contact@oaulk.fr>
+ *
+ * libsamsung-ipc is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation, either version 3 of the License, or
+ * (at your option) any later version.
+ *
+ * libsamsung-ipc is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with libsamsung-ipc. If not, see <http://www.gnu.org/licenses/>.
+ *
+ */
+
+#ifndef __SND_H__
+#define __SND_H__
+
+struct ipc_message_info;
+
+#define IPC_SND_SPKR_VOLUME_CTRL 0x9001
+#define IPC_SND_MIC_MUTE_CTRL 0x0902
+#define IPC_SND_AUDIO_PATH_CTRL 0x0903
+#define IPC_SND_RINGBACK_TONE_CTRL 0x0908
+#define IPC_SND_CLOCK_CTRL 0x0909
+
+#define IPC_SND_VOLUME_TYPE_VOICE 0x01
+#define IPC_SND_VOLUME_TYPE_SPEAKER 0x11
+#define IPC_SND_VOLUME_TYPE_HEADSET 0x31
+#define IPC_SND_VOLUME_TYPE_BTVOICE 0x41
+
+#define IPC_SND_AUDIO_PATH_HANDSET 0x01
+#define IPC_SND_AUDIO_PATH_HEADSET 0x02
+#define IPC_SND_AUDIO_PATH_SPEAKER 0x06
+#define IPC_SND_AUDIO_PATH_BLUETOOTH 0x04
+#define IPC_SND_AUDIO_PATH_BLUETOOTH_NO_NR 0x08
+#define IPC_SND_AUDIO_PATH_HEADPHONE 0x07
+
+struct ipc_snd_spkr_volume_ctrl {
+ unsigned char type;
+ unsigned char volume;
+} __attribute__((__packed__));
+
+#endif
+
+// vim:ts=4:sw=4:expandtab
diff --git a/include/types.h b/include/types.h
index cb79374..0505820 100644
--- a/include/types.h
+++ b/include/types.h
@@ -29,6 +29,7 @@
#include "sec.h"
#include "sms.h"
#include "pwr.h"
+#include "snd.h"
#include "gprs.h"
/* AP -> Baseband */
@@ -70,14 +71,6 @@
#define IPC_PB_ENTRY_INFO 0x0604
#define IPC_PB_CAPABILITY_INFO 0x0605
-/* SND */
-
-#define IPC_SND_SPKR_VOLUME_CTRL 0x9001
-#define IPC_SND_MIC_MUTE_CTRL 0x0902
-#define IPC_SND_AUDIO_PATH_CTRL 0x0903
-#define IPC_SND_RINGBACK_TONE_CTRL 0x0908
-#define IPC_SND_CLOCK_CTRL 0x0909
-
/* SS */
#define IPC_SS_WAITING 0x0C01
#define IPC_SS_CLI 0x0C02