aboutsummaryrefslogtreecommitdiffstats
path: root/include/snd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/snd.h')
-rw-r--r--include/snd.h68
1 files changed, 40 insertions, 28 deletions
diff --git a/include/snd.h b/include/snd.h
index 742a555..630d818 100644
--- a/include/snd.h
+++ b/include/snd.h
@@ -1,4 +1,4 @@
-/**
+/*
* This file is part of libsamsung-ipc.
*
* Copyright (C) 2011 Paul Kocialkowski <contact@oaulk.fr>
@@ -18,33 +18,45 @@
*
*/
-#ifndef __SND_H__
-#define __SND_H__
-
-struct ipc_message_info;
-
-#define IPC_SND_SPKR_VOLUME_CTRL 0x0901
-#define IPC_SND_MIC_MUTE_CTRL 0x0902
-#define IPC_SND_AUDIO_PATH_CTRL 0x0903
-#define IPC_SND_AUDIO_SOURCE_CTRL 0x0904
-#define IPC_SND_LOOPBACK_CTRL 0x0905
-#define IPC_SND_VOICE_RECORDING_CTRL 0x0906
-#define IPC_SND_VIDEO_CALL_CTRL 0x0907
-#define IPC_SND_RINGBACK_TONE_CTRL 0x0908
-#define IPC_SND_CLOCK_CTRL 0x0909
-#define IPC_SND_WB_AMR_STATUS 0x090A
-
-#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
+#include <samsung-ipc.h>
+
+#ifndef __SAMSUNG_IPC_SND_H__
+#define __SAMSUNG_IPC_SND_H__
+
+/*
+ * Types
+ */
+
+#define IPC_SND_SPKR_VOLUME_CTRL 0x0901
+#define IPC_SND_MIC_MUTE_CTRL 0x0902
+#define IPC_SND_AUDIO_PATH_CTRL 0x0903
+#define IPC_SND_AUDIO_SOURCE_CTRL 0x0904
+#define IPC_SND_LOOPBACK_CTRL 0x0905
+#define IPC_SND_VOICE_RECORDING_CTRL 0x0906
+#define IPC_SND_VIDEO_CALL_CTRL 0x0907
+#define IPC_SND_RINGBACK_TONE_CTRL 0x0908
+#define IPC_SND_CLOCK_CTRL 0x0909
+#define IPC_SND_WB_AMR_STATUS 0x090A
+
+/*
+ * Values
+ */
+
+#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
+
+/*
+ * Structures
+ */
struct ipc_snd_spkr_volume_ctrl {
unsigned char type;