Index: /trunk/src/VBox/Devices/Audio/DevSB16.cpp
===================================================================
--- /trunk/src/VBox/Devices/Audio/DevSB16.cpp	(revision 71744)
+++ /trunk/src/VBox/Devices/Audio/DevSB16.cpp	(revision 71745)
@@ -1546,11 +1546,7 @@
 }
 
-static IO_WRITE_PROTO(mixer_write_indexb)
-{
-    RT_NOREF(pDevIns, cb);
-    PSB16STATE pThis = (PSB16STATE)opaque;
-    (void) nport;
+static int mixer_write_indexb(PSB16STATE pThis, uint32_t val)
+{
     pThis->mixer_nreg = val;
-
     return VINF_SUCCESS;
 }
@@ -1594,12 +1590,10 @@
 }
 
-static IO_WRITE_PROTO(mixer_write_datab)
-{
-    RT_NOREF(pDevIns, cb);
-    PSB16STATE  pThis = (PSB16STATE)opaque;
+
+static int mixer_write_datab(PSB16STATE pThis, uint8_t val)
+{
     bool        fUpdateMaster = false;
     bool        fUpdateStream = false;
 
-    (void) nport;
     LogFlowFunc(("mixer_write [%#x] <- %#x\n", pThis->mixer_nreg, val));
 
@@ -1728,4 +1722,5 @@
 static IO_WRITE_PROTO(mixer_write)
 {
+    RT_NOREF(pDevIns);
     PSB16STATE pThis = (PSB16STATE)opaque;
     int iport = nport - pThis->port;
@@ -1736,14 +1731,14 @@
             {
                 case 4:
-                    mixer_write_indexb (pDevIns, opaque, nport, val, 1);
+                    mixer_write_indexb(pThis, val);
                     break;
                 case 5:
-                    mixer_write_datab (pDevIns, opaque, nport, val, 1);
+                    mixer_write_datab(pThis, val);
                     break;
             }
             break;
         case 2:
-            mixer_write_indexb (pDevIns, opaque, nport, val & 0xff, 1);
-            mixer_write_datab (pDevIns, opaque, nport, (val >> 8) & 0xff, 1);
+            mixer_write_indexb(pThis, val & 0xff);
+            mixer_write_datab(pThis, (val >> 8) & 0xff);
             break;
         default:
@@ -2582,10 +2577,8 @@
         AssertMsgFailedReturn(("Error creating IRQ timer, rc=%Rrc\n", rc), rc);
 
-    rc = PDMDevHlpIOPortRegister(pDevIns, pThis->port + 0x04,  2, pThis,
-                                 mixer_write, mixer_read, NULL, NULL, "SB16");
+    rc = PDMDevHlpIOPortRegister(pDevIns, pThis->port + 0x04,  2, pThis, mixer_write, mixer_read, NULL, NULL, "SB16");
     if (RT_FAILURE(rc))
         return rc;
-    rc = PDMDevHlpIOPortRegister(pDevIns, pThis->port + 0x06, 10, pThis,
-                                 dsp_write, dsp_read, NULL, NULL, "SB16");
+    rc = PDMDevHlpIOPortRegister(pDevIns, pThis->port + 0x06, 10, pThis, dsp_write,   dsp_read,   NULL, NULL, "SB16");
     if (RT_FAILURE(rc))
         return rc;
