~ubuntu-branches/ubuntu/precise/linux-ti-omap4/precise

« back to all changes in this revision

Viewing changes to sound/pci/asihpi/hpimsginit.c

  • Committer: Bazaar Package Importer
  • Author(s): Paolo Pisati
  • Date: 2011-06-29 15:23:51 UTC
  • mfrom: (26.1.1 natty-proposed)
  • Revision ID: james.westby@ubuntu.com-20110629152351-xs96tm303d95rpbk
Tags: 3.0.0-1200.2
* Rebased against 3.0.0-6.7
* BSP from TI based on 3.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
32
32
static u16 gwSSX2_bypass;
33
33
 
34
34
/** \internal
35
 
  * Used by ASIO driver to disable SSX2 for a single process
36
 
  * \param phSubSys Pointer to HPI subsystem handle.
37
 
  * \param wBypass New bypass setting 0 = off, nonzero = on
38
 
  * \return Previous bypass setting.
39
 
  */
40
 
u16 hpi_subsys_ssx2_bypass(const struct hpi_hsubsys *ph_subsys, u16 bypass)
41
 
{
42
 
        u16 old_value = gwSSX2_bypass;
43
 
 
44
 
        gwSSX2_bypass = bypass;
45
 
 
46
 
        return old_value;
47
 
}
48
 
 
49
 
/** \internal
50
35
  * initialize the HPI message structure
51
36
  */
52
37
static void hpi_init_message(struct hpi_message *phm, u16 object,
65
50
        phm->object = object;
66
51
        phm->function = function;
67
52
        phm->version = 0;
68
 
        /* Expect adapter index to be set by caller */
 
53
        phm->adapter_index = HPI_ADAPTER_INDEX_INVALID;
 
54
        /* Expect actual adapter index to be set by caller */
69
55
}
70
56
 
71
57
/** \internal