/linux-2.6.39/sound/oss/ |
D | sb_audio.c | 36 sb_devc *devc = audio_devs[dev]->devc; in sb_audio_open() local 39 if (devc == NULL) in sb_audio_open() 44 if (devc->caps & SB_NO_RECORDING && mode & OPEN_READ) in sb_audio_open() 49 spin_lock_irqsave(&devc->lock, flags); in sb_audio_open() 50 if (devc->opened) in sb_audio_open() 52 spin_unlock_irqrestore(&devc->lock, flags); in sb_audio_open() 55 if (devc->dma16 != -1 && devc->dma16 != devc->dma8 && !devc->duplex) in sb_audio_open() 57 if (sound_open_dma(devc->dma16, "Sound Blaster 16 bit")) in sb_audio_open() 59 spin_unlock_irqrestore(&devc->lock, flags); in sb_audio_open() 63 devc->opened = mode; in sb_audio_open() [all …]
|
D | sb_common.c | 86 int sb_dsp_command(sb_devc * devc, unsigned char val) in sb_dsp_command() argument 113 int sb_dsp_get_byte(sb_devc * devc) in sb_dsp_get_byte() argument 125 static void sb_intr (sb_devc *devc) in sb_intr() argument 130 if (devc->model == MDL_SB16) in sb_intr() 132 src = sb_getmixer(devc, IRQ_STAT); /* Interrupt source register */ in sb_intr() 135 if(devc->midi_irq_cookie) in sb_intr() 136 uart401intr(devc->irq, devc->midi_irq_cookie); in sb_intr() 141 if (devc->intr_active && (!devc->fullduplex || (src & 0x01))) in sb_intr() 143 switch (devc->irq_mode) in sb_intr() 146 DMAbuf_outputintr(devc->dev, 1); in sb_intr() [all …]
|
D | uart401.c | 47 #define DATAPORT (devc->base) 48 #define COMDPORT (devc->base+1) 49 #define STATPORT (devc->base+1) 51 static int uart401_status(uart401_devc * devc) in uart401_status() argument 56 #define input_avail(devc) (!(uart401_status(devc)&INPUT_AVAIL)) argument 57 #define output_ready(devc) (!(uart401_status(devc)&OUTPUT_READY)) argument 59 static void uart401_cmd(uart401_devc * devc, unsigned char cmd) in uart401_cmd() argument 64 static int uart401_read(uart401_devc * devc) in uart401_read() argument 69 static void uart401_write(uart401_devc * devc, unsigned char byte) in uart401_write() argument 80 static int reset_uart401(uart401_devc * devc); [all …]
|
D | sb_ess.c | 217 static void ess_show_mixerregs (sb_devc *devc); 219 static int ess_read (sb_devc * devc, unsigned char reg); 220 static int ess_write (sb_devc * devc, unsigned char reg, unsigned char data); 222 (sb_devc * devc, unsigned int reg, unsigned int mask, unsigned int val); 264 (sb_devc *devc, struct ess_command *cmdtab[]) in ess_exec_commands() argument 268 cmd = cmdtab [ ((devc->channels != 1) << 1) + (devc->bits != AFMT_U8) ]; in ess_exec_commands() 271 ess_write (devc, cmd->cmd, cmd->data); in ess_exec_commands() 277 (sb_devc *devc, unsigned int reg, unsigned int mask, unsigned int val) in ess_change() argument 281 value = ess_read (devc, reg); in ess_change() 283 ess_write (devc, reg, value); in ess_change() [all …]
|
D | ad1848.c | 206 static int ad_read(ad1848_info * devc, int reg) in ad_read() argument 211 while (timeout > 0 && inb(devc->base) == 0x80) /*Are we initializing */ in ad_read() 216 outb(((unsigned char) (reg & 0xff) | devc->MCE_bit), io_Index_Addr(devc)); in ad_read() 217 x = inb(io_Indexed_Data(devc)); in ad_read() 225 outb(((unsigned char) (23 & 0xff) | devc->MCE_bit), io_Index_Addr(devc)); in ad_read() 226 outb(((unsigned char) (xra & 0xff)), io_Indexed_Data(devc)); in ad_read() 227 x = inb(io_Indexed_Data(devc)); in ad_read() 233 static void ad_write(ad1848_info * devc, int reg, int data) in ad_write() argument 237 while (timeout > 0 && inb(devc->base) == 0x80) /* Are we initializing */ in ad_write() 242 outb(((unsigned char) (reg & 0xff) | devc->MCE_bit), io_Index_Addr(devc)); in ad_write() [all …]
|
D | sb_mixer.c | 222 static void sb_mixer_reset(sb_devc * devc); 224 void sb_mixer_set_stereo(sb_devc * devc, int mode) in sb_mixer_set_stereo() argument 226 sb_chgmixer(devc, OUT_FILTER, STEREO_DAC, (mode ? STEREO_DAC : MONO_DAC)); in sb_mixer_set_stereo() 229 static int detect_mixer(sb_devc * devc) in detect_mixer() argument 235 static void change_bits(sb_devc * devc, unsigned char *regval, int dev, int chn, int newval) in change_bits() argument 240 mask = (1 << (*devc->iomap)[dev][chn].nbits) - 1; in change_bits() 243 shift = (*devc->iomap)[dev][chn].bitoffs - (*devc->iomap)[dev][LEFT_CHN].nbits + 1; in change_bits() 249 static int sb_mixer_get(sb_devc * devc, int dev) in sb_mixer_get() argument 251 if (!((1 << dev) & devc->supported_devices)) in sb_mixer_get() 253 return devc->levels[dev]; in sb_mixer_get() [all …]
|
D | waveartist.c | 155 static void vnc_configure_mixer(wavnc_info *devc, unsigned int input_mask); 173 waveartist_iack(wavnc_info *devc) in waveartist_iack() argument 175 unsigned int ctlr_port = devc->hw.io_base + CTLR; in waveartist_iack() 192 waveartist_reset(wavnc_info *devc) in waveartist_reset() argument 194 struct address_info *hw = &devc->hw; in waveartist_reset() 227 waveartist_cmd(wavnc_info *devc, in waveartist_cmd() argument 231 unsigned int io_base = devc->hw.io_base; in waveartist_cmd() 303 waveartist_cmd1(wavnc_info *devc, unsigned int cmd) in waveartist_cmd1() argument 305 return waveartist_cmd(devc, 1, &cmd, 0, NULL); in waveartist_cmd1() 312 waveartist_cmd1_r(wavnc_info *devc, unsigned int cmd) in waveartist_cmd1_r() argument [all …]
|
D | mpu401.c | 84 static inline int mpu401_status(struct mpu_config *devc) in mpu401_status() argument 86 return inb(STATPORT(devc->base)); in mpu401_status() 89 #define input_avail(devc) (!(mpu401_status(devc)&INPUT_AVAIL)) argument 90 #define output_ready(devc) (!(mpu401_status(devc)&OUTPUT_READY)) argument 92 static inline void write_command(struct mpu_config *devc, unsigned char cmd) in write_command() argument 94 outb(cmd, COMDPORT(devc->base)); in write_command() 97 static inline int read_data(struct mpu_config *devc) in read_data() argument 99 return inb(DATAPORT(devc->base)); in read_data() 102 static inline void write_data(struct mpu_config *devc, unsigned char byte) in write_data() argument 104 outb(byte, DATAPORT(devc->base)); in write_data() [all …]
|
D | sb_midi.c | 36 sb_devc *devc = midi_devs[dev]->devc; in sb_midi_open() local 39 if (devc == NULL) in sb_midi_open() 42 spin_lock_irqsave(&devc->lock, flags); in sb_midi_open() 43 if (devc->opened) in sb_midi_open() 45 spin_unlock_irqrestore(&devc->lock, flags); in sb_midi_open() 48 devc->opened = 1; in sb_midi_open() 49 spin_unlock_irqrestore(&devc->lock, flags); in sb_midi_open() 51 devc->irq_mode = IMODE_MIDI; in sb_midi_open() 52 devc->midi_broken = 0; in sb_midi_open() 54 sb_dsp_reset(devc); in sb_midi_open() [all …]
|
D | opl3.c | 78 static struct opl_devinfo *devc = NULL; variable 94 devc->cmask = 0x3f; /* Connect all possible 4 OP voice operators */ in enter_4op_mode() 95 opl3_command(devc->right_io, CONNECTION_SELECT_REGISTER, 0x3f); in enter_4op_mode() 108 devc->lv_map[i] = v4op[i]; in enter_4op_mode() 109 devc->v_alloc->max_voice = devc->nr_voice = 12; in enter_4op_mode() 128 devc->fm_info.nr_voices = (devc->nr_voice == 12) ? 6 : devc->nr_voice; in opl3_ioctl() 129 if (copy_to_user(arg, &devc->fm_info, sizeof(devc->fm_info))) in opl3_ioctl() 137 if (devc->model == 2) in opl3_ioctl() 162 if (devc != NULL) in opl3_detect() 168 devc = kzalloc(sizeof(*devc), GFP_KERNEL); in opl3_detect() [all …]
|
D | pss.c | 73 #define REG(x) (devc->base+x) 144 static pss_confdata *devc = &pss_data; variable 153 static void pss_write(pss_confdata *devc, int data) in pss_write() argument 182 devc->base = hw_config->io_base; in probe_pss() 183 irq = devc->irq = hw_config->irq; in probe_pss() 184 dma = devc->dma = hw_config->dma; in probe_pss() 185 devc->osp = hw_config->osp; in probe_pss() 187 if (devc->base != 0x220 && devc->base != 0x240) in probe_pss() 188 if (devc->base != 0x230 && devc->base != 0x250) /* Some cards use these */ in probe_pss() 191 if (!request_region(devc->base, 0x10, "PSS mixer, SB emulation")) { in probe_pss() [all …]
|
D | sb.h | 1 #define DSP_RESET (devc->base + 0x6) 2 #define DSP_READ (devc->base + 0xA) 3 #define DSP_WRITE (devc->base + 0xC) 4 #define DSP_COMMAND (devc->base + 0xC) 5 #define DSP_STATUS (devc->base + 0xC) 6 #define DSP_DATA_AVAIL (devc->base + 0xE) 7 #define DSP_DATA_AVL16 (devc->base + 0xF) 8 #define MIXER_ADDR (devc->base + 0x4) 9 #define MIXER_DATA (devc->base + 0x5) 10 #define OPL3_LEFT (devc->base + 0x0) [all …]
|
D | v_midi.c | 48 vmidi_devc *devc = midi_devs[dev]->devc; in v_midi_open() local 51 if (devc == NULL) in v_midi_open() 54 spin_lock_irqsave(&devc->lock,flags); in v_midi_open() 55 if (devc->opened) in v_midi_open() 57 spin_unlock_irqrestore(&devc->lock,flags); in v_midi_open() 60 devc->opened = 1; in v_midi_open() 61 spin_unlock_irqrestore(&devc->lock,flags); in v_midi_open() 63 devc->intr_active = 1; in v_midi_open() 67 devc->input_opened = 1; in v_midi_open() 68 devc->midi_input_intr = input; in v_midi_open() [all …]
|
D | sb_ess.h | 6 (sb_devc *devc); 8 (sb_devc *devc, struct address_info *hw_config); 11 (sb_devc *devc, int *audio_flags, int *format_mask); 13 (sb_devc *devc, struct address_info *hw_config); 15 (sb_devc *devc); 18 (sb_devc *devc, struct address_info *hw_config); 20 (sb_devc *devc); 23 (sb_devc *devc, unsigned int port, unsigned int value); 25 (sb_devc *devc, unsigned int port); 27 (sb_devc *devc, int dev, int left, int right); [all …]
|
D | vwsnd.c | 1641 static int pcm_setup(vwsnd_dev_t *devc, in pcm_setup() argument 1649 DBGEV("(devc=0x%p, rport=0x%p, wport=0x%p)\n", devc, rport, wport); in pcm_setup() 1768 &devc->lith, in pcm_setup() 1774 ad1843_setup_adc(&devc->lith, in pcm_setup() 1778 li_enable_interrupts(&devc->lith, READ_INTR_MASK); in pcm_setup() 1796 &devc->lith, in pcm_setup() 1802 ad1843_setup_dac(&devc->lith, in pcm_setup() 1806 li_enable_interrupts(&devc->lith, WRITE_INTR_MASK); in pcm_setup() 1817 static void pcm_shutdown_port(vwsnd_dev_t *devc, in pcm_shutdown_port() argument 1840 li_disable_interrupts(&devc->lith, mask); in pcm_shutdown_port() [all …]
|
D | dev_table.h | 157 int (*open) (void *devc, int sub_device); 158 void (*close) (void *devc, int sub_device); 159 int (*ioctl) (void *devc, unsigned int cmd, void __user * arg, int local); 160 void (*reset) (void *devc); 162 void *devc; /* Driver specific info */ member 209 void *devc; /* Driver specific info */ member 252 void *devc; member 329 void *devc; member 376 void *devc, int dma1, int dma2); 378 int driver_size, void *devc);
|
D | dev_table.c | 53 void *devc, int dma1, int dma2) in sound_install_audiodrv() argument 96 op->devc = devc; in sound_install_audiodrv() 111 int driver_size, void *devc) in sound_install_mixer() argument 142 op->devc = devc; in sound_install_mixer()
|
D | audio.c | 102 if ((ret = coprocessor->open(coprocessor->devc, COPR_PCM)) < 0) { in audio_open() 203 coprocessor->close(coprocessor->devc, COPR_PCM); in audio_release() 379 return audio_devs[dev]->coproc->ioctl(audio_devs[dev]->coproc->devc, cmd, arg, 0); in audio_ioctl()
|
D | midibuf.c | 372 return midi_devs[dev]->coproc->ioctl(midi_devs[dev]->coproc->devc, cmd, arg, 0); in MIDIbuf_ioctl()
|
/linux-2.6.39/sound/isa/ |
D | es18xx.c | 138 struct pnp_dev *devc; member 2084 chip->devc = pnp_request_card_device(card, id->devs[1].id, NULL); in snd_audiodrive_pnpc() 2085 if (chip->devc == NULL) in snd_audiodrive_pnpc() 2089 if (pnp_activate_dev(chip->devc) < 0) { in snd_audiodrive_pnpc() 2094 (unsigned long long)pnp_port_start(chip->devc, 0)); in snd_audiodrive_pnpc()
|