Lines Matching refs:cmd
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()
267 lx_dsp_reg_writebuf(chip, eReg_CRM1, rmh->cmd, rmh->cmd_len); in lx_message_send_atomic()
389 chip->rmh.cmd[0] |= gran; in lx_dsp_set_granularity()
429 chip->rmh.cmd[0] |= pipe_cmd; in lx_pipe_allocate()
430 chip->rmh.cmd[0] |= channels; in lx_pipe_allocate()
449 chip->rmh.cmd[0] |= pipe_cmd; in lx_pipe_release()
474 chip->rmh.cmd[0] |= pipe_cmd; in lx_buffer_ask()
517 chip->rmh.cmd[0] |= pipe_cmd; in lx_pipe_stop()
533 chip->rmh.cmd[0] |= pipe_cmd; in lx_pipe_toggle_state()
578 chip->rmh.cmd[0] |= pipe_cmd; in lx_pipe_sample_count()
604 chip->rmh.cmd[0] |= pipe_cmd; in lx_pipe_state()
660 chip->rmh.cmd[0] |= pipe_cmd; in lx_stream_set_state()
661 chip->rmh.cmd[0] |= state; in lx_stream_set_state()
679 chip->rmh.cmd[0] |= pipe_cmd; in lx_stream_set_format()
683 chip->rmh.cmd[0] |= (STREAM_FMT_16b << STREAM_FMT_OFFSET); in lx_stream_set_format()
687 chip->rmh.cmd[0] |= (STREAM_FMT_intel << STREAM_FMT_OFFSET); in lx_stream_set_format()
689 chip->rmh.cmd[0] |= channels-1; in lx_stream_set_format()
706 chip->rmh.cmd[0] |= pipe_cmd; in lx_stream_state()
725 chip->rmh.cmd[0] |= pipe_cmd; in lx_stream_sample_position()
748 chip->rmh.cmd[0] |= pipe_cmd; in lx_buffer_give()
749 chip->rmh.cmd[0] |= BF_NOTIFY_EOB; /* request interrupt notification */ in lx_buffer_give()
753 chip->rmh.cmd[1] = buffer_size & MASK_DATA_SIZE; in lx_buffer_give()
754 chip->rmh.cmd[2] = buf_address_lo; in lx_buffer_give()
758 chip->rmh.cmd[3] = buf_address_hi; in lx_buffer_give()
759 chip->rmh.cmd[0] |= BF_64BITS_ADR; in lx_buffer_give()
795 chip->rmh.cmd[0] |= pipe_cmd; in lx_buffer_free()
796 chip->rmh.cmd[0] |= MASK_BUFFER_ID; /* ask for the current buffer: the in lx_buffer_free()
817 chip->rmh.cmd[0] |= pipe_cmd; in lx_buffer_cancel()
818 chip->rmh.cmd[0] |= buffer_index; in lx_buffer_cancel()
841 chip->rmh.cmd[0] |= PIPE_INFO_TO_CMD(is_capture, 0); in lx_level_unmute()
843 chip->rmh.cmd[1] = (u32)(mute_mask >> (u64)32); /* hi part */ in lx_level_unmute()
844 chip->rmh.cmd[2] = (u32)(mute_mask & (u64)0xFFFFFFFF); /* lo part */ in lx_level_unmute()
847 "mute %x %x %x\n", chip->rmh.cmd[0], chip->rmh.cmd[1], in lx_level_unmute()
848 chip->rmh.cmd[2]); in lx_level_unmute()
886 chip->rmh.cmd[0] |= PIPE_INFO_TO_CMD(is_capture, i); in lx_level_peaks()