Home
last modified time | relevance | path

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

12345678910>>...13

/sound/soc/intel/atom/
Dsst-atom-controls.c115 struct sst_param_sba_ssp_slot_map cmd; in sst_send_slot_map() local
117 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_send_slot_map()
118 cmd.header.command_id = SBA_SET_SSP_SLOT_MAP; in sst_send_slot_map()
119 cmd.header.length = sizeof(struct sst_param_sba_ssp_slot_map) in sst_send_slot_map()
122 cmd.param_id = SBA_SET_SSP_SLOT_MAP; in sst_send_slot_map()
123 cmd.param_len = sizeof(cmd.rx_slot_map) + sizeof(cmd.tx_slot_map) in sst_send_slot_map()
124 + sizeof(cmd.ssp_index); in sst_send_slot_map()
125 cmd.ssp_index = SSP_CODEC; in sst_send_slot_map()
127 memcpy(cmd.rx_slot_map, &sst_ssp_tx_map[0], sizeof(cmd.rx_slot_map)); in sst_send_slot_map()
128 memcpy(cmd.tx_slot_map, &sst_ssp_rx_map[0], sizeof(cmd.tx_slot_map)); in sst_send_slot_map()
[all …]
/sound/sparc/
Ddbri.c118 #define DBRI_CMD(cmd, intr, value) ((cmd << 28) | \ argument
269 s32 cmd[DBRI_NO_CMDS]; /* Place for commands */ member
663 if (dbri->cmdptr - dbri->dma->cmd + len < DBRI_NO_CMDS - 2) in dbri_cmdlock()
666 return dbri->dma->cmd; in dbri_cmdlock()
681 static void dbri_cmdsend(struct snd_dbri *dbri, s32 *cmd, int len) in dbri_cmdsend() argument
688 *(cmd) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend()
689 *(cmd+1) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend()
692 addr = dbri->dma_dvma + (cmd - len - dbri->dma->cmd) * sizeof(s32); in dbri_cmdsend()
697 if (cmd > dbri->cmdptr) { in dbri_cmdsend()
700 for (ptr = dbri->cmdptr; ptr < cmd+2; ptr++) in dbri_cmdsend()
[all …]
/sound/pci/lx6464es/
Dlx_core.c223 static void lx_message_init(struct lx_rmh *rmh, enum cmd_mb_opcodes cmd) in lx_message_init() argument
225 snd_BUG_ON(cmd >= CMD_14_INVALID); in lx_message_init()
227 rmh->cmd[0] = dsp_commands[cmd].dcCodeOp; in lx_message_init()
228 rmh->cmd_len = dsp_commands[cmd].dcCmdLength; in lx_message_init()
229 rmh->stat_len = dsp_commands[cmd].dcStatusLength; in lx_message_init()
230 rmh->dsp_stat = dsp_commands[cmd].dcStatusType; in lx_message_init()
231 rmh->cmd_idx = cmd; in lx_message_init()
232 memset(&rmh->cmd[1], 0, (REG_CRM_NUMBER - 1) * sizeof(u32)); in lx_message_init()
238 rmh->cmd_idx = cmd; in lx_message_init()
252 snd_printk(LXRMH "\tcmd[%d] %08x\n", i, rmh->cmd[i]); in lx_message_dump()
[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()
279 rmh.cmd[0] |= MORE_THAN_ONE_STREAM_LEVEL; in pcxhr_update_playback_stream_level()
280 rmh.cmd[2] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_1_MASK; in pcxhr_update_playback_stream_level()
281 rmh.cmd[2] |= (left << 10); in pcxhr_update_playback_stream_level()
282 rmh.cmd[3] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_2_MASK; in pcxhr_update_playback_stream_level()
283 rmh.cmd[3] |= right; in pcxhr_update_playback_stream_level()
[all …]
Dpcxhr_hwdep.c81 rmh.cmd[0] |= mgr->firmware_num; in pcxhr_init_board()
83 rmh.cmd[1] = (1<<23) + mgr->granularity; in pcxhr_init_board()
107 rmh.cmd[0] |= IO_NUM_REG_STATUS; in pcxhr_sub_init()
108 rmh.cmd[1] = REG_STATUS_OPTIONS; in pcxhr_sub_init()
125 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_init()
127 rmh.cmd[1] = 1; /* unmute digital plugs */ in pcxhr_sub_init()
143 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_reset_board()
192 rmh.cmd[1] |= 0x020000; /* add P_PCM_ONLY_MASK */ in pcxhr_dsp_allocate_pipe()
195 rmh.cmd[rmh.cmd_len++] = (audio_count == 1) ? 0x01 : 0x03; in pcxhr_dsp_allocate_pipe()
Dpcxhr.c281 rmh.cmd[0] |= IO_NUM_REG_GENCLK; in pcxhr_get_clock_reg()
282 rmh.cmd[1] = pllreg & MASK_DSP_WORD; in pcxhr_get_clock_reg()
283 rmh.cmd[2] = pllreg >> 24; in pcxhr_get_clock_reg()
342 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock()
344 rmh.cmd[1] = 1; in pcxhr_sub_set_clock()
352 rmh.cmd[0] |= IO_NUM_SPEED_RATIO; in pcxhr_sub_set_clock()
353 rmh.cmd[1] = speed; in pcxhr_sub_set_clock()
372 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock()
374 rmh.cmd[1] = 1; in pcxhr_sub_set_clock()
411 rmh.cmd[0] |= PCXHR_MODIFY_CLOCK_S_BIT; /* resync fifos */ in pcxhr_set_clock()
[all …]
/sound/oss/
Dsoundcard.c308 static int sound_mixer_ioctl(int mixdev, unsigned int cmd, void __user *arg) in sound_mixer_ioctl() argument
318 if (cmd == SOUND_MIXER_INFO) in sound_mixer_ioctl()
320 if (cmd == SOUND_OLD_MIXER_INFO) in sound_mixer_ioctl()
322 if (_SIOC_DIR(cmd) & _SIOC_WRITE) in sound_mixer_ioctl()
326 return mixer_devs[mixdev]->ioctl(mixdev, cmd, arg); in sound_mixer_ioctl()
329 static long sound_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in sound_ioctl() argument
336 if (_SIOC_DIR(cmd) != _SIOC_NONE && _SIOC_DIR(cmd) != 0) { in sound_ioctl()
340 len = _SIOC_SIZE(cmd); in sound_ioctl()
343 if (_SIOC_DIR(cmd) & _SIOC_WRITE) in sound_ioctl()
346 if (_SIOC_DIR(cmd) & _SIOC_READ) in sound_ioctl()
[all …]
Dpas2_mixer.c210 static int pas_mixer_ioctl(int dev, unsigned int cmd, void __user *arg) in pas_mixer_ioctl() argument
215 if (cmd == SOUND_MIXER_PRIVATE1) { /* Set loudness bit */ in pas_mixer_ioctl()
229 if (cmd == SOUND_MIXER_PRIVATE2) { /* Set enhance bit */ in pas_mixer_ioctl()
252 if (cmd == SOUND_MIXER_PRIVATE3) { /* Set mute bit */ in pas_mixer_ioctl()
267 if (((cmd >> 8) & 0xff) == 'M') { in pas_mixer_ioctl()
270 if (_SIOC_DIR(cmd) & _SIOC_WRITE) { in pas_mixer_ioctl()
271 v = pas_mixer_set(cmd & 0xff, v); in pas_mixer_ioctl()
273 switch (cmd & 0xff) { in pas_mixer_ioctl()
295 v = levels[cmd & 0xff]; in pas_mixer_ioctl()
Dmpu401.c92 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()
163 #define STORE(cmd) \ argument
167 cmd; \
568 static int mpu401_command(int dev, mpu_command_rec * cmd) in mpu401_command() argument
598 printk(KERN_WARNING "mpu401: Command (0x%x) timeout\n", (int) cmd->cmd); in mpu401_command()
608 write_command(devc, cmd->cmd); in mpu401_command()
633 if (cmd->nr_args) in mpu401_command()
635 for (i = 0; i < cmd->nr_args; i++) in mpu401_command()
639 if (!mpu401_out(dev, cmd->data[i])) in mpu401_command()
[all …]
Dwaveartist.c156 static int vnc_private_ioctl(int dev, unsigned int cmd, int __user *arg);
228 int nr_cmd, unsigned int *cmd, in waveartist_cmd() argument
239 printk("%04X ", cmd[i]); in waveartist_cmd()
268 outw(cmd[i], io_base + CMDR); in waveartist_cmd()
303 waveartist_cmd1(struct 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(struct wavnc_info *devc, unsigned int cmd) in waveartist_cmd1_r() argument
316 waveartist_cmd(devc, 1, &cmd, 1, &ret); in waveartist_cmd1_r()
326 waveartist_cmd2(struct wavnc_info *devc, unsigned int cmd, unsigned int arg) in waveartist_cmd2() argument
330 vals[0] = cmd; in waveartist_cmd2()
[all …]
/sound/synth/emux/
Demux_oss.c36 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd,
45 int cmd, unsigned char *event, int atomic, int hop);
47 int cmd, unsigned char *event, int atomic, int hop);
250 snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioarg) in snd_emux_ioctl_seq_oss() argument
265 switch (cmd) { in snd_emux_ioctl_seq_oss()
307 unsigned char cmd, *data; in snd_emux_event_oss_input() local
322 cmd = data[2] & _EMUX_OSS_MODE_VALUE_MASK; in snd_emux_event_oss_input()
324 emuspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input()
326 gusspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input()
335 emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, in emuspec_control() argument
[all …]
/sound/core/seq/
Dseq_midi_event.c360 unsigned int cmd, type; in snd_midi_event_decode() local
377 cmd = 0xf0 + (type - ST_SPECIAL); in snd_midi_event_decode()
380 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); in snd_midi_event_decode()
383 if (cmd == MIDI_CMD_COMMON_SYSEX) { in snd_midi_event_decode()
392 if ((cmd & 0xf0) == 0xf0 || dev->lastcmd != cmd || dev->nostat) { in snd_midi_event_decode()
393 dev->lastcmd = cmd; in snd_midi_event_decode()
395 xbuf[0] = cmd; in snd_midi_event_decode()
452 unsigned char cmd; in extra_decode_ctrl14() local
455 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); in extra_decode_ctrl14()
461 if (cmd != dev->lastcmd || dev->nostat) { in extra_decode_ctrl14()
[all …]
Dseq_compat.c45 static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned int cmd, in snd_seq_call_port_info_ioctl() argument
63 err = snd_seq_do_ioctl(client, cmd, data); in snd_seq_call_port_info_ioctl()
91 static long snd_seq_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg) in snd_seq_ioctl_compat() argument
99 switch (cmd) { in snd_seq_ioctl_compat()
126 return snd_seq_do_ioctl(client, cmd, argp); in snd_seq_ioctl_compat()
/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/pci/hda/
Dhda_controller_trace.h15 TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd),
17 TP_ARGS(chip, dev, cmd),
22 __field( int, cmd )
28 __entry->cmd = cmd;
31 TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd)
Dhda_hwdep.c74 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl() argument
79 switch (cmd) { in hda_hwdep_ioctl()
92 unsigned int cmd, unsigned long arg) in hda_hwdep_ioctl_compat() argument
94 return hda_hwdep_ioctl(hw, file, cmd, (unsigned long)compat_ptr(arg)); in hda_hwdep_ioctl_compat()
/sound/isa/wavefront/
Dwavefront_synth.c142 int cmd; member
247 wavefront_get_command (int cmd) in wavefront_get_command() argument
252 for (i = 0; wavefront_commands[i].cmd != 0; i++) { in wavefront_get_command()
253 if (cmd == wavefront_commands[i].cmd) { in wavefront_get_command()
336 int cmd, unsigned char *rbuf, unsigned char *wbuf) in snd_wavefront_cmd() argument
344 if ((wfcmd = wavefront_get_command (cmd)) == NULL) { in snd_wavefront_cmd()
346 cmd); in snd_wavefront_cmd()
355 if (cmd == WFC_DOWNLOAD_MULTISAMPLE) { in snd_wavefront_cmd()
361 cmd, wfcmd->action, wfcmd->read_cnt, in snd_wavefront_cmd()
364 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()
130 return snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl()
141 val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl()
147 snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl()
187 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/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()
Dtimer_compat.c109 static long __snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in __snd_timer_user_ioctl_compat() argument
114 switch (cmd) { in __snd_timer_user_ioctl_compat()
131 return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp); in __snd_timer_user_ioctl_compat()
144 static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in snd_timer_user_ioctl_compat() argument
151 ret = __snd_timer_user_ioctl_compat(file, cmd, arg); in snd_timer_user_ioctl_compat()
/sound/hda/
Dhdac_bus.c69 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb() argument
74 err = snd_hdac_bus_exec_verb_unlocked(bus, addr, cmd, res); in snd_hdac_bus_exec_verb()
89 unsigned int cmd, unsigned int *res) in snd_hdac_bus_exec_verb_unlocked() argument
94 if (cmd == ~0) in snd_hdac_bus_exec_verb_unlocked()
102 trace_hda_send_cmd(bus, cmd); in snd_hdac_bus_exec_verb_unlocked()
103 err = bus->ops->command(bus, cmd); in snd_hdac_bus_exec_verb_unlocked()
Dtrace.h19 TP_PROTO(struct hdac_bus *bus, unsigned int cmd),
20 TP_ARGS(bus, cmd),
25 dev_name((bus)->dev), (cmd) >> 28, cmd);
/sound/mips/
Dau1x00.c79 u32 volatile cmd; member
385 snd_au1000_trigger(struct snd_pcm_substream *substream, int cmd) in snd_au1000_trigger() argument
391 switch (cmd) { in snd_au1000_trigger()
501 u32 volatile cmd; in snd_au1000_ac97_read() local
514 cmd = (u32) reg & AC97C_INDEX_MASK; in snd_au1000_ac97_read()
515 cmd |= AC97C_READ; in snd_au1000_ac97_read()
516 au1000->ac97_ioport->cmd = cmd; in snd_au1000_ac97_read()
528 data = au1000->ac97_ioport->cmd & 0xffff; in snd_au1000_ac97_read()
540 u32 cmd; in snd_au1000_ac97_write() local
552 cmd = (u32) reg & AC97C_INDEX_MASK; in snd_au1000_ac97_write()
[all …]
/sound/soc/codecs/
Drt5677-spi.c84 u8 cmd; in rt5677_spi_select_cmd() local
87 cmd = RT5677_SPI_READ_32; in rt5677_spi_select_cmd()
90 cmd = RT5677_SPI_READ_BURST; in rt5677_spi_select_cmd()
94 return read ? cmd : cmd + 1; in rt5677_spi_select_cmd()

12345678910>>...13