rk2928phonepad modem_sound :
author邱建斌 <qjb@rock-chips.com>
Thu, 25 Oct 2012 11:00:45 +0000 (19:00 +0800)
committer邱建斌 <qjb@rock-chips.com>
Thu, 25 Oct 2012 11:00:45 +0000 (19:00 +0800)
add set volume ioctl cmd

drivers/misc/modem_sound.h

index 4f03327bf11c8a95d6adec51948b2b98fd5394b7..6de17fd20c354a45cb3decb056e03ad3bb5215e1 100755 (executable)
@@ -9,7 +9,13 @@
 #define IOCTL_MODEM_SPK_PHONE                  _IO(MODEM_SOUND, 0x02) \r
 #define IOCTL_MODEM_HP_PHONE                   _IO(MODEM_SOUND, 0x03)\r
 #define IOCTL_MODEM_BT_PHONE                   _IO(MODEM_SOUND, 0x04)\r
-#define IOCTL_MODEM_STOP_PHONE                 _IO(MODEM_SOUND, 0x05) \r
+#define IOCTL_MODEM_STOP_PHONE             _IO(MODEM_SOUND, 0x05) \r
+\r
+#define IOCTL_SET_EAR_VALUME               _IO(MODEM_SOUND, 0x11) \r
+#define IOCTL_SET_SPK_VALUME               _IO(MODEM_SOUND, 0x12) \r
+#define IOCTL_SET_HP_VALUME                _IO(MODEM_SOUND, 0x13) \r
+#define IOCTL_SET_BT_VALUME                _IO(MODEM_SOUND, 0x14) \r
\r
 \r
 struct modem_sound_data {\r
        int spkctl_io;\r