/sound/soc/intel/atom/ |
D | sst-atom-controls.c | 114 struct sst_param_sba_ssp_slot_map cmd; in sst_send_slot_map() local 116 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_send_slot_map() 117 cmd.header.command_id = SBA_SET_SSP_SLOT_MAP; in sst_send_slot_map() 118 cmd.header.length = sizeof(struct sst_param_sba_ssp_slot_map) in sst_send_slot_map() 121 cmd.param_id = SBA_SET_SSP_SLOT_MAP; in sst_send_slot_map() 122 cmd.param_len = sizeof(cmd.rx_slot_map) + sizeof(cmd.tx_slot_map) in sst_send_slot_map() 123 + sizeof(cmd.ssp_index); in sst_send_slot_map() 124 cmd.ssp_index = SSP_CODEC; in sst_send_slot_map() 126 memcpy(cmd.rx_slot_map, &sst_ssp_tx_map[0], sizeof(cmd.rx_slot_map)); in sst_send_slot_map() 127 memcpy(cmd.tx_slot_map, &sst_ssp_rx_map[0], sizeof(cmd.tx_slot_map)); in sst_send_slot_map() [all …]
|
/sound/soc/fsl/ |
D | imx-pcm-rpmsg.c | 49 dev_dbg(&rpdev->dev, "send cmd %d\n", msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message() 73 msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message() 79 memcpy(&info->msg[msg->r_msg.header.cmd].r_msg, in imx_rpmsg_pcm_send_message() 89 switch (msg->s_msg.header.cmd) { in imx_rpmsg_pcm_send_message() 100 dev_dbg(&rpdev->dev, "cmd:%d, resp %d\n", msg->s_msg.header.cmd, in imx_rpmsg_pcm_send_message() 148 msg->s_msg.header.cmd = TX_HW_PARAM; in imx_rpmsg_pcm_hw_params() 151 msg->s_msg.header.cmd = RX_HW_PARAM; in imx_rpmsg_pcm_hw_params() 220 msg->s_msg.header.cmd = TX_PERIOD_DONE; in imx_rpmsg_timer_callback() 223 msg->s_msg.header.cmd = RX_PERIOD_DONE; in imx_rpmsg_timer_callback() 235 int cmd; in imx_rpmsg_pcm_open() local [all …]
|
/sound/soc/sof/ |
D | probe.c | 40 msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_INIT; in sof_ipc_probe_init() 45 ret = sof_ipc_tx_message(sdev->ipc, msg->hdr.cmd, msg, msg->hdr.size, in sof_ipc_probe_init() 66 msg.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_DEINIT; in sof_ipc_probe_deinit() 68 return sof_ipc_tx_message(sdev->ipc, msg.cmd, &msg, msg.size, in sof_ipc_probe_deinit() 73 static int sof_ipc_probe_info(struct snd_sof_dev *sdev, unsigned int cmd, in sof_ipc_probe_info() argument 88 msg.rhdr.hdr.cmd = SOF_IPC_GLB_PROBE | cmd; in sof_ipc_probe_info() 90 ret = sof_ipc_tx_message(sdev->ipc, msg.rhdr.hdr.cmd, &msg, in sof_ipc_probe_info() 98 if (cmd == SOF_IPC_PROBE_DMA_INFO) in sof_ipc_probe_info() 162 msg->hdr.cmd = SOF_IPC_GLB_PROBE | SOF_IPC_PROBE_DMA_ADD; in sof_ipc_probe_dma_add() 165 ret = sof_ipc_tx_message(sdev->ipc, msg->hdr.cmd, msg, msg->hdr.size, in sof_ipc_probe_dma_add() [all …]
|
D | ipc.c | 51 static void ipc_log_header(struct device *dev, u8 *text, u32 cmd) in ipc_log_header() argument 59 glb = cmd & SOF_GLB_TYPE_MASK; in ipc_log_header() 60 type = cmd & SOF_CMD_TYPE_MASK; in ipc_log_header() 201 dev_vdbg(dev, "%s: 0x%x: %s: %s\n", text, cmd, str, str2); in ipc_log_header() 203 dev_dbg(dev, "%s: 0x%x: %s: %s\n", text, cmd, str, str2); in ipc_log_header() 205 dev_dbg(dev, "%s: 0x%x: %s\n", text, cmd, str); in ipc_log_header() 209 static inline void ipc_log_header(struct device *dev, u8 *text, u32 cmd) in ipc_log_header() argument 211 if ((cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_TRACE_MSG) in ipc_log_header() 212 dev_dbg(dev, "%s: 0x%x\n", text, cmd); in ipc_log_header() 230 hdr->cmd, hdr->size); in tx_wait_done() [all …]
|
/sound/soc/sh/rcar/ |
D | cmd.c | 20 ((pos) = (struct rsnd_cmd *)(priv)->cmd + i); \ 144 return rsnd_mod_get((struct rsnd_cmd *)(priv->cmd) + id); in rsnd_cmd_mod_get() 157 struct rsnd_cmd *cmd; in rsnd_cmd_probe() local 169 cmd = devm_kcalloc(dev, nr, sizeof(*cmd), GFP_KERNEL); in rsnd_cmd_probe() 170 if (!cmd) in rsnd_cmd_probe() 174 priv->cmd = cmd; in rsnd_cmd_probe() 176 for_each_rsnd_cmd(cmd, priv, i) { in rsnd_cmd_probe() 177 int ret = rsnd_mod_init(priv, rsnd_mod_get(cmd), in rsnd_cmd_probe() 189 struct rsnd_cmd *cmd; in rsnd_cmd_remove() local 192 for_each_rsnd_cmd(cmd, priv, i) { in rsnd_cmd_remove() [all …]
|
/sound/sparc/ |
D | dbri.c | 118 #define DBRI_CMD(cmd, intr, value) ((cmd << 28) | \ argument 269 s32 cmd[DBRI_NO_CMDS]; /* Place for commands */ member 669 if (dbri->cmdptr - dbri->dma->cmd + len < DBRI_NO_CMDS - 2) in dbri_cmdlock() 672 return dbri->dma->cmd; in dbri_cmdlock() 687 static void dbri_cmdsend(struct snd_dbri *dbri, s32 *cmd, int len) in dbri_cmdsend() argument 695 *(cmd) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend() 696 *(cmd+1) = DBRI_CMD(D_WAIT, 1, wait_id); in dbri_cmdsend() 699 addr = dvma_addr + (cmd - len - dbri->dma->cmd) * sizeof(s32); in dbri_cmdsend() 704 if (cmd > dbri->cmdptr) { in dbri_cmdsend() 707 for (ptr = dbri->cmdptr; ptr < cmd+2; ptr++) in dbri_cmdsend() [all …]
|
/sound/pci/lx6464es/ |
D | lx_core.c | 208 static void lx_message_init(struct lx_rmh *rmh, enum cmd_mb_opcodes cmd) in lx_message_init() argument 210 snd_BUG_ON(cmd >= CMD_14_INVALID); in lx_message_init() 212 rmh->cmd[0] = dsp_commands[cmd].dcCodeOp; in lx_message_init() 213 rmh->cmd_len = dsp_commands[cmd].dcCmdLength; in lx_message_init() 214 rmh->stat_len = dsp_commands[cmd].dcStatusLength; in lx_message_init() 215 rmh->dsp_stat = dsp_commands[cmd].dcStatusType; in lx_message_init() 216 rmh->cmd_idx = cmd; in lx_message_init() 217 memset(&rmh->cmd[1], 0, (REG_CRM_NUMBER - 1) * sizeof(u32)); in lx_message_init() 223 rmh->cmd_idx = cmd; in lx_message_init() 237 snd_printk(LXRMH "\tcmd[%d] %08x\n", i, rmh->cmd[i]); in lx_message_dump() [all …]
|
/sound/pci/pcxhr/ |
D | pcxhr_mixer.c | 47 rmh.cmd[0] |= IO_NUM_REG_IN_ANA_LEVEL; in pcxhr_update_analog_audio_level() 48 rmh.cmd[2] = chip->analog_capture_volume[channel]; in pcxhr_update_analog_audio_level() 50 rmh.cmd[0] |= IO_NUM_REG_OUT_ANA_LEVEL; in pcxhr_update_analog_audio_level() 56 rmh.cmd[2] = PCXHR_LINE_PLAYBACK_LEVEL_MAX - vol; in pcxhr_update_analog_audio_level() 58 rmh.cmd[1] = 1 << ((2 * chip->chip_idx) + channel); /* audio mask */ in pcxhr_update_analog_audio_level() 266 rmh.cmd[0] |= MORE_THAN_ONE_STREAM_LEVEL; in pcxhr_update_playback_stream_level() 267 rmh.cmd[2] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_1_MASK; in pcxhr_update_playback_stream_level() 268 rmh.cmd[2] |= (left << 10); in pcxhr_update_playback_stream_level() 269 rmh.cmd[3] = VALID_STREAM_PAN_LEVEL_MASK | VALID_STREAM_LEVEL_2_MASK; in pcxhr_update_playback_stream_level() 270 rmh.cmd[3] |= right; in pcxhr_update_playback_stream_level() [all …]
|
D | pcxhr_hwdep.c | 68 rmh.cmd[0] |= mgr->firmware_num; in pcxhr_init_board() 70 rmh.cmd[1] = (1<<23) + mgr->granularity; in pcxhr_init_board() 94 rmh.cmd[0] |= IO_NUM_REG_STATUS; in pcxhr_sub_init() 95 rmh.cmd[1] = REG_STATUS_OPTIONS; in pcxhr_sub_init() 112 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_init() 114 rmh.cmd[1] = 1; /* unmute digital plugs */ in pcxhr_sub_init() 130 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_reset_board() 179 rmh.cmd[1] |= 0x020000; /* add P_PCM_ONLY_MASK */ in pcxhr_dsp_allocate_pipe() 182 rmh.cmd[rmh.cmd_len++] = (audio_count == 1) ? 0x01 : 0x03; in pcxhr_dsp_allocate_pipe()
|
D | pcxhr.c | 267 rmh.cmd[0] |= IO_NUM_REG_GENCLK; in pcxhr_get_clock_reg() 268 rmh.cmd[1] = pllreg & MASK_DSP_WORD; in pcxhr_get_clock_reg() 269 rmh.cmd[2] = pllreg >> 24; in pcxhr_get_clock_reg() 328 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock() 330 rmh.cmd[1] = 1; in pcxhr_sub_set_clock() 338 rmh.cmd[0] |= IO_NUM_SPEED_RATIO; in pcxhr_sub_set_clock() 339 rmh.cmd[1] = speed; in pcxhr_sub_set_clock() 358 rmh.cmd[0] |= IO_NUM_REG_MUTE_OUT; in pcxhr_sub_set_clock() 360 rmh.cmd[1] = 1; in pcxhr_sub_set_clock() 397 rmh.cmd[0] |= PCXHR_MODIFY_CLOCK_S_BIT; /* resync fifos */ in pcxhr_set_clock() [all …]
|
/sound/core/seq/ |
D | seq_midi_event.c | 293 unsigned int cmd, type; in snd_midi_event_decode() local 310 cmd = 0xf0 + (type - ST_SPECIAL); in snd_midi_event_decode() 313 cmd = 0x80 | (type << 4) | (ev->data.note.channel & 0x0f); in snd_midi_event_decode() 316 if (cmd == MIDI_CMD_COMMON_SYSEX) { in snd_midi_event_decode() 325 if ((cmd & 0xf0) == 0xf0 || dev->lastcmd != cmd || dev->nostat) { in snd_midi_event_decode() 326 dev->lastcmd = cmd; in snd_midi_event_decode() 328 xbuf[0] = cmd; in snd_midi_event_decode() 386 unsigned char cmd; in extra_decode_ctrl14() local 389 cmd = MIDI_CMD_CONTROL|(ev->data.control.channel & 0x0f); in extra_decode_ctrl14() 395 if (cmd != dev->lastcmd || dev->nostat) { in extra_decode_ctrl14() [all …]
|
D | seq_compat.c | 31 static int snd_seq_call_port_info_ioctl(struct snd_seq_client *client, unsigned int cmd, in snd_seq_call_port_info_ioctl() argument 47 err = snd_seq_kernel_client_ctl(client->number, cmd, data); in snd_seq_call_port_info_ioctl() 74 static long snd_seq_ioctl_compat(struct file *file, unsigned int cmd, unsigned long arg) in snd_seq_ioctl_compat() argument 82 switch (cmd) { in snd_seq_ioctl_compat() 109 return snd_seq_ioctl(file, cmd, arg); in snd_seq_ioctl_compat()
|
/sound/synth/emux/ |
D | emux_oss.c | 21 static int snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, 30 int cmd, unsigned char *event, int atomic, int hop); 32 int cmd, unsigned char *event, int atomic, int hop); 235 snd_emux_ioctl_seq_oss(struct snd_seq_oss_arg *arg, unsigned int cmd, unsigned long ioarg) in snd_emux_ioctl_seq_oss() argument 250 switch (cmd) { in snd_emux_ioctl_seq_oss() 292 unsigned char cmd, *data; in snd_emux_event_oss_input() local 307 cmd = data[2] & _EMUX_OSS_MODE_VALUE_MASK; in snd_emux_event_oss_input() 309 emuspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input() 311 gusspec_control(emu, p, cmd, data, atomic, hop); in snd_emux_event_oss_input() 320 emuspec_control(struct snd_emux *emu, struct snd_emux_port *port, int cmd, in emuspec_control() argument [all …]
|
/sound/drivers/vx/ |
D | vx_cmd.c | 87 void vx_init_rmh(struct vx_rmh *rmh, unsigned int cmd) in vx_init_rmh() argument 89 if (snd_BUG_ON(cmd >= CMD_LAST_INDEX)) in vx_init_rmh() 91 rmh->LgCmd = vx_dsp_cmds[cmd].length; in vx_init_rmh() 92 rmh->LgStat = vx_dsp_cmds[cmd].st_length; in vx_init_rmh() 93 rmh->DspStat = vx_dsp_cmds[cmd].st_type; in vx_init_rmh() 94 rmh->Cmd[0] = vx_dsp_cmds[cmd].opcode; in vx_init_rmh()
|
/sound/pci/hda/ |
D | hda_controller_trace.h | 16 TP_PROTO(struct azx *chip, struct azx_dev *dev, int cmd), 18 TP_ARGS(chip, dev, cmd), 23 __field( int, cmd ) 29 __entry->cmd = cmd; 32 TP_printk("[%d:%d] cmd=%d", __entry->card, __entry->idx, __entry->cmd)
|
/sound/isa/wavefront/ |
D | wavefront_synth.c | 140 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 wfcmd = wavefront_get_command(cmd); in snd_wavefront_cmd() 345 cmd); in snd_wavefront_cmd() 354 if (cmd == WFC_DOWNLOAD_MULTISAMPLE) { in snd_wavefront_cmd() 360 cmd, wfcmd->action, wfcmd->read_cnt, in snd_wavefront_cmd() 363 if (wavefront_write (dev, cmd)) { in snd_wavefront_cmd() [all …]
|
/sound/core/seq/oss/ |
D | seq_oss_ioctl.c | 61 snd_seq_oss_ioctl(struct seq_oss_devinfo *dp, unsigned int cmd, unsigned long carg) in snd_seq_oss_ioctl() argument 67 switch (cmd) { in snd_seq_oss_ioctl() 77 return snd_seq_oss_timer_ioctl(dp->timer, cmd, arg); in snd_seq_oss_ioctl() 117 return snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl() 128 val = snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl() 134 snd_seq_oss_synth_ioctl(dp, dev, cmd, carg); in snd_seq_oss_ioctl() 174 return snd_seq_oss_synth_ioctl(dp, 0, cmd, carg); in snd_seq_oss_ioctl()
|
D | seq_oss_event.h | 37 unsigned char cmd; member 45 unsigned char cmd; member 55 unsigned char cmd; member 65 unsigned char cmd; member
|
D | seq_oss.c | 48 static long odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 172 odev_ioctl(struct file *file, unsigned int cmd, unsigned long arg) in odev_ioctl() argument 181 if (cmd != SNDCTL_SEQ_SYNC && in odev_ioctl() 184 rc = snd_seq_oss_ioctl(dp, cmd, arg); in odev_ioctl() 185 if (cmd != SNDCTL_SEQ_SYNC) in odev_ioctl() 191 static long odev_ioctl_compat(struct file *file, unsigned int cmd, in odev_ioctl_compat() argument 194 return odev_ioctl(file, cmd, (unsigned long)compat_ptr(arg)); in odev_ioctl_compat()
|
/sound/core/ |
D | hwdep_compat.c | 39 static long snd_hwdep_ioctl_compat(struct file * file, unsigned int cmd, in snd_hwdep_ioctl_compat() argument 44 switch (cmd) { in snd_hwdep_ioctl_compat() 48 return snd_hwdep_ioctl(file, cmd, (unsigned long)argp); in snd_hwdep_ioctl_compat() 53 return hw->ops.ioctl_compat(hw, file, cmd, arg); in snd_hwdep_ioctl_compat()
|
D | timer_compat.c | 79 static long __snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in __snd_timer_user_ioctl_compat() argument 84 switch (cmd) { in __snd_timer_user_ioctl_compat() 101 return __snd_timer_user_ioctl(file, cmd, (unsigned long)argp, true); in __snd_timer_user_ioctl_compat() 114 static long snd_timer_user_ioctl_compat(struct file *file, unsigned int cmd, in snd_timer_user_ioctl_compat() argument 121 ret = __snd_timer_user_ioctl_compat(file, cmd, arg); in snd_timer_user_ioctl_compat()
|
/sound/soc/codecs/ |
D | cros_ec_codec.c | 74 static int send_ec_host_command(struct cros_ec_device *ec_dev, uint32_t cmd, in send_ec_host_command() argument 86 msg->command = cmd; in send_ec_host_command() 117 p.cmd = EC_CODEC_DMIC_GET_GAIN_IDX; in dmic_get_gain() 126 p.cmd = EC_CODEC_DMIC_GET_GAIN_IDX; in dmic_get_gain() 158 p.cmd = EC_CODEC_DMIC_SET_GAIN_IDX; in dmic_put_gain() 166 p.cmd = EC_CODEC_DMIC_SET_GAIN_IDX; in dmic_put_gain() 199 p.cmd = EC_CODEC_DMIC_GET_MAX_GAIN; in dmic_probe() 248 p.cmd = EC_CODEC_I2S_RX_SET_SAMPLE_DEPTH; in i2s_rx_hw_params() 262 p.cmd = EC_CODEC_I2S_RX_SET_BCLK; in i2s_rx_hw_params() 316 p.cmd = EC_CODEC_I2S_RX_SET_DAIFMT; in i2s_rx_set_fmt() [all …]
|
/sound/hda/ |
D | hdac_device.c | 256 int snd_hdac_exec_verb(struct hdac_device *codec, unsigned int cmd, in snd_hdac_exec_verb() argument 260 return codec->exec_verb(codec, cmd, flags, res); in snd_hdac_exec_verb() 261 return snd_hdac_bus_exec_verb(codec->bus, codec->addr, cmd, res); in snd_hdac_exec_verb() 278 unsigned int cmd = snd_hdac_make_cmd(codec, nid, verb, parm); in snd_hdac_read() local 280 return snd_hdac_exec_verb(codec, cmd, 0, res); in snd_hdac_read() 296 unsigned int cmd; in _snd_hdac_read_parm() local 298 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in _snd_hdac_read_parm() 299 return snd_hdac_regmap_read_raw(codec, cmd, res); in _snd_hdac_read_parm() 315 unsigned int cmd, val; in snd_hdac_read_parm_uncached() local 317 cmd = snd_hdac_regmap_encode_verb(nid, AC_VERB_PARAMETERS) | parm; in snd_hdac_read_parm_uncached() [all …]
|
D | trace.h | 20 TP_PROTO(struct hdac_bus *bus, unsigned int cmd), 21 TP_ARGS(bus, cmd), 26 dev_name((bus)->dev), (cmd) >> 28, cmd);
|
/sound/soc/ |
D | soc-pcm.c | 247 static int dpcm_fe_dai_do_trigger(struct snd_pcm_substream *substream, int cmd); 1094 static int soc_pcm_trigger(struct snd_pcm_substream *substream, int cmd) in soc_pcm_trigger() argument 1100 switch (cmd) { in soc_pcm_trigger() 1104 ret = snd_soc_link_trigger(substream, cmd, 0); in soc_pcm_trigger() 1108 ret = snd_soc_pcm_component_trigger(substream, cmd, 0); in soc_pcm_trigger() 1112 ret = snd_soc_pcm_dai_trigger(substream, cmd, 0); in soc_pcm_trigger() 1120 switch (cmd) { in soc_pcm_trigger() 1122 cmd = SNDRV_PCM_TRIGGER_STOP; in soc_pcm_trigger() 1125 cmd = SNDRV_PCM_TRIGGER_SUSPEND; in soc_pcm_trigger() 1128 cmd = SNDRV_PCM_TRIGGER_PAUSE_PUSH; in soc_pcm_trigger() [all …]
|