ALSA: asihpi - Poison adapter_index in message. Remove unused function.
authorEliot Blennerhassett <eblennerhassett@audioscience.com>
Thu, 10 Feb 2011 04:25:55 +0000 (17:25 +1300)
committerTakashi Iwai <tiwai@suse.de>
Thu, 10 Feb 2011 17:21:05 +0000 (18:21 +0100)
Signed-off-by: Eliot Blennerhassett <eblennerhassett@audioscience.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/asihpi/hpimsginit.c

index 8e1d099ed7e49d076c528a033084783565e39ae2..42f918220ee4f457370e952ed16b396f186f2638 100644 (file)
@@ -31,21 +31,6 @@ static u16 res_size[HPI_OBJ_MAXINDEX + 1] = HPI_RESPONSE_SIZE_BY_OBJECT;
 /* Flag to enable alternate message type for SSX2 bypass. */
 static u16 gwSSX2_bypass;
 
-/** \internal
-  * Used by ASIO driver to disable SSX2 for a single process
-  * \param phSubSys Pointer to HPI subsystem handle.
-  * \param wBypass New bypass setting 0 = off, nonzero = on
-  * \return Previous bypass setting.
-  */
-u16 hpi_subsys_ssx2_bypass(const struct hpi_hsubsys *ph_subsys, u16 bypass)
-{
-       u16 old_value = gwSSX2_bypass;
-
-       gwSSX2_bypass = bypass;
-
-       return old_value;
-}
-
 /** \internal
   * initialize the HPI message structure
   */
@@ -65,7 +50,8 @@ static void hpi_init_message(struct hpi_message *phm, u16 object,
        phm->object = object;
        phm->function = function;
        phm->version = 0;
-       /* Expect adapter index to be set by caller */
+       phm->adapter_index = 0xFFFF;
+       /* Expect actual adapter index to be set by caller */
 }
 
 /** \internal