aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-04-04 19:11:17 +0200
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2020-06-27 18:41:02 +0200
commit38d1700ad7b98e50b56ca3b8eb3c181ccaa1c8ae (patch)
tree578f6a1d46cb215a0fba62f00d830d8dddc8b40f
parent7be0646f97cc8e4fe5ee0430feea4f50f66ff388 (diff)
downloadhardware_replicant_libsamsung-ipc-38d1700ad7b98e50b56ca3b8eb3c181ccaa1c8ae.tar.gz
hardware_replicant_libsamsung-ipc-38d1700ad7b98e50b56ca3b8eb3c181ccaa1c8ae.tar.bz2
hardware_replicant_libsamsung-ipc-38d1700ad7b98e50b56ca3b8eb3c181ccaa1c8ae.zip
includes: snd.h: switch to Linux code style
This contains no functional changes. Signed-off-by: Denis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org> Reviewed-by: Joonas Kylmälä <joonas.kylmala@iki.fi>
-rw-r--r--include/snd.h54
1 files changed, 26 insertions, 28 deletions
diff --git a/include/snd.h b/include/snd.h
index dfa1993..5bedc1b 100644
--- a/include/snd.h
+++ b/include/snd.h
@@ -26,54 +26,52 @@
* Commands
*/
-#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_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_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
+#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_data {
- unsigned char type; // IPC_SND_VOLUME_TYPE
- unsigned char volume;
+ unsigned char type; /* IPC_SND_VOLUME_TYPE */
+ unsigned char volume;
} __attribute__((__packed__));
struct ipc_snd_mic_mute_ctrl_data {
- unsigned char mute;
+ unsigned char mute;
} __attribute__((__packed__));
struct ipc_snd_audio_path_ctrl_data {
- unsigned char path; // IPC_SND_AUDIO_PATH
+ unsigned char path; /* IPC_SND_AUDIO_PATH */
} __attribute__((__packed__));
struct ipc_snd_clock_ctrl_data {
- unsigned char sync;
+ unsigned char sync;
} __attribute__((__packed__));
-#endif
-
-// vim:ts=4:sw=4:expandtab
+#endif /* __SAMSUNG_IPC_SND_H__ */