/sound/isa/sb/ |
D | sb16_main.c | 59 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) && in snd_sb16_csp_playback_prepare() 66 } else if ((csp->mode & SNDRV_SB_CSP_MODE_QSOUND) && (csp->q_enabled)) { in snd_sb16_csp_playback_prepare() 85 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_PLAYBACK_16) ? in snd_sb16_csp_playback_prepare() 107 if ((csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) && in snd_sb16_csp_capture_prepare() 123 if (csp->ops.csp_start(csp, (chip->mode & SB_MODE_CAPTURE_16) ? in snd_sb16_csp_capture_prepare() 159 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_WRITE) { in snd_sb16_csp_playback_open() 190 if (csp->mode & SNDRV_SB_CSP_MODE_DSP_READ) { in snd_sb16_csp_capture_open() 230 if (chip->mode & (channel == SNDRV_PCM_STREAM_PLAYBACK ? SB_MODE_PLAYBACK_16 : SB_MODE_CAPTURE_16)) in snd_sb16_setup_rate() 234 if (!(chip->mode & SB_RATE_LOCK)) { in snd_sb16_setup_rate() 275 dma = (chip->mode & SB_MODE_PLAYBACK_8) ? chip->dma8 : chip->dma16; in snd_sb16_playback_prepare() [all …]
|
D | sb16_csp.c | 88 static int set_mode_register(struct snd_sb *chip, unsigned char mode); 216 info.csp_mode = p->mode; in snd_sb_csp_ioctl() 364 if (p->mode == SNDRV_SB_CSP_MODE_QSOUND) { in snd_sb_csp_riff_load() 369 p->mode = 0; in snd_sb_csp_riff_load() 405 p->mode = le16_to_cpu(funcdesc_h.flags_play_rec); in snd_sb_csp_riff_load() 411 p->mode = SNDRV_SB_CSP_MODE_QSOUND; in snd_sb_csp_riff_load() 435 p->mode = 0; in snd_sb_csp_riff_load() 474 if (p->mode == SNDRV_SB_CSP_MODE_QSOUND) { in snd_sb_csp_unload() 479 p->mode = 0; in snd_sb_csp_unload() 543 static int set_mode_register(struct snd_sb *chip, unsigned char mode) in set_mode_register() argument [all …]
|
D | emu8000.c | 109 snd_emu8000_dma_chan(struct snd_emu8000 *emu, int ch, int mode) in snd_emu8000_dma_chan() argument 111 unsigned right_bit = (mode & EMU8000_RAM_RIGHT) ? 0x01000000 : 0; in snd_emu8000_dma_chan() 112 mode &= EMU8000_RAM_MODE_MASK; in snd_emu8000_dma_chan() 113 if (mode == EMU8000_RAM_CLOSE) { in snd_emu8000_dma_chan() 125 if (mode == EMU8000_RAM_WRITE) /* DMA write */ in snd_emu8000_dma_chan() 652 snd_emu8000_load_chorus_fx(struct snd_emu8000 *emu, int mode, const void __user *buf, long len) in snd_emu8000_load_chorus_fx() argument 655 if (mode < SNDRV_EMU8000_CHORUS_PREDEFINED || mode >= SNDRV_EMU8000_CHORUS_NUMBERS) { in snd_emu8000_load_chorus_fx() 656 snd_printk(KERN_WARNING "invalid chorus mode %d for uploading\n", mode); in snd_emu8000_load_chorus_fx() 661 chorus_parm[mode] = rec; in snd_emu8000_load_chorus_fx() 662 chorus_defined[mode] = 1; in snd_emu8000_load_chorus_fx() [all …]
|
/sound/drivers/mpu401/ |
D | mpu401_uart.c | 99 if (test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode) && in uart_interrupt_tx() 100 test_bit(MPU401_MODE_BIT_OUTPUT_TRIGGER, &mpu->mode)) { in uart_interrupt_tx() 113 if (test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) in _snd_mpu401_uart_interrupt() 290 if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) { in snd_mpu401_uart_input_open() 295 set_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); in snd_mpu401_uart_input_open() 312 if (! test_bit(MPU401_MODE_BIT_INPUT, &mpu->mode)) { in snd_mpu401_uart_output_open() 317 set_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); in snd_mpu401_uart_output_open() 332 clear_bit(MPU401_MODE_BIT_INPUT, &mpu->mode); in snd_mpu401_uart_input_close() 334 if (! test_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode)) in snd_mpu401_uart_input_close() 349 clear_bit(MPU401_MODE_BIT_OUTPUT, &mpu->mode); in snd_mpu401_uart_output_close() [all …]
|
/sound/core/ |
D | info.c | 308 int mode, err; in snd_info_entry_open() local 321 mode = file->f_flags & O_ACCMODE; in snd_info_entry_open() 322 if (mode == O_RDONLY || mode == O_RDWR) { in snd_info_entry_open() 329 if (mode == O_WRONLY || mode == O_RDWR) { in snd_info_entry_open() 344 if (mode == O_RDONLY || mode == O_RDWR) { in snd_info_entry_open() 354 if (mode == O_WRONLY || mode == O_RDWR) { in snd_info_entry_open() 367 if ((err = entry->c.ops->open(entry, mode, in snd_info_entry_open() 378 (mode == O_RDONLY || mode == O_RDWR)) { in snd_info_entry_open() 409 int mode; in snd_info_entry_release() local 411 mode = file->f_flags & O_ACCMODE; in snd_info_entry_release() [all …]
|
D | isadma.c | 43 unsigned short mode) in snd_dma_program() argument 50 set_dma_mode(dma, mode); in snd_dma_program() 53 if (!(mode & DMA_MODE_NO_ENABLE)) in snd_dma_program()
|
/sound/isa/wavefront/ |
D | wavefront_midi.c | 149 if ((midi->mode[midi->output_mpu] & MPU401_MODE_OUTPUT) == 0) { in snd_wavefront_midi_output_write() 165 midi->mode[midi->output_mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; in snd_wavefront_midi_output_write() 196 if ((midi->mode[mpu] & MPU401_MODE_OUTPUT) == 0) { in snd_wavefront_midi_output_write() 220 midi->mode[mpu] &= ~MPU401_MODE_OUTPUT_TRIGGER; in snd_wavefront_midi_output_write() 249 midi->mode[mpu] |= MPU401_MODE_INPUT; in snd_wavefront_midi_input_open() 273 midi->mode[mpu] |= MPU401_MODE_OUTPUT; in snd_wavefront_midi_output_open() 297 midi->mode[mpu] &= ~MPU401_MODE_INPUT; in snd_wavefront_midi_input_close() 320 midi->mode[mpu] &= ~MPU401_MODE_OUTPUT; in snd_wavefront_midi_output_close() 345 midi->mode[mpu] |= MPU401_MODE_INPUT_TRIGGER; in snd_wavefront_midi_input_trigger() 347 midi->mode[mpu] &= ~MPU401_MODE_INPUT_TRIGGER; in snd_wavefront_midi_input_trigger() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_device.h | 147 #define is_read_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_READ) argument 148 #define is_write_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_WRITE) argument 149 #define is_nonblock_mode(mode) ((mode) & SNDRV_SEQ_OSS_FILE_NONBLOCK) argument
|
/sound/pci/echoaudio/ |
D | echoaudio_3g.c | 100 static int set_digital_mode(struct echoaudio *chip, u8 mode) in set_digital_mode() argument 109 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) in set_digital_mode() 113 err = dsp_set_digital_mode(chip, mode); in set_digital_mode() 118 if (err >= 0 && previous_mode != mode && in set_digital_mode() 119 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) { in set_digital_mode() 379 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode() argument 386 switch (mode) { in dsp_set_digital_mode() 397 DE_ACT(("Digital mode not supported: %d\n", mode)); in dsp_set_digital_mode() 413 switch (mode) { in dsp_set_digital_mode() 430 chip->digital_mode = mode; in dsp_set_digital_mode()
|
D | echoaudio_gml.c | 106 static int set_digital_mode(struct echoaudio *chip, u8 mode) in set_digital_mode() argument 118 if (snd_BUG_ON(!(chip->digital_modes & (1 << mode)))) in set_digital_mode() 122 err = dsp_set_digital_mode(chip, mode); in set_digital_mode() 127 if (err >= 0 && previous_mode != mode && in set_digital_mode() 128 (previous_mode == DIGITAL_MODE_ADAT || mode == DIGITAL_MODE_ADAT)) { in set_digital_mode()
|
D | layla24_dsp.c | 34 static int set_digital_mode(struct echoaudio *chip, u8 mode); 334 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode() argument 342 switch (mode) { in dsp_set_digital_mode() 355 DE_ACT(("Digital mode not supported: %d\n", mode)); in dsp_set_digital_mode() 376 switch (mode) { in dsp_set_digital_mode() 393 chip->digital_mode = mode; in dsp_set_digital_mode() 395 DE_ACT(("set_digital_mode to %d\n", mode)); in dsp_set_digital_mode()
|
D | gina24_dsp.c | 35 static int set_digital_mode(struct echoaudio *chip, u8 mode); 288 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode() argument 295 switch (mode) { in dsp_set_digital_mode() 307 DE_ACT(("Digital mode not supported: %d\n", mode)); in dsp_set_digital_mode() 323 switch (mode) { in dsp_set_digital_mode() 345 chip->digital_mode = mode; in dsp_set_digital_mode()
|
D | mona_dsp.c | 35 static int set_digital_mode(struct echoaudio *chip, u8 mode); 369 static int dsp_set_digital_mode(struct echoaudio *chip, u8 mode) in dsp_set_digital_mode() argument 376 switch (mode) { in dsp_set_digital_mode() 387 DE_ACT(("Digital mode not supported: %d\n", mode)); in dsp_set_digital_mode() 403 switch (mode) { in dsp_set_digital_mode() 426 chip->digital_mode = mode; in dsp_set_digital_mode() 428 DE_ACT(("set_digital_mode to %d\n", mode)); in dsp_set_digital_mode()
|
/sound/synth/emux/ |
D | emux_effect.c | 138 effect_get_offset(struct snd_midi_channel *chan, int lo, int hi, int mode) in effect_get_offset() argument 148 if (!(mode & SNDRV_SFNT_SAMPLE_8BITS)) in effect_get_offset() 159 int mode; in snd_emux_send_effect_oss() local 162 mode = EMUX_FX_FLAG_OFF; in snd_emux_send_effect_oss() 164 mode = EMUX_FX_FLAG_ADD; in snd_emux_send_effect_oss() 166 mode = EMUX_FX_FLAG_SET; in snd_emux_send_effect_oss() 169 snd_emux_send_effect(port, chan, type, val, mode); in snd_emux_send_effect_oss() 178 int type, int val, int mode) in snd_emux_send_effect() argument 195 fx->flag[type] = mode; in snd_emux_send_effect()
|
D | emux_hwdep.c | 86 if (info.mode < 0 || info.mode >= EMUX_MD_END) in snd_emux_hwdep_misc_mode() 91 emu->portptrs[i]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode() 94 emu->portptrs[info.port]->ctrls[info.mode] = info.value; in snd_emux_hwdep_misc_mode()
|
/sound/soc/codecs/ |
D | twl4030.c | 156 u8 mode; in twl4030_clear_codecpdz() local 158 mode = twl4030_read_reg_cache(codec, TWL4030_REG_CODEC_MODE); in twl4030_clear_codecpdz() 160 mode & ~TWL4030_CODECPDZ); in twl4030_clear_codecpdz() 169 u8 mode; in twl4030_set_codecpdz() local 171 mode = twl4030_read_reg_cache(codec, TWL4030_REG_CODEC_MODE); in twl4030_set_codecpdz() 173 mode | TWL4030_CODECPDZ); in twl4030_set_codecpdz() 998 u8 mode, old_mode, format, old_format; in twl4030_hw_params() local 1004 mode = old_mode & ~TWL4030_APLL_RATE; in twl4030_hw_params() 1008 mode |= TWL4030_APLL_RATE_8000; in twl4030_hw_params() 1011 mode |= TWL4030_APLL_RATE_11025; in twl4030_hw_params() [all …]
|
/sound/oss/ |
D | pas2_midi.c | 35 static int pas_midi_open(int dev, int mode, in pas_midi_open() argument 69 if (mode == OPEN_READ || mode == OPEN_READWRITE) in pas_midi_open() 74 if (mode == OPEN_WRITE || mode == OPEN_READWRITE) in pas_midi_open()
|
D | sequencer.c | 216 int mode = translate_mode(file); in sequencer_write() local 222 if (mode == OPEN_READ) in sequencer_write() 288 int mode; in sequencer_write() local 296 mode = translate_mode(file); in sequencer_write() 298 if ((err = midi_devs[dev]->open(dev, mode, in sequencer_write() 946 int retval, mode, i; in sequencer_open() local 955 mode = translate_mode(file); in sequencer_open() 970 if (mode == OPEN_READ) in sequencer_open() 1044 if ((tmp = synth_devs[i]->open(i, mode)) < 0) in sequencer_open() 1063 if (seq_mode == SEQ_1 && (mode == OPEN_READ || mode == OPEN_READWRITE)) in sequencer_open() [all …]
|
D | midibuf.c | 157 int mode, err; in MIDIbuf_open() local 160 mode = translate_mode(file); in MIDIbuf_open() 175 if ((err = midi_devs[dev]->open(dev, mode, in MIDIbuf_open() 216 int mode; in MIDIbuf_release() local 219 mode = translate_mode(file); in MIDIbuf_release() 228 if (mode != OPEN_READ) in MIDIbuf_release()
|
D | ac97_codec.c | 83 static int crystal_digital_control(struct ac97_codec *codec, int slots, int rate, int mode); 85 static int cmedia_digital_control(struct ac97_codec *codec, int slots, int rate, int mode); 86 static int generic_digital_control(struct ac97_codec *codec, int slots, int rate, int mode); 1068 static int generic_digital_control(struct ac97_codec *codec, int slots, int rate, int mode) in generic_digital_control() argument 1096 reg |= (mode & AUDIO_CCMASK) << 6; in generic_digital_control() 1098 if(mode & AUDIO_DIGITAL) in generic_digital_control() 1100 if(mode & AUDIO_PRO) in generic_digital_control() 1102 if(mode & AUDIO_DRS) in generic_digital_control() 1125 static int crystal_digital_control(struct ac97_codec *codec, int slots, int rate, int mode) in crystal_digital_control() argument 1129 if(mode & AUDIO_DIGITAL) in crystal_digital_control() [all …]
|
D | dev_table.h | 168 int (*open) (int dev, int mode); 265 int (*open) (int dev, int mode); 278 void (*volume_method) (int dev, int mode); 315 int (*open) (int dev, int mode, 347 int (*open)(int dev, int mode);
|
/sound/drivers/ |
D | mtpav.c | 134 u8 mode; member 359 portp->mode |= MTPAV_MODE_INPUT_OPENED; in snd_mtpav_input_open() 377 portp->mode &= ~MTPAV_MODE_INPUT_OPENED; in snd_mtpav_input_close() 396 portp->mode |= MTPAV_MODE_INPUT_TRIGGERED; in snd_mtpav_input_trigger() 398 portp->mode &= ~MTPAV_MODE_INPUT_TRIGGERED; in snd_mtpav_input_trigger() 421 if ((portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED) && portp->output) in snd_mtpav_output_timer() 450 portp->mode |= MTPAV_MODE_OUTPUT_OPENED; in snd_mtpav_output_open() 466 portp->mode &= ~MTPAV_MODE_OUTPUT_OPENED; in snd_mtpav_output_close() 483 if (! (portp->mode & MTPAV_MODE_OUTPUT_TRIGGERED)) { in snd_mtpav_output_trigger() 486 portp->mode |= MTPAV_MODE_OUTPUT_TRIGGERED; in snd_mtpav_output_trigger() [all …]
|
/sound/pci/emu10k1/ |
D | emuproc.c | 594 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init() 599 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init() 604 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init() 609 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init() 614 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init() 619 entry->mode |= S_IWUSR; in snd_emu10k1_proc_init() 641 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init() 648 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init() 655 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init() 662 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; in snd_emu10k1_proc_init() [all …]
|
/sound/soc/blackfin/ |
D | Kconfig | 7 mode (supports single stereo In/Out). 41 mode (pseudo AC97 interface). 45 AC97 codecs which do not implment the slot-16 mode will not function 54 Say y if you want AC97 driver to support mmap mode. 63 this mode will consume much more memory for DMA.
|
/sound/pci/au88x0/ |
D | au88x0_mpu401.c | 47 int temp, mode; in snd_vortex_midi() local 67 mode = 1; in snd_vortex_midi() 69 temp |= (MIDI_CLOCK_DIV << 8) | ((mode >> 24) & 0xff) << 4; in snd_vortex_midi()
|