FreeBSD kernel sound device code
mss.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  mixer_def
 

Macros

#define MIX_ENT(name, reg_l, pol_l, pos_l, len_l, reg_r, pol_r, pos_r, len_r)    {{reg_l, pol_l, pos_l, len_l}, {reg_r, pol_r, pos_r, len_r}}
 
#define PMIX_ENT(name, reg_l, pos_l, len_l, reg_r, pos_r, len_r)    {{reg_l, 0, pos_l, len_l}, {reg_r, 0, pos_r, len_r}}
 
#define MIX_NONE(name)   MIX_ENT(name, 0,0,0,0, 0,0,0,0)
 
#define MSS_INDEX   (0 + 4)
 
#define MSS_IDXBUSY   0x80 /* readonly, set when busy */
 
#define MSS_MCE   0x40 /* the MCE bit. */
 
#define MSS_TRD   0x20 /* Transfer request disable */
 
#define MSS_IDXMASK   0x1f /* mask for indirect address */
 
#define MSS_IDATA   (1 + 4)
 
#define MSS_STATUS   (2 + 4)
 
#define IS_CUL   0x80 /* capture upper/lower */
 
#define IS_CLR   0x40 /* capture left/right */
 
#define IS_CRDY   0x20 /* capture ready for programmed i/o */
 
#define IS_SER   0x10 /* sample error (overrun/underrun) */
 
#define IS_PUL   0x08 /* playback upper/lower */
 
#define IS_PLR   0x04 /* playback left/right */
 
#define IS_PRDY   0x02 /* playback ready for programmed i/o */
 
#define IS_INT   0x01 /* int status (1 = active) */
 
#define I6_MUTE   0x80
 
#define I9_PEN   0x01 /* playback enable */
 
#define I9_CEN   0x02 /* capture enable */
 
#define BD_F_MCE_BIT   0x0001
 
#define BD_F_IRQ_OK   0x0002
 
#define BD_F_TMR_RUN   0x0004
 
#define BD_F_MSS_OFFSET   0x0008 /* offset mss writes by -4 */
 
#define BD_F_DUPLEX   0x0010
 
#define BD_F_924PNP   0x0020 /* OPTi924 is in PNP mode */
 
#define MSS_REC_DEVICES    (SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD|SOUND_MASK_IMIX)
 
#define MODE2_MIXER_DEVICES
 
#define MODE1_MIXER_DEVICES
 
#define OPTI930_MIXER_DEVICES
 
#define OPTI931_MIXER_DEVICES
 
#define OPL3SAx_POWER   0x01 /* Power Management (R/W) */
 
#define OPL3SAx_POWER_PDX   0x01 /* Set to 1 to halt oscillator */
 
#define OPL3SAx_POWER_PDN   0x02 /* Set to 1 to power down */
 
#define OPL3SAx_POWER_PSV   0x04 /* Set to 1 to power save */
 
#define OPL3SAx_POWER_ADOWN   0x20 /* Analog power (?) */
 
#define OPL3SAx_SYSTEM   0x02 /* System control (R/W) */
 
#define OPL3SAx_SYSTEM_VZE   0x01 /* I2S audio routing */
 
#define OPL3SAx_SYSTEM_IDSEL   0x03 /* SB compat version select */
 
#define OPL3SAx_SYSTEM_SBHE   0x80 /* 0 for AT bus, 1 for XT bus */
 
#define OPL3SAx_IRQCONF   0x03 /* Interrupt configuration (R/W */
 
#define OPL3SAx_IRQCONF_WSSA   0x01 /* WSS interrupts through IRQA */
 
#define OPL3SAx_IRQCONF_SBA   0x02 /* WSS interrupts through IRQA */
 
#define OPL3SAx_IRQCONF_MPUA   0x04 /* WSS interrupts through IRQA */
 
#define OPL3SAx_IRQCONF_OPL3A   0x08 /* WSS interrupts through IRQA */
 
#define OPL3SAx_IRQCONF_WSSB   0x10 /* WSS interrupts through IRQB */
 
#define OPL3SAx_IRQCONF_SBB   0x20 /* WSS interrupts through IRQB */
 
#define OPL3SAx_IRQCONF_MPUB   0x40 /* WSS interrupts through IRQB */
 
#define OPL3SAx_IRQCONF_OPL3B   0x80 /* WSS interrupts through IRQB */
 
#define OPL3SAx_IRQSTATUSA   0x04 /* Interrupt (IRQ-A) Status (RO) */
 
#define OPL3SAx_IRQSTATUSB   0x05 /* Interrupt (IRQ-B) Status (RO) */
 
#define OPL3SAx_IRQSTATUS_PI   0x01 /* Playback Flag of CODEC */
 
#define OPL3SAx_IRQSTATUS_CI   0x02 /* Recording Flag of CODEC */
 
#define OPL3SAx_IRQSTATUS_TI   0x04 /* Timer Flag of CODEC */
 
#define OPL3SAx_IRQSTATUS_SB   0x08 /* SB compat Playback Interrupt Flag */
 
#define OPL3SAx_IRQSTATUS_MPU   0x10 /* MPU401 Interrupt Flag */
 
#define OPL3SAx_IRQSTATUS_OPL3   0x20 /* Internal FM Timer Flag */
 
#define OPL3SAx_IRQSTATUS_MV   0x40 /* HW Volume Interrupt Flag */
 
#define OPL3SAx_IRQSTATUS_PI   0x01 /* Playback Flag of CODEC */
 
#define OPL3SAx_IRQSTATUS_CI   0x02 /* Recording Flag of CODEC */
 
#define OPL3SAx_IRQSTATUS_TI   0x04 /* Timer Flag of CODEC */
 
#define OPL3SAx_IRQSTATUS_SB   0x08 /* SB compat Playback Interrupt Flag */
 
#define OPL3SAx_IRQSTATUS_MPU   0x10 /* MPU401 Interrupt Flag */
 
#define OPL3SAx_IRQSTATUS_OPL3   0x20 /* Internal FM Timer Flag */
 
#define OPL3SAx_IRQSTATUS_MV   0x40 /* HW Volume Interrupt Flag */
 
#define OPL3SAx_DMACONF   0x06 /* DMA configuration (R/W) */
 
#define OPL3SAx_DMACONF_WSSPA   0x01 /* WSS Playback on DMA-A */
 
#define OPL3SAx_DMACONF_WSSRA   0x02 /* WSS Recording on DMA-A */
 
#define OPL3SAx_DMACONF_SBA   0x02 /* SB Playback on DMA-A */
 
#define OPL3SAx_DMACONF_WSSPB   0x10 /* WSS Playback on DMA-A */
 
#define OPL3SAx_DMACONF_WSSRB   0x20 /* WSS Recording on DMA-A */
 
#define OPL3SAx_DMACONF_SBB   0x20 /* SB Playback on DMA-A */
 
#define OPL3SAx_VOLUMEL   0x07 /* Master Volume Left (R/W) */
 
#define OPL3SAx_VOLUMEL_MVL   0x0f /* Attenuation level */
 
#define OPL3SAx_VOLUMEL_MVLM   0x80 /* Mute */
 
#define OPL3SAx_VOLUMER   0x08 /* Master Volume Right (R/W) */
 
#define OPL3SAx_VOLUMER_MVR   0x0f /* Attenuation level */
 
#define OPL3SAx_VOLUMER_MVRM   0x80 /* Mute */
 
#define OPL3SAx_MIC   0x09 /* MIC Volume (R/W) */
 
#define OPL3SAx_VOLUMER_MCV   0x1f /* Attenuation level */
 
#define OPL3SAx_VOLUMER_MICM   0x80 /* Mute */
 
#define OPL3SAx_MISC   0x0a /* Miscellaneous */
 
#define OPL3SAx_MISC_VER   0x07 /* Version */
 
#define OPL3SAx_MISC_MODE   0x08 /* SB or WSS mode */
 
#define OPL3SAx_MISC_MCSW   0x10 /* */
 
#define OPL3SAx_MISC_VEN   0x80 /* Enable hardware volume control */
 
#define OPL3SAx_WSSDMA   0x0b /* WSS DMA Counter (RW) (4 regs) */
 
#define OPL3SAx_WSSIRQSCAN   0x0f /* WSS Interrupt Scan out/in (R/W) */
 
#define OPL3SAx_WSSIRQSCAN_SPI   0x01
 
#define OPL3SAx_WSSIRQSCAN_SCI   0x02
 
#define OPL3SAx_WSSIRQSCAN_STI   0x04
 
#define OPL3SAx_SBSTATE   0x10 /* SB compat Internal State (R/W) */
 
#define OPL3SAx_SBSTATE_SBPDR   0x01 /* SB Power Down Request */
 
#define OPL3SAx_SBSTATE_SE   0x02 /* Scan Enable */
 
#define OPL3SAx_SBSTATE_SM   0x04 /* Scan Mode */
 
#define OPL3SAx_SBSTATE_SS   0x08 /* Scan Select */
 
#define OPL3SAx_SBSTATE_SBPDA   0x80 /* SB Power Down Acknowledge */
 
#define OPL3SAx_SBDATA   0x11 /* SB compat State Scan Data (R/W) */
 
#define OPL3SAx_DIGITALPOWER   0x12 /* Digital Partial Power Down (R/W) */
 
#define OPL3SAx_DIGITALPOWER_PnP   0x01
 
#define OPL3SAx_DIGITALPOWER_SB   0x02
 
#define OPL3SAx_DIGITALPOWER_WSSP   0x04
 
#define OPL3SAx_DIGITALPOWER_WSSR   0x08
 
#define OPL3SAx_DIGITALPOWER_FM   0x10
 
#define OPL3SAx_DIGITALPOWER_MCLK0   0x20
 
#define OPL3SAx_DIGITALPOWER_MPU   0x40
 
#define OPL3SAx_DIGITALPOWER_JOY   0x80
 
#define OPL3SAx_ANALOGPOWER   0x13 /* Analog Partial Power Down (R/W) */
 
#define OPL3SAx_ANALOGPOWER_WIDE   0x01
 
#define OPL3SAx_ANALOGPOWER_SBDAC   0x02
 
#define OPL3SAx_ANALOGPOWER_DA   0x04
 
#define OPL3SAx_ANALOGPOWER_AD   0x08
 
#define OPL3SAx_ANALOGPOWER_FMDAC   0x10
 
#define OPL3SAx_WIDE   0x14 /* Enhanced control(WIDE) (R/W) */
 
#define OPL3SAx_WIDE_WIDEL   0x07 /* Wide level on Left Channel */
 
#define OPL3SAx_WIDE_WIDER   0x70 /* Wide level on Right Channel */
 
#define OPL3SAx_BASS   0x15 /* Enhanced control(BASS) (R/W) */
 
#define OPL3SAx_BASS_BASSL   0x07 /* Bass level on Left Channel */
 
#define OPL3SAx_BASS_BASSR   0x70 /* Bass level on Right Channel */
 
#define OPL3SAx_TREBLE   0x16 /* Enhanced control(TREBLE) (R/W) */
 
#define OPL3SAx_TREBLE_TREBLEL   0x07 /* Treble level on Left Channel */
 
#define OPL3SAx_TREBLE_TREBLER   0x70 /* Treble level on Right Channel */
 
#define OPL3SAx_HWVOL   0x17 /* HW Volume IRQ Configuration (R/W) */
 
#define OPL3SAx_HWVOL_IRQA   0x10 /* HW Volume IRQ on IRQ-A */
 
#define OPL3SAx_HWVOL_IRQB   0x20 /* HW Volume IRQ on IRQ-B */
 

Typedefs

typedef struct mixer_def mixer_ent
 
typedef struct mixer_def mixer_tab[32][2]
 

Variables

mixer_ent mix_devices [32][2]
 
mixer_ent opti930_devices [32][2]
 
mixer_ent opti931_devices [32][2]
 

Macro Definition Documentation

◆ BD_F_924PNP

#define BD_F_924PNP   0x0020 /* OPTi924 is in PNP mode */

Definition at line 153 of file mss.h.

◆ BD_F_DUPLEX

#define BD_F_DUPLEX   0x0010

Definition at line 152 of file mss.h.

◆ BD_F_IRQ_OK

#define BD_F_IRQ_OK   0x0002

Definition at line 149 of file mss.h.

◆ BD_F_MCE_BIT

#define BD_F_MCE_BIT   0x0001

Definition at line 148 of file mss.h.

◆ BD_F_MSS_OFFSET

#define BD_F_MSS_OFFSET   0x0008 /* offset mss writes by -4 */

Definition at line 151 of file mss.h.

◆ BD_F_TMR_RUN

#define BD_F_TMR_RUN   0x0004

Definition at line 150 of file mss.h.

◆ I6_MUTE

#define I6_MUTE   0x80

Definition at line 136 of file mss.h.

◆ I9_CEN

#define I9_CEN   0x02 /* capture enable */

Definition at line 143 of file mss.h.

◆ I9_PEN

#define I9_PEN   0x01 /* playback enable */

Definition at line 142 of file mss.h.

◆ IS_CLR

#define IS_CLR   0x40 /* capture left/right */

Definition at line 103 of file mss.h.

◆ IS_CRDY

#define IS_CRDY   0x20 /* capture ready for programmed i/o */

Definition at line 104 of file mss.h.

◆ IS_CUL

#define IS_CUL   0x80 /* capture upper/lower */

Definition at line 102 of file mss.h.

◆ IS_INT

#define IS_INT   0x01 /* int status (1 = active) */

Definition at line 109 of file mss.h.

◆ IS_PLR

#define IS_PLR   0x04 /* playback left/right */

Definition at line 107 of file mss.h.

◆ IS_PRDY

#define IS_PRDY   0x02 /* playback ready for programmed i/o */

Definition at line 108 of file mss.h.

◆ IS_PUL

#define IS_PUL   0x08 /* playback upper/lower */

Definition at line 106 of file mss.h.

◆ IS_SER

#define IS_SER   0x10 /* sample error (overrun/underrun) */

Definition at line 105 of file mss.h.

◆ MIX_ENT

#define MIX_ENT (   name,
  reg_l,
  pol_l,
  pos_l,
  len_l,
  reg_r,
  pol_r,
  pos_r,
  len_r 
)     {{reg_l, pol_l, pos_l, len_l}, {reg_r, pol_r, pos_r, len_r}}

Definition at line 61 of file mss.h.

◆ MIX_NONE

#define MIX_NONE (   name)    MIX_ENT(name, 0,0,0,0, 0,0,0,0)

Definition at line 67 of file mss.h.

◆ MODE1_MIXER_DEVICES

#define MODE1_MIXER_DEVICES
Value:
(SOUND_MASK_SYNTH | SOUND_MASK_PCM | SOUND_MASK_MIC | \
SOUND_MASK_CD | SOUND_MASK_IMIX | SOUND_MASK_IGAIN )

Definition at line 240 of file mss.h.

◆ MODE2_MIXER_DEVICES

#define MODE2_MIXER_DEVICES
Value:
(SOUND_MASK_SYNTH | SOUND_MASK_PCM | SOUND_MASK_SPEAKER | \
SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD | \
SOUND_MASK_IMIX | SOUND_MASK_IGAIN )

Definition at line 235 of file mss.h.

◆ MSS_IDATA

#define MSS_IDATA   (1 + 4)

Definition at line 92 of file mss.h.

◆ MSS_IDXBUSY

#define MSS_IDXBUSY   0x80 /* readonly, set when busy */

Definition at line 75 of file mss.h.

◆ MSS_IDXMASK

#define MSS_IDXMASK   0x1f /* mask for indirect address */

Definition at line 90 of file mss.h.

◆ MSS_INDEX

#define MSS_INDEX   (0 + 4)

Definition at line 74 of file mss.h.

◆ MSS_MCE

#define MSS_MCE   0x40 /* the MCE bit. */

Definition at line 76 of file mss.h.

◆ MSS_REC_DEVICES

#define MSS_REC_DEVICES    (SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD|SOUND_MASK_IMIX)

Definition at line 193 of file mss.h.

◆ MSS_STATUS

#define MSS_STATUS   (2 + 4)

Definition at line 100 of file mss.h.

◆ MSS_TRD

#define MSS_TRD   0x20 /* Transfer request disable */

Definition at line 84 of file mss.h.

◆ OPL3SAx_ANALOGPOWER

#define OPL3SAx_ANALOGPOWER   0x13 /* Analog Partial Power Down (R/W) */

Definition at line 390 of file mss.h.

◆ OPL3SAx_ANALOGPOWER_AD

#define OPL3SAx_ANALOGPOWER_AD   0x08

Definition at line 394 of file mss.h.

◆ OPL3SAx_ANALOGPOWER_DA

#define OPL3SAx_ANALOGPOWER_DA   0x04

Definition at line 393 of file mss.h.

◆ OPL3SAx_ANALOGPOWER_FMDAC

#define OPL3SAx_ANALOGPOWER_FMDAC   0x10

Definition at line 395 of file mss.h.

◆ OPL3SAx_ANALOGPOWER_SBDAC

#define OPL3SAx_ANALOGPOWER_SBDAC   0x02

Definition at line 392 of file mss.h.

◆ OPL3SAx_ANALOGPOWER_WIDE

#define OPL3SAx_ANALOGPOWER_WIDE   0x01

Definition at line 391 of file mss.h.

◆ OPL3SAx_BASS

#define OPL3SAx_BASS   0x15 /* Enhanced control(BASS) (R/W) */

Definition at line 401 of file mss.h.

◆ OPL3SAx_BASS_BASSL

#define OPL3SAx_BASS_BASSL   0x07 /* Bass level on Left Channel */

Definition at line 402 of file mss.h.

◆ OPL3SAx_BASS_BASSR

#define OPL3SAx_BASS_BASSR   0x70 /* Bass level on Right Channel */

Definition at line 403 of file mss.h.

◆ OPL3SAx_DIGITALPOWER

#define OPL3SAx_DIGITALPOWER   0x12 /* Digital Partial Power Down (R/W) */

Definition at line 380 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_FM

#define OPL3SAx_DIGITALPOWER_FM   0x10

Definition at line 385 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_JOY

#define OPL3SAx_DIGITALPOWER_JOY   0x80

Definition at line 388 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_MCLK0

#define OPL3SAx_DIGITALPOWER_MCLK0   0x20

Definition at line 386 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_MPU

#define OPL3SAx_DIGITALPOWER_MPU   0x40

Definition at line 387 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_PnP

#define OPL3SAx_DIGITALPOWER_PnP   0x01

Definition at line 381 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_SB

#define OPL3SAx_DIGITALPOWER_SB   0x02

Definition at line 382 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_WSSP

#define OPL3SAx_DIGITALPOWER_WSSP   0x04

Definition at line 383 of file mss.h.

◆ OPL3SAx_DIGITALPOWER_WSSR

#define OPL3SAx_DIGITALPOWER_WSSR   0x08

Definition at line 384 of file mss.h.

◆ OPL3SAx_DMACONF

#define OPL3SAx_DMACONF   0x06 /* DMA configuration (R/W) */

Definition at line 338 of file mss.h.

◆ OPL3SAx_DMACONF_SBA

#define OPL3SAx_DMACONF_SBA   0x02 /* SB Playback on DMA-A */

Definition at line 341 of file mss.h.

◆ OPL3SAx_DMACONF_SBB

#define OPL3SAx_DMACONF_SBB   0x20 /* SB Playback on DMA-A */

Definition at line 344 of file mss.h.

◆ OPL3SAx_DMACONF_WSSPA

#define OPL3SAx_DMACONF_WSSPA   0x01 /* WSS Playback on DMA-A */

Definition at line 339 of file mss.h.

◆ OPL3SAx_DMACONF_WSSPB

#define OPL3SAx_DMACONF_WSSPB   0x10 /* WSS Playback on DMA-A */

Definition at line 342 of file mss.h.

◆ OPL3SAx_DMACONF_WSSRA

#define OPL3SAx_DMACONF_WSSRA   0x02 /* WSS Recording on DMA-A */

Definition at line 340 of file mss.h.

◆ OPL3SAx_DMACONF_WSSRB

#define OPL3SAx_DMACONF_WSSRB   0x20 /* WSS Recording on DMA-A */

Definition at line 343 of file mss.h.

◆ OPL3SAx_HWVOL

#define OPL3SAx_HWVOL   0x17 /* HW Volume IRQ Configuration (R/W) */

Definition at line 409 of file mss.h.

◆ OPL3SAx_HWVOL_IRQA

#define OPL3SAx_HWVOL_IRQA   0x10 /* HW Volume IRQ on IRQ-A */

Definition at line 410 of file mss.h.

◆ OPL3SAx_HWVOL_IRQB

#define OPL3SAx_HWVOL_IRQB   0x20 /* HW Volume IRQ on IRQ-B */

Definition at line 411 of file mss.h.

◆ OPL3SAx_IRQCONF

#define OPL3SAx_IRQCONF   0x03 /* Interrupt configuration (R/W */

Definition at line 311 of file mss.h.

◆ OPL3SAx_IRQCONF_MPUA

#define OPL3SAx_IRQCONF_MPUA   0x04 /* WSS interrupts through IRQA */

Definition at line 314 of file mss.h.

◆ OPL3SAx_IRQCONF_MPUB

#define OPL3SAx_IRQCONF_MPUB   0x40 /* WSS interrupts through IRQB */

Definition at line 318 of file mss.h.

◆ OPL3SAx_IRQCONF_OPL3A

#define OPL3SAx_IRQCONF_OPL3A   0x08 /* WSS interrupts through IRQA */

Definition at line 315 of file mss.h.

◆ OPL3SAx_IRQCONF_OPL3B

#define OPL3SAx_IRQCONF_OPL3B   0x80 /* WSS interrupts through IRQB */

Definition at line 319 of file mss.h.

◆ OPL3SAx_IRQCONF_SBA

#define OPL3SAx_IRQCONF_SBA   0x02 /* WSS interrupts through IRQA */

Definition at line 313 of file mss.h.

◆ OPL3SAx_IRQCONF_SBB

#define OPL3SAx_IRQCONF_SBB   0x20 /* WSS interrupts through IRQB */

Definition at line 317 of file mss.h.

◆ OPL3SAx_IRQCONF_WSSA

#define OPL3SAx_IRQCONF_WSSA   0x01 /* WSS interrupts through IRQA */

Definition at line 312 of file mss.h.

◆ OPL3SAx_IRQCONF_WSSB

#define OPL3SAx_IRQCONF_WSSB   0x10 /* WSS interrupts through IRQB */

Definition at line 316 of file mss.h.

◆ OPL3SAx_IRQSTATUS_CI [1/2]

#define OPL3SAx_IRQSTATUS_CI   0x02 /* Recording Flag of CODEC */

Definition at line 331 of file mss.h.

◆ OPL3SAx_IRQSTATUS_CI [2/2]

#define OPL3SAx_IRQSTATUS_CI   0x02 /* Recording Flag of CODEC */

Definition at line 331 of file mss.h.

◆ OPL3SAx_IRQSTATUS_MPU [1/2]

#define OPL3SAx_IRQSTATUS_MPU   0x10 /* MPU401 Interrupt Flag */

Definition at line 334 of file mss.h.

◆ OPL3SAx_IRQSTATUS_MPU [2/2]

#define OPL3SAx_IRQSTATUS_MPU   0x10 /* MPU401 Interrupt Flag */

Definition at line 334 of file mss.h.

◆ OPL3SAx_IRQSTATUS_MV [1/2]

#define OPL3SAx_IRQSTATUS_MV   0x40 /* HW Volume Interrupt Flag */

Definition at line 336 of file mss.h.

◆ OPL3SAx_IRQSTATUS_MV [2/2]

#define OPL3SAx_IRQSTATUS_MV   0x40 /* HW Volume Interrupt Flag */

Definition at line 336 of file mss.h.

◆ OPL3SAx_IRQSTATUS_OPL3 [1/2]

#define OPL3SAx_IRQSTATUS_OPL3   0x20 /* Internal FM Timer Flag */

Definition at line 335 of file mss.h.

◆ OPL3SAx_IRQSTATUS_OPL3 [2/2]

#define OPL3SAx_IRQSTATUS_OPL3   0x20 /* Internal FM Timer Flag */

Definition at line 335 of file mss.h.

◆ OPL3SAx_IRQSTATUS_PI [1/2]

#define OPL3SAx_IRQSTATUS_PI   0x01 /* Playback Flag of CODEC */

Definition at line 330 of file mss.h.

◆ OPL3SAx_IRQSTATUS_PI [2/2]

#define OPL3SAx_IRQSTATUS_PI   0x01 /* Playback Flag of CODEC */

Definition at line 330 of file mss.h.

◆ OPL3SAx_IRQSTATUS_SB [1/2]

#define OPL3SAx_IRQSTATUS_SB   0x08 /* SB compat Playback Interrupt Flag */

Definition at line 333 of file mss.h.

◆ OPL3SAx_IRQSTATUS_SB [2/2]

#define OPL3SAx_IRQSTATUS_SB   0x08 /* SB compat Playback Interrupt Flag */

Definition at line 333 of file mss.h.

◆ OPL3SAx_IRQSTATUS_TI [1/2]

#define OPL3SAx_IRQSTATUS_TI   0x04 /* Timer Flag of CODEC */

Definition at line 332 of file mss.h.

◆ OPL3SAx_IRQSTATUS_TI [2/2]

#define OPL3SAx_IRQSTATUS_TI   0x04 /* Timer Flag of CODEC */

Definition at line 332 of file mss.h.

◆ OPL3SAx_IRQSTATUSA

#define OPL3SAx_IRQSTATUSA   0x04 /* Interrupt (IRQ-A) Status (RO) */

Definition at line 321 of file mss.h.

◆ OPL3SAx_IRQSTATUSB

#define OPL3SAx_IRQSTATUSB   0x05 /* Interrupt (IRQ-B) Status (RO) */

Definition at line 322 of file mss.h.

◆ OPL3SAx_MIC

#define OPL3SAx_MIC   0x09 /* MIC Volume (R/W) */

Definition at line 354 of file mss.h.

◆ OPL3SAx_MISC

#define OPL3SAx_MISC   0x0a /* Miscellaneous */

Definition at line 358 of file mss.h.

◆ OPL3SAx_MISC_MCSW

#define OPL3SAx_MISC_MCSW   0x10 /* */

Definition at line 361 of file mss.h.

◆ OPL3SAx_MISC_MODE

#define OPL3SAx_MISC_MODE   0x08 /* SB or WSS mode */

Definition at line 360 of file mss.h.

◆ OPL3SAx_MISC_VEN

#define OPL3SAx_MISC_VEN   0x80 /* Enable hardware volume control */

Definition at line 362 of file mss.h.

◆ OPL3SAx_MISC_VER

#define OPL3SAx_MISC_VER   0x07 /* Version */

Definition at line 359 of file mss.h.

◆ OPL3SAx_POWER

#define OPL3SAx_POWER   0x01 /* Power Management (R/W) */

Definition at line 300 of file mss.h.

◆ OPL3SAx_POWER_ADOWN

#define OPL3SAx_POWER_ADOWN   0x20 /* Analog power (?) */

Definition at line 304 of file mss.h.

◆ OPL3SAx_POWER_PDN

#define OPL3SAx_POWER_PDN   0x02 /* Set to 1 to power down */

Definition at line 302 of file mss.h.

◆ OPL3SAx_POWER_PDX

#define OPL3SAx_POWER_PDX   0x01 /* Set to 1 to halt oscillator */

Definition at line 301 of file mss.h.

◆ OPL3SAx_POWER_PSV

#define OPL3SAx_POWER_PSV   0x04 /* Set to 1 to power save */

Definition at line 303 of file mss.h.

◆ OPL3SAx_SBDATA

#define OPL3SAx_SBDATA   0x11 /* SB compat State Scan Data (R/W) */

Definition at line 378 of file mss.h.

◆ OPL3SAx_SBSTATE

#define OPL3SAx_SBSTATE   0x10 /* SB compat Internal State (R/W) */

Definition at line 371 of file mss.h.

◆ OPL3SAx_SBSTATE_SBPDA

#define OPL3SAx_SBSTATE_SBPDA   0x80 /* SB Power Down Acknowledge */

Definition at line 376 of file mss.h.

◆ OPL3SAx_SBSTATE_SBPDR

#define OPL3SAx_SBSTATE_SBPDR   0x01 /* SB Power Down Request */

Definition at line 372 of file mss.h.

◆ OPL3SAx_SBSTATE_SE

#define OPL3SAx_SBSTATE_SE   0x02 /* Scan Enable */

Definition at line 373 of file mss.h.

◆ OPL3SAx_SBSTATE_SM

#define OPL3SAx_SBSTATE_SM   0x04 /* Scan Mode */

Definition at line 374 of file mss.h.

◆ OPL3SAx_SBSTATE_SS

#define OPL3SAx_SBSTATE_SS   0x08 /* Scan Select */

Definition at line 375 of file mss.h.

◆ OPL3SAx_SYSTEM

#define OPL3SAx_SYSTEM   0x02 /* System control (R/W) */

Definition at line 306 of file mss.h.

◆ OPL3SAx_SYSTEM_IDSEL

#define OPL3SAx_SYSTEM_IDSEL   0x03 /* SB compat version select */

Definition at line 308 of file mss.h.

◆ OPL3SAx_SYSTEM_SBHE

#define OPL3SAx_SYSTEM_SBHE   0x80 /* 0 for AT bus, 1 for XT bus */

Definition at line 309 of file mss.h.

◆ OPL3SAx_SYSTEM_VZE

#define OPL3SAx_SYSTEM_VZE   0x01 /* I2S audio routing */

Definition at line 307 of file mss.h.

◆ OPL3SAx_TREBLE

#define OPL3SAx_TREBLE   0x16 /* Enhanced control(TREBLE) (R/W) */

Definition at line 405 of file mss.h.

◆ OPL3SAx_TREBLE_TREBLEL

#define OPL3SAx_TREBLE_TREBLEL   0x07 /* Treble level on Left Channel */

Definition at line 406 of file mss.h.

◆ OPL3SAx_TREBLE_TREBLER

#define OPL3SAx_TREBLE_TREBLER   0x70 /* Treble level on Right Channel */

Definition at line 407 of file mss.h.

◆ OPL3SAx_VOLUMEL

#define OPL3SAx_VOLUMEL   0x07 /* Master Volume Left (R/W) */

Definition at line 346 of file mss.h.

◆ OPL3SAx_VOLUMEL_MVL

#define OPL3SAx_VOLUMEL_MVL   0x0f /* Attenuation level */

Definition at line 347 of file mss.h.

◆ OPL3SAx_VOLUMEL_MVLM

#define OPL3SAx_VOLUMEL_MVLM   0x80 /* Mute */

Definition at line 348 of file mss.h.

◆ OPL3SAx_VOLUMER

#define OPL3SAx_VOLUMER   0x08 /* Master Volume Right (R/W) */

Definition at line 350 of file mss.h.

◆ OPL3SAx_VOLUMER_MCV

#define OPL3SAx_VOLUMER_MCV   0x1f /* Attenuation level */

Definition at line 355 of file mss.h.

◆ OPL3SAx_VOLUMER_MICM

#define OPL3SAx_VOLUMER_MICM   0x80 /* Mute */

Definition at line 356 of file mss.h.

◆ OPL3SAx_VOLUMER_MVR

#define OPL3SAx_VOLUMER_MVR   0x0f /* Attenuation level */

Definition at line 351 of file mss.h.

◆ OPL3SAx_VOLUMER_MVRM

#define OPL3SAx_VOLUMER_MVRM   0x80 /* Mute */

Definition at line 352 of file mss.h.

◆ OPL3SAx_WIDE

#define OPL3SAx_WIDE   0x14 /* Enhanced control(WIDE) (R/W) */

Definition at line 397 of file mss.h.

◆ OPL3SAx_WIDE_WIDEL

#define OPL3SAx_WIDE_WIDEL   0x07 /* Wide level on Left Channel */

Definition at line 398 of file mss.h.

◆ OPL3SAx_WIDE_WIDER

#define OPL3SAx_WIDE_WIDER   0x70 /* Wide level on Right Channel */

Definition at line 399 of file mss.h.

◆ OPL3SAx_WSSDMA

#define OPL3SAx_WSSDMA   0x0b /* WSS DMA Counter (RW) (4 regs) */

Definition at line 364 of file mss.h.

◆ OPL3SAx_WSSIRQSCAN

#define OPL3SAx_WSSIRQSCAN   0x0f /* WSS Interrupt Scan out/in (R/W) */

Definition at line 366 of file mss.h.

◆ OPL3SAx_WSSIRQSCAN_SCI

#define OPL3SAx_WSSIRQSCAN_SCI   0x02

Definition at line 368 of file mss.h.

◆ OPL3SAx_WSSIRQSCAN_SPI

#define OPL3SAx_WSSIRQSCAN_SPI   0x01

Definition at line 367 of file mss.h.

◆ OPL3SAx_WSSIRQSCAN_STI

#define OPL3SAx_WSSIRQSCAN_STI   0x04

Definition at line 369 of file mss.h.

◆ OPTI930_MIXER_DEVICES

#define OPTI930_MIXER_DEVICES
Value:
(SOUND_MASK_VOLUME | SOUND_MASK_SYNTH | SOUND_MASK_PCM | \
SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD )

Definition at line 264 of file mss.h.

◆ OPTI931_MIXER_DEVICES

#define OPTI931_MIXER_DEVICES
Value:
(SOUND_MASK_VOLUME | SOUND_MASK_SYNTH | SOUND_MASK_PCM | \
SOUND_MASK_LINE | SOUND_MASK_MIC | SOUND_MASK_CD | \
SOUND_MASK_IGAIN | SOUND_MASK_LINE1 )

Definition at line 292 of file mss.h.

◆ PMIX_ENT

#define PMIX_ENT (   name,
  reg_l,
  pos_l,
  len_l,
  reg_r,
  pos_r,
  len_r 
)     {{reg_l, 0, pos_l, len_l}, {reg_r, 0, pos_r, len_r}}

Definition at line 64 of file mss.h.

Typedef Documentation

◆ mixer_ent

typedef struct mixer_def mixer_ent

Definition at line 58 of file mss.h.

◆ mixer_tab

typedef struct mixer_def mixer_tab[32][2]

Definition at line 59 of file mss.h.

Variable Documentation

◆ mix_devices

mixer_ent mix_devices[32][2]
Initial value:
= {
MIX_NONE(SOUND_MIXER_VOLUME),
MIX_NONE(SOUND_MIXER_BASS),
MIX_NONE(SOUND_MIXER_TREBLE),
MIX_ENT(SOUND_MIXER_SYNTH, 2, 1, 0, 5, 3, 1, 0, 5),
MIX_ENT(SOUND_MIXER_PCM, 6, 1, 0, 6, 7, 1, 0, 6),
MIX_ENT(SOUND_MIXER_SPEAKER, 26, 1, 0, 4, 0, 0, 0, 0),
MIX_ENT(SOUND_MIXER_LINE, 18, 1, 0, 5, 19, 1, 0, 5),
MIX_ENT(SOUND_MIXER_MIC, 0, 0, 5, 1, 1, 0, 5, 1),
MIX_ENT(SOUND_MIXER_CD, 4, 1, 0, 5, 5, 1, 0, 5),
MIX_ENT(SOUND_MIXER_IMIX, 13, 1, 2, 6, 0, 0, 0, 0),
MIX_NONE(SOUND_MIXER_ALTPCM),
MIX_NONE(SOUND_MIXER_RECLEV),
MIX_ENT(SOUND_MIXER_IGAIN, 0, 0, 0, 4, 1, 0, 0, 4),
MIX_NONE(SOUND_MIXER_OGAIN),
MIX_NONE(SOUND_MIXER_LINE1),
MIX_NONE(SOUND_MIXER_LINE2),
MIX_NONE(SOUND_MIXER_LINE3),
}
#define MIX_NONE(name)
Definition: mss.h:67
#define MIX_ENT(name, reg_l, pol_l, pos_l, len_l, reg_r, pol_r, pos_r, len_r)
Definition: mss.h:61

Definition at line 215 of file mss.h.

Referenced by mss_mixer_set().

◆ opti930_devices

mixer_ent opti930_devices[32][2]
Initial value:
= {
MIX_ENT(SOUND_MIXER_VOLUME, 22, 1, 0, 4, 23, 1, 0, 4),
MIX_NONE(SOUND_MIXER_BASS),
MIX_NONE(SOUND_MIXER_TREBLE),
MIX_ENT(SOUND_MIXER_SYNTH, 4, 1, 0, 4, 5, 1, 0, 4),
MIX_ENT(SOUND_MIXER_PCM, 6, 1, 1, 5, 7, 1, 1, 5),
MIX_ENT(SOUND_MIXER_LINE, 18, 1, 1, 4, 19, 1, 1, 4),
MIX_NONE(SOUND_MIXER_SPEAKER),
MIX_ENT(SOUND_MIXER_MIC, 21, 1, 0, 4, 22, 1, 0, 4),
MIX_ENT(SOUND_MIXER_CD, 2, 1, 1, 4, 3, 1, 1, 4),
MIX_NONE(SOUND_MIXER_IMIX),
MIX_NONE(SOUND_MIXER_ALTPCM),
MIX_NONE(SOUND_MIXER_RECLEV),
MIX_NONE(SOUND_MIXER_IGAIN),
MIX_NONE(SOUND_MIXER_OGAIN),
MIX_NONE(SOUND_MIXER_LINE1),
MIX_NONE(SOUND_MIXER_LINE2),
MIX_NONE(SOUND_MIXER_LINE3),
}

Definition at line 244 of file mss.h.

Referenced by mss_mixer_set().

◆ opti931_devices

mixer_ent opti931_devices[32][2]
Initial value:
= {
MIX_ENT(SOUND_MIXER_VOLUME, 22, 1, 1, 5, 23, 1, 1, 5),
MIX_NONE(SOUND_MIXER_BASS),
MIX_NONE(SOUND_MIXER_TREBLE),
MIX_ENT(SOUND_MIXER_SYNTH, 4, 1, 1, 4, 5, 1, 1, 4),
MIX_ENT(SOUND_MIXER_PCM, 6, 1, 0, 5, 7, 1, 0, 5),
MIX_NONE(SOUND_MIXER_SPEAKER),
MIX_ENT(SOUND_MIXER_LINE, 18, 1, 1, 4, 19, 1, 1, 4),
MIX_ENT(SOUND_MIXER_MIC, 0, 0, 5, 1, 1, 0, 5, 1),
MIX_ENT(SOUND_MIXER_CD, 2, 1, 1, 4, 3, 1, 1, 4),
MIX_NONE(SOUND_MIXER_IMIX),
MIX_NONE(SOUND_MIXER_ALTPCM),
MIX_NONE(SOUND_MIXER_RECLEV),
MIX_ENT(SOUND_MIXER_IGAIN, 0, 0, 0, 4, 1, 0, 0, 4),
MIX_NONE(SOUND_MIXER_OGAIN),
MIX_ENT(SOUND_MIXER_LINE1, 16, 1, 1, 4, 17, 1, 1, 4),
MIX_NONE(SOUND_MIXER_LINE2),
MIX_NONE(SOUND_MIXER_LINE3),
}

Definition at line 272 of file mss.h.

Referenced by mss_mixer_set().