Home
last modified time | relevance | path

Searched refs:cmd (Results 1 – 25 of 209) sorted by relevance

123456789

/sound/sparc/
Ddbri.c116 #define DBRI_CMD(cmd, intr, value) ((cmd << 28) | \ argument
267 s32 cmd[DBRI_NO_CMDS]; /* Place for commands */ member
661 if (dbri->cmdptr - dbri->dma->cmd + len < DBRI_NO_CMDS - 2) in dbri_cmdlock()
664 return dbri->dma->cmd; in dbri_cmdlock()
679 static void dbri_cmdsend(struct snd_dbri *dbri, s32 *cmd, int len) in dbri_cmdsend() argument
686 *(cmd) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend()
687 *(cmd+1) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend()
690 addr = dbri->dma_dvma + (cmd - len - dbri->dma->cmd) * sizeof(s32); in dbri_cmdsend()
695 if (cmd > dbri->cmdptr) { in dbri_cmdsend()
698 for (ptr = dbri->cmdptr; ptr < cmd+2; ptr++) in dbri_cmdsend()
[all …]
/sound/pci/pcxhr/
Dpcxhr_mixer.c60 rmh.cmd[0] |= IO_NUM_REG_IN_ANA_LEVEL; in pcxhr_update_analog_audio_level()
61 rmh.cmd[2] = chip->analog_capture_volume[channel]; in pcxhr_update_analog_audio_level()
63 rmh.cmd[0] |= IO_NUM_REG_OUT_ANA_LEVEL; in pcxhr_update_analog_audio_level()
69 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level()
71 rmh.cmd[1] = 1 << ((2 * chip->chip_idx) + channel); /* audio mask */ in pcxhr_update_analog_audio_level()
278 rmh.cmd[0] |= MORE_THAN_ONE_STREAM_LEVEL; in pcxhr_update_playback_stream_level()
279 rmh.cmd[2] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_1_MASK; in pcxhr_update_playback_stream_level()
280 rmh.cmd[2] |= (left << 10); in pcxhr_update_playback_stream_level()
281 rmh.cmd[3] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_2_MASK; in pcxhr_update_playback_stream_level()
282 rmh.cmd[3] |= right; in pcxhr_update_playback_stream_level()
[all …]
Dpcxhr.c257 rmh.cmd[0] |= IO_NUM_REG_GENCLK; in pcxhr_get_clock_reg()
258 rmh.cmd[1] = pllreg & MASK_DSP_WORD; in pcxhr_get_clock_reg()
259 rmh.cmd[2] = pllreg >> 24; in pcxhr_get_clock_reg()
318 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock()
320 rmh.cmd[1] = 1; in pcxhr_sub_set_clock()
328 rmh.cmd[0] |= IO_NUM_SPEED_RATIO; in pcxhr_sub_set_clock()
329 rmh.cmd[1] = speed; in pcxhr_sub_set_clock()
348 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock()
350 rmh.cmd[1] = 1; in pcxhr_sub_set_clock()
387 rmh.cmd[0] |= PCXHR_MODIFY_CLOCK_S_BIT; /* resync fifos */ in pcxhr_set_clock()
[all …]
Dpcxhr_hwdep.c86 rmh.cmd[0] |= mgr->firmware_num; in pcxhr_init_board()
88 rmh.cmd[1] = (1<<23) + mgr->granularity; in pcxhr_init_board()
111 rmh.cmd[0] |= IO_NUM_REG_STATUS; in pcxhr_sub_init()
112 rmh.cmd[1] = REG_STATUS_OPTIONS; in pcxhr_sub_init()
129 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_init()
131 rmh.cmd[1] = 1; /* unmute digital plugs */ in pcxhr_sub_init()
147 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_reset_board()
196 rmh.cmd[1] |= 0x020000; /* add P_PCM_ONLY_MASK */ in pcxhr_dsp_allocate_pipe()
199 rmh.cmd[rmh.cmd_len++] = (audio_count == 1) ? 0x01 : 0x03; in pcxhr_dsp_allocate_pipe()
Dpcxhr_core.c632 data = rmh->cmd[0]; in pcxhr_send_msg_nolock()
667 data = rmh->cmd[i]; in pcxhr_send_msg_nolock()
722 void pcxhr_init_rmh(struct pcxhr_rmh *rmh, int cmd) in pcxhr_init_rmh() argument
724 if (snd_BUG_ON(cmd >= CMD_LAST_INDEX)) in pcxhr_init_rmh()
726 rmh->cmd[0] = pcxhr_dsp_cmds[cmd].opcode; in pcxhr_init_rmh()
728 rmh->stat_len = pcxhr_dsp_cmds[cmd].st_length; in pcxhr_init_rmh()
729 rmh->dsp_stat = pcxhr_dsp_cmds[cmd].st_type; in pcxhr_init_rmh()
730 rmh->cmd_idx = cmd; in pcxhr_init_rmh()
740 rmh->cmd[0] |= 0x800; /* COMMAND_RECORD_MASK */ in pcxhr_set_pipe_cmd_params()
742 rmh->cmd[0] |= (param1 << FIELD_SIZE); in pcxhr_set_pipe_cmd_params()
[all …]
/sound/oss/
Dsoundcard.c310 static int sound_mixer_ioctl(int mixdev, unsigned int cmd, void __user *arg) in sound_mixer_ioctl() argument
320 if (cmd == SOUND_MIXER_INFO) in sound_mixer_ioctl()
322 if (cmd == SOUND_OLD_MIXER_INFO) in sound_mixer_ioctl()
324 if (_SIOC_DIR(cmd) & _SIOC_WRITE) in sound_mixer_ioctl()
328 return mixer_devs[mixdev]->ioctl(mixdev, cmd, arg); in sound_mixer_ioctl()
332 unsigned int cmd, unsigned long arg) in sound_ioctl() argument
338 if (_SIOC_DIR(cmd) != _SIOC_NONE && _SIOC_DIR(cmd) != 0) { in sound_ioctl()
342 len = _SIOC_SIZE(cmd); in sound_ioctl()
345 if (_SIOC_DIR(cmd) & _SIOC_WRITE) in sound_ioctl()
348 if (_SIOC_DIR(cmd) & _SIOC_READ) in sound_ioctl()
[all …]
Dpas2_mixer.c218 static int pas_mixer_ioctl(int dev, unsigned int cmd, void __user *arg) in pas_mixer_ioctl() argument
223 …tk("pas2_mixer.c: int pas_mixer_ioctl(unsigned int cmd = %X, unsigned int arg = %X)\n", cmd, arg)); in pas_mixer_ioctl()
224 if (cmd == SOUND_MIXER_PRIVATE1) { /* Set loudness bit */ in pas_mixer_ioctl()
238 if (cmd == SOUND_MIXER_PRIVATE2) { /* Set enhance bit */ in pas_mixer_ioctl()
261 if (cmd == SOUND_MIXER_PRIVATE3) { /* Set mute bit */ in pas_mixer_ioctl()
276 if (((cmd >> 8) & 0xff) == 'M') { in pas_mixer_ioctl()
279 if (_SIOC_DIR(cmd) & _SIOC_WRITE) { in pas_mixer_ioctl()
280 v = pas_mixer_set(cmd & 0xff, v); in pas_mixer_ioctl()
282 switch (cmd & 0xff) { in pas_mixer_ioctl()
304 v = levels[cmd & 0xff]; in pas_mixer_ioctl()
Dmpu401.c91 static inline void write_command(struct mpu_config *devc, unsigned char cmd) in write_command() argument
93 outb(cmd, COMDPORT(devc->base)); in write_command()
162 #define STORE(cmd) \ argument
166 cmd; \
566 static int mpu401_command(int dev, mpu_command_rec * cmd) in mpu401_command() argument
597 printk(KERN_WARNING "mpu401: Command (0x%x) timeout\n", (int) cmd->cmd); in mpu401_command()
607 write_command(devc, cmd->cmd); in mpu401_command()
632 if (cmd->nr_args) in mpu401_command()
634 for (i = 0; i < cmd->nr_args; i++) in mpu401_command()
638 if (!mpu401_out(dev, cmd->data[i])) in mpu401_command()
[all …]
Dwaveartist.c155 static int vnc_private_ioctl(int dev, unsigned int cmd, int __user *arg);
233 int nr_cmd, unsigned int *cmd, in waveartist_cmd() argument
244 printk("%04X ", cmd[i]); in waveartist_cmd()
273 outw(cmd[i], io_base + CMDR); in waveartist_cmd()
308 waveartist_cmd1(wavnc_info *devc, unsigned int cmd) in waveartist_cmd1() argument
310 return waveartist_cmd(devc, 1, &cmd, 0, NULL); in waveartist_cmd1()
317 waveartist_cmd1_r(wavnc_info *devc, unsigned int cmd) in waveartist_cmd1_r() argument
321 waveartist_cmd(devc, 1, &cmd, 1, &ret); in waveartist_cmd1_r()
331 waveartist_cmd2(wavnc_info *devc, unsigned int cmd, unsigned int arg) in waveartist_cmd2() argument
335 vals[0] = cmd; in waveartist_cmd2()
[all …]
Dsequencer.c448 #define cmd event_rec[2] in seq_chn_voice_event() macro
467 if (cmd == MIDI_NOTEON && parm == 0) in seq_chn_voice_event()
469 cmd = MIDI_NOTEOFF; in seq_chn_voice_event()
474 switch (cmd) in seq_chn_voice_event()
520 #undef cmd in seq_chn_voice_event()
530 unsigned char cmd = event_rec[2]; in seq_chn_common_event() local
544 switch (cmd) in seq_chn_common_event()
626 unsigned char cmd = event_rec[1]; in seq_timing_event() local
638 switch (cmd) in seq_timing_event()
698 unsigned char cmd = event_rec[1]; in seq_local_event() local
[all …]
Daudio.c41 static int dma_ioctl(int dev, unsigned int cmd, void __user *arg);
368 int audio_ioctl(int dev, struct file *file, unsigned int cmd, void __user *arg) in audio_ioctl() argument
377 if (_IOC_TYPE(cmd) == 'C') { in audio_ioctl()
379 return audio_devs[dev]->coproc->ioctl(audio_devs[dev]->coproc->devc, cmd, arg, 0); in audio_ioctl()
384 else switch (cmd) in audio_ioctl()
426 return dma_ioctl(dev, cmd, arg); in audio_ioctl()
433 return dma_ioctl(dev, cmd, arg); in audio_ioctl()
524 return dma_ioctl(dev, cmd, arg); in audio_ioctl()
738 static int dma_ioctl(int dev, unsigned int cmd, void __user *arg) in dma_ioctl() argument
748 switch (cmd) in dma_ioctl()
[all …]
Dpss.c502 static int call_ad_mixer(pss_confdata *devc,unsigned int cmd, void __user *arg) in call_ad_mixer() argument
505 return mixer_devs[devc->ad_mixer_dev]->ioctl(devc->ad_mixer_dev, cmd, arg); in call_ad_mixer()
510 static int pss_mixer_ioctl (int dev, unsigned int cmd, void __user *arg) in pss_mixer_ioctl() argument
513 int cmdf = cmd & 0xff; in pss_mixer_ioctl()
521 return call_ad_mixer(devc, cmd, arg); in pss_mixer_ioctl()
524 if (((cmd >> 8) & 0xff) != 'M') in pss_mixer_ioctl()
527 if (_SIOC_DIR (cmd) & _SIOC_WRITE) in pss_mixer_ioctl()
533 return call_ad_mixer(devc, cmd, arg); in pss_mixer_ioctl()
584 if (call_ad_mixer(devc, cmd, arg) == -EINVAL) in pss_mixer_ioctl()
591 if (call_ad_mixer(devc, cmd, arg) == -EINVAL) in pss_mixer_ioctl()
[all …]
Ddev_table.h159 int (*ioctl) (void *devc, unsigned int cmd, void __user * arg, int local);
174 int (*ioctl) (int dev, unsigned int cmd, void __user * arg);
250 int (*ioctl) (int dev, unsigned int cmd, void __user * arg);
267 int (*ioctl) (int dev, unsigned int cmd, void __user * arg);
320 int (*ioctl) (int dev, unsigned int cmd, void __user * arg);
351 int (*ioctl) (int dev, unsigned int cmd, void __user * arg);
Dsys_timer.c124 unsigned char cmd = event[1]; in def_tmr_event() local
127 switch (cmd) in def_tmr_event()
193 static int def_tmr_ioctl(int dev, unsigned int cmd, void __user *arg) in def_tmr_ioctl() argument
198 switch (cmd) { in def_tmr_ioctl()
/sound/core/seq/
Dseq_midi_event.c359 unsigned int cmd, type; in snd_midi_event_decode() local
376 cmd = 0xf0 + (type - ST_SPECIAL); in snd_midi_event_decode()
379 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); in snd_midi_event_decode()
382 if (cmd == MIDI_CMD_COMMON_SYSEX) { in snd_midi_event_decode()
391 if ((cmd & 0xf0) == 0xf0 || dev->lastcmd != cmd || dev->nostat) { in snd_midi_event_decode()
392 dev->lastcmd = cmd; in snd_midi_event_decode()
394 xbuf[0] = cmd; in snd_midi_event_decode()
451 unsigned char cmd; in extra_decode_ctrl14() local
454 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); in extra_decode_ctrl14()
460 if (cmd != dev->lastcmd || dev->nostat) { in extra_decode_ctrl14()
[all …]
Dseq_compat.c44 static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned int cmd, in snd_seq_call_port_info_ioctl() argument
62 err = snd_seq_do_ioctl(client, cmd, data); in snd_seq_call_port_info_ioctl()
90 static long snd_seq_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg) in snd_seq_ioctl_compat() argument
98 switch (cmd) { in snd_seq_ioctl_compat()
125 return snd_seq_do_ioctl(client, cmd, argp); in snd_seq_ioctl_compat()
/sound/synth/emux/
Demux_oss.c35 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd,
44 int cmd, unsigned char *event, int atomic, int hop);
46 int cmd, unsigned char *event, int atomic, int hop);
257 snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioarg) in snd_emux_ioctl_seq_oss() argument
272 switch (cmd) { in snd_emux_ioctl_seq_oss()
314 unsigned char cmd, *data; in snd_emux_event_oss_input() local
329 cmd = data[2] & _EMUX_OSS_MODE_VALUE_MASK; in snd_emux_event_oss_input()
331 emuspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input()
333 gusspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input()
342 emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, in emuspec_control() argument
[all …]
/sound/drivers/vx/
Dvx_cmd.c100 void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd) in vx_init_rmh() argument
102 if (snd_BUG_ON(cmd >= CMD_LAST_INDEX)) in vx_init_rmh()
104 rmh->LgCmd = vx_dsp_cmds[cmd].length; in vx_init_rmh()
105 rmh->LgStat = vx_dsp_cmds[cmd].st_length; in vx_init_rmh()
106 rmh->DspStat = vx_dsp_cmds[cmd].st_type; in vx_init_rmh()
107 rmh->Cmd[0] = vx_dsp_cmds[cmd].opcode; in vx_init_rmh()
/sound/isa/wavefront/
Dwavefront_synth.c140 int cmd; member
245 wavefront_get_command (int cmd) in wavefront_get_command() argument
250 for (i = 0; wavefront_commands[i].cmd != 0; i++) { in wavefront_get_command()
251 if (cmd == wavefront_commands[i].cmd) { in wavefront_get_command()
334 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument
342 if ((wfcmd = wavefront_get_command (cmd)) == NULL) { in snd_wavefront_cmd()
344 cmd); in snd_wavefront_cmd()
353 if (cmd == WFC_DOWNLOAD_MULTISAMPLE) { in snd_wavefront_cmd()
359 cmd, wfcmd->action, wfcmd->read_cnt, in snd_wavefront_cmd()
362 if (wavefront_write (dev, cmd)) { in snd_wavefront_cmd()
[all …]
/sound/core/seq/oss/
Dseq_oss_ioctl.c74 snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long carg) in snd_seq_oss_ioctl() argument
80 switch (cmd) { in snd_seq_oss_ioctl()
90 return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); in snd_seq_oss_ioctl()
138 return snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl()
152 val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl()
159 snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl()
205 return snd_seq_oss_synth_ioctl(dp, 0, cmd, carg); in snd_seq_oss_ioctl()
Dseq_oss_event.h50 unsigned char cmd; member
58 unsigned char cmd; member
68 unsigned char cmd; member
78 unsigned char cmd; member
/sound/mips/
Dau1x00.c77 u32 volatile cmd; member
382 snd_au1000_trigger(struct snd_pcm_substream *substream, int cmd) in snd_au1000_trigger() argument
388 switch (cmd) { in snd_au1000_trigger()
496 u32 volatile cmd; in snd_au1000_ac97_read() local
509 cmd = (u32) reg & AC97C_INDEX_MASK; in snd_au1000_ac97_read()
510 cmd |= AC97C_READ; in snd_au1000_ac97_read()
511 au1000->ac97_ioport->cmd = cmd; in snd_au1000_ac97_read()
522 data = au1000->ac97_ioport->cmd & 0xffff; in snd_au1000_ac97_read()
534 u32 cmd; in snd_au1000_ac97_write() local
546 cmd = (u32) reg & AC97C_INDEX_MASK; in snd_au1000_ac97_write()
[all …]
/sound/core/
Dhwdep_compat.c62 static long snd_hwdep_ioctl_compat(struct file * file, unsigned int cmd, in snd_hwdep_ioctl_compat() argument
67 switch (cmd) { in snd_hwdep_ioctl_compat()
71 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat()
76 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
/sound/ppc/
Dpmac.c192 static inline void snd_pmac_dma_set_command(struct pmac_stream *rec, struct pmac_dbdma *cmd) in snd_pmac_dma_set_command() argument
194 out_le32(&rec->dma->cmdptr, cmd->addr); in snd_pmac_dma_set_command()
251 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) { in snd_pmac_pcm_prepare()
260 st_le32(&cp->cmd_dep, rec->cmd.addr); in snd_pmac_pcm_prepare()
263 snd_pmac_dma_set_command(rec, &rec->cmd); in snd_pmac_pcm_prepare()
274 struct snd_pcm_substream *subs, int cmd) in snd_pmac_pcm_trigger() argument
279 switch (cmd) { in snd_pmac_pcm_trigger()
289 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
291 snd_pmac_dma_set_command(rec, &rec->cmd); in snd_pmac_pcm_trigger()
304 for (i = 0, cp = rec->cmd.cmds; i < rec->nperiods; i++, cp++) in snd_pmac_pcm_trigger()
[all …]
/sound/isa/gus/
Dgus_dma.c41 unsigned int cmd) in snd_gf1_dma_program() argument
64 dma_cmd = SNDRV_GF1_DMA_ENABLE | (unsigned short) cmd; in snd_gf1_dma_program()
142 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_interrupt()
145 …(IRQ) - addr = 0x%x, buffer = 0x%lx, count = 0x%x, cmd = 0x%x\n", addr, (long) buffer, count, cmd); in snd_gf1_dma_interrupt()
207 …= 0x%lx, count = 0x%x, cmd = 0x%x\n", block->addr, (long) block->buffer, block->count, block->cmd); in snd_gf1_dma_transfer_block()
237 snd_gf1_dma_program(gus, block->addr, block->buf_addr, block->count, (unsigned short) block->cmd); in snd_gf1_dma_transfer_block()

123456789