Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
harmony.h File Reference

Go to the source code of this file.

Data Structures

struct  harmony_buffer
 
struct  snd_harmony
 

Macros

#define MAX_PCM_DEVICES   1
 
#define MAX_PCM_SUBSTREAMS   4
 
#define MAX_MIDI_DEVICES   0
 
#define HARMONY_SIZE   64
 
#define BUF_SIZE   PAGE_SIZE
 
#define MAX_BUFS   16
 
#define MAX_BUF_SIZE   (MAX_BUFS * BUF_SIZE)
 
#define PLAYBACK_BUFS   MAX_BUFS
 
#define RECORD_BUFS   MAX_BUFS
 
#define GRAVEYARD_BUFS   1
 
#define GRAVEYARD_BUFSZ   (GRAVEYARD_BUFS*BUF_SIZE)
 
#define SILENCE_BUFS   1
 
#define SILENCE_BUFSZ   (SILENCE_BUFS*BUF_SIZE)
 
#define HARMONY_ID   0x000
 
#define HARMONY_RESET   0x004
 
#define HARMONY_CNTL   0x008
 
#define HARMONY_GAINCTL   0x00c
 
#define HARMONY_PNXTADD   0x010
 
#define HARMONY_PCURADD   0x014
 
#define HARMONY_RNXTADD   0x018
 
#define HARMONY_RCURADD   0x01c
 
#define HARMONY_DSTATUS   0x020
 
#define HARMONY_OV   0x024
 
#define HARMONY_PIO   0x028
 
#define HARMONY_DIAG   0x03c
 
#define HARMONY_CNTL_C   0x80000000
 
#define HARMONY_CNTL_ST   0x00000020
 
#define HARMONY_CNTL_44100   0x00000015 /* HARMONY_SR_44KHZ */
 
#define HARMONY_CNTL_8000   0x00000008 /* HARMONY_SR_8KHZ */
 
#define HARMONY_DSTATUS_ID   0x00000000 /* interrupts off */
 
#define HARMONY_DSTATUS_PN   0x00000200 /* playback fill */
 
#define HARMONY_DSTATUS_RN   0x00000002 /* record fill */
 
#define HARMONY_DSTATUS_IE   0x80000000 /* interrupts on */
 
#define HARMONY_DF_16BIT_LINEAR   0x00000000
 
#define HARMONY_DF_8BIT_ULAW   0x00000001
 
#define HARMONY_DF_8BIT_ALAW   0x00000002
 
#define HARMONY_SS_MONO   0x00000000
 
#define HARMONY_SS_STEREO   0x00000001
 
#define HARMONY_GAIN_SILENCE   0x01F00FFF
 
#define HARMONY_GAIN_DEFAULT   0x01F00FFF
 
#define HARMONY_GAIN_HE_SHIFT   27 /* headphones enabled */
 
#define HARMONY_GAIN_HE_MASK   (1 << HARMONY_GAIN_HE_SHIFT)
 
#define HARMONY_GAIN_LE_SHIFT   26 /* line-out enabled */
 
#define HARMONY_GAIN_LE_MASK   (1 << HARMONY_GAIN_LE_SHIFT)
 
#define HARMONY_GAIN_SE_SHIFT   25 /* internal-speaker enabled */
 
#define HARMONY_GAIN_SE_MASK   (1 << HARMONY_GAIN_SE_SHIFT)
 
#define HARMONY_GAIN_IS_SHIFT   24 /* input select - 0 for line, 1 for mic */
 
#define HARMONY_GAIN_IS_MASK   (1 << HARMONY_GAIN_IS_SHIFT)
 
#define HARMONY_GAIN_MA   0x0f
 
#define HARMONY_GAIN_MA_SHIFT   20
 
#define HARMONY_GAIN_MA_MASK   (HARMONY_GAIN_MA << HARMONY_GAIN_MA_SHIFT)
 
#define HARMONY_GAIN_IN   0x0f
 
#define HARMONY_GAIN_LI_SHIFT   16
 
#define HARMONY_GAIN_LI_MASK   (HARMONY_GAIN_IN << HARMONY_GAIN_LI_SHIFT)
 
#define HARMONY_GAIN_RI_SHIFT   12
 
#define HARMONY_GAIN_RI_MASK   (HARMONY_GAIN_IN << HARMONY_GAIN_RI_SHIFT)
 
#define HARMONY_GAIN_OUT   0x3f
 
#define HARMONY_GAIN_LO_SHIFT   6
 
#define HARMONY_GAIN_LO_MASK   (HARMONY_GAIN_OUT << HARMONY_GAIN_LO_SHIFT)
 
#define HARMONY_GAIN_RO_SHIFT   0
 
#define HARMONY_GAIN_RO_MASK   (HARMONY_GAIN_OUT << HARMONY_GAIN_RO_SHIFT)
 
#define HARMONY_MAX_OUT   (HARMONY_GAIN_RO_MASK >> HARMONY_GAIN_RO_SHIFT)
 
#define HARMONY_MAX_IN   (HARMONY_GAIN_RI_MASK >> HARMONY_GAIN_RI_SHIFT)
 
#define HARMONY_MAX_MON   (HARMONY_GAIN_MA_MASK >> HARMONY_GAIN_MA_SHIFT)
 
#define HARMONY_SR_8KHZ   0x08
 
#define HARMONY_SR_16KHZ   0x09
 
#define HARMONY_SR_27KHZ   0x0A
 
#define HARMONY_SR_32KHZ   0x0B
 
#define HARMONY_SR_48KHZ   0x0E
 
#define HARMONY_SR_9KHZ   0x0F
 
#define HARMONY_SR_5KHZ   0x10
 
#define HARMONY_SR_11KHZ   0x11
 
#define HARMONY_SR_18KHZ   0x12
 
#define HARMONY_SR_22KHZ   0x13
 
#define HARMONY_SR_37KHZ   0x14
 
#define HARMONY_SR_44KHZ   0x15
 
#define HARMONY_SR_33KHZ   0x16
 
#define HARMONY_SR_6KHZ   0x17
 

Macro Definition Documentation

#define BUF_SIZE   PAGE_SIZE

Definition at line 63 of file harmony.h.

#define GRAVEYARD_BUFS   1

Definition at line 69 of file harmony.h.

#define GRAVEYARD_BUFSZ   (GRAVEYARD_BUFS*BUF_SIZE)

Definition at line 70 of file harmony.h.

#define HARMONY_CNTL   0x008

Definition at line 76 of file harmony.h.

#define HARMONY_CNTL_44100   0x00000015 /* HARMONY_SR_44KHZ */

Definition at line 89 of file harmony.h.

#define HARMONY_CNTL_8000   0x00000008 /* HARMONY_SR_8KHZ */

Definition at line 90 of file harmony.h.

#define HARMONY_CNTL_C   0x80000000

Definition at line 87 of file harmony.h.

#define HARMONY_CNTL_ST   0x00000020

Definition at line 88 of file harmony.h.

#define HARMONY_DF_16BIT_LINEAR   0x00000000

Definition at line 97 of file harmony.h.

#define HARMONY_DF_8BIT_ALAW   0x00000002

Definition at line 99 of file harmony.h.

#define HARMONY_DF_8BIT_ULAW   0x00000001

Definition at line 98 of file harmony.h.

#define HARMONY_DIAG   0x03c

Definition at line 85 of file harmony.h.

#define HARMONY_DSTATUS   0x020

Definition at line 82 of file harmony.h.

#define HARMONY_DSTATUS_ID   0x00000000 /* interrupts off */

Definition at line 92 of file harmony.h.

#define HARMONY_DSTATUS_IE   0x80000000 /* interrupts on */

Definition at line 95 of file harmony.h.

#define HARMONY_DSTATUS_PN   0x00000200 /* playback fill */

Definition at line 93 of file harmony.h.

#define HARMONY_DSTATUS_RN   0x00000002 /* record fill */

Definition at line 94 of file harmony.h.

#define HARMONY_GAIN_DEFAULT   0x01F00FFF

Definition at line 105 of file harmony.h.

#define HARMONY_GAIN_HE_MASK   (1 << HARMONY_GAIN_HE_SHIFT)

Definition at line 108 of file harmony.h.

#define HARMONY_GAIN_HE_SHIFT   27 /* headphones enabled */

Definition at line 107 of file harmony.h.

#define HARMONY_GAIN_IN   0x0f

Definition at line 122 of file harmony.h.

#define HARMONY_GAIN_IS_MASK   (1 << HARMONY_GAIN_IS_SHIFT)

Definition at line 114 of file harmony.h.

#define HARMONY_GAIN_IS_SHIFT   24 /* input select - 0 for line, 1 for mic */

Definition at line 113 of file harmony.h.

#define HARMONY_GAIN_LE_MASK   (1 << HARMONY_GAIN_LE_SHIFT)

Definition at line 110 of file harmony.h.

#define HARMONY_GAIN_LE_SHIFT   26 /* line-out enabled */

Definition at line 109 of file harmony.h.

#define HARMONY_GAIN_LI_MASK   (HARMONY_GAIN_IN << HARMONY_GAIN_LI_SHIFT)

Definition at line 124 of file harmony.h.

#define HARMONY_GAIN_LI_SHIFT   16

Definition at line 123 of file harmony.h.

#define HARMONY_GAIN_LO_MASK   (HARMONY_GAIN_OUT << HARMONY_GAIN_LO_SHIFT)

Definition at line 131 of file harmony.h.

#define HARMONY_GAIN_LO_SHIFT   6

Definition at line 130 of file harmony.h.

#define HARMONY_GAIN_MA   0x0f

Definition at line 117 of file harmony.h.

#define HARMONY_GAIN_MA_MASK   (HARMONY_GAIN_MA << HARMONY_GAIN_MA_SHIFT)

Definition at line 119 of file harmony.h.

#define HARMONY_GAIN_MA_SHIFT   20

Definition at line 118 of file harmony.h.

#define HARMONY_GAIN_OUT   0x3f

Definition at line 129 of file harmony.h.

#define HARMONY_GAIN_RI_MASK   (HARMONY_GAIN_IN << HARMONY_GAIN_RI_SHIFT)

Definition at line 126 of file harmony.h.

#define HARMONY_GAIN_RI_SHIFT   12

Definition at line 125 of file harmony.h.

#define HARMONY_GAIN_RO_MASK   (HARMONY_GAIN_OUT << HARMONY_GAIN_RO_SHIFT)

Definition at line 133 of file harmony.h.

#define HARMONY_GAIN_RO_SHIFT   0

Definition at line 132 of file harmony.h.

#define HARMONY_GAIN_SE_MASK   (1 << HARMONY_GAIN_SE_SHIFT)

Definition at line 112 of file harmony.h.

#define HARMONY_GAIN_SE_SHIFT   25 /* internal-speaker enabled */

Definition at line 111 of file harmony.h.

#define HARMONY_GAIN_SILENCE   0x01F00FFF

Definition at line 104 of file harmony.h.

#define HARMONY_GAINCTL   0x00c

Definition at line 77 of file harmony.h.

#define HARMONY_ID   0x000

Definition at line 74 of file harmony.h.

#define HARMONY_MAX_IN   (HARMONY_GAIN_RI_MASK >> HARMONY_GAIN_RI_SHIFT)

Definition at line 136 of file harmony.h.

#define HARMONY_MAX_MON   (HARMONY_GAIN_MA_MASK >> HARMONY_GAIN_MA_SHIFT)

Definition at line 137 of file harmony.h.

#define HARMONY_MAX_OUT   (HARMONY_GAIN_RO_MASK >> HARMONY_GAIN_RO_SHIFT)

Definition at line 135 of file harmony.h.

#define HARMONY_OV   0x024

Definition at line 83 of file harmony.h.

#define HARMONY_PCURADD   0x014

Definition at line 79 of file harmony.h.

#define HARMONY_PIO   0x028

Definition at line 84 of file harmony.h.

#define HARMONY_PNXTADD   0x010

Definition at line 78 of file harmony.h.

#define HARMONY_RCURADD   0x01c

Definition at line 81 of file harmony.h.

#define HARMONY_RESET   0x004

Definition at line 75 of file harmony.h.

#define HARMONY_RNXTADD   0x018

Definition at line 80 of file harmony.h.

#define HARMONY_SIZE   64

Definition at line 61 of file harmony.h.

#define HARMONY_SR_11KHZ   0x11

Definition at line 146 of file harmony.h.

#define HARMONY_SR_16KHZ   0x09

Definition at line 140 of file harmony.h.

#define HARMONY_SR_18KHZ   0x12

Definition at line 147 of file harmony.h.

#define HARMONY_SR_22KHZ   0x13

Definition at line 148 of file harmony.h.

#define HARMONY_SR_27KHZ   0x0A

Definition at line 141 of file harmony.h.

#define HARMONY_SR_32KHZ   0x0B

Definition at line 142 of file harmony.h.

#define HARMONY_SR_33KHZ   0x16

Definition at line 151 of file harmony.h.

#define HARMONY_SR_37KHZ   0x14

Definition at line 149 of file harmony.h.

#define HARMONY_SR_44KHZ   0x15

Definition at line 150 of file harmony.h.

#define HARMONY_SR_48KHZ   0x0E

Definition at line 143 of file harmony.h.

#define HARMONY_SR_5KHZ   0x10

Definition at line 145 of file harmony.h.

#define HARMONY_SR_6KHZ   0x17

Definition at line 152 of file harmony.h.

#define HARMONY_SR_8KHZ   0x08

Definition at line 139 of file harmony.h.

#define HARMONY_SR_9KHZ   0x0F

Definition at line 144 of file harmony.h.

#define HARMONY_SS_MONO   0x00000000

Definition at line 101 of file harmony.h.

#define HARMONY_SS_STEREO   0x00000001

Definition at line 102 of file harmony.h.

#define MAX_BUF_SIZE   (MAX_BUFS * BUF_SIZE)

Definition at line 65 of file harmony.h.

#define MAX_BUFS   16

Definition at line 64 of file harmony.h.

#define MAX_MIDI_DEVICES   0

Definition at line 59 of file harmony.h.

#define MAX_PCM_DEVICES   1

Definition at line 57 of file harmony.h.

#define MAX_PCM_SUBSTREAMS   4

Definition at line 58 of file harmony.h.

#define PLAYBACK_BUFS   MAX_BUFS

Definition at line 67 of file harmony.h.

#define RECORD_BUFS   MAX_BUFS

Definition at line 68 of file harmony.h.

#define SILENCE_BUFS   1

Definition at line 71 of file harmony.h.

#define SILENCE_BUFSZ   (SILENCE_BUFS*BUF_SIZE)

Definition at line 72 of file harmony.h.