Lines Matching refs:cmd
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()
130 SST_FLAG_BLOCKED, SST_TASK_SBA, 0, &cmd, in sst_send_slot_map()
131 sizeof(cmd.header) + cmd.header.length); in sst_send_slot_map()
269 struct sst_cmd_set_params *cmd; in sst_send_algo_cmd() local
272 len = sizeof(cmd->dst) + sizeof(cmd->command_id) + bc->max; in sst_send_algo_cmd()
274 cmd = kzalloc(len, GFP_KERNEL); in sst_send_algo_cmd()
275 if (cmd == NULL) in sst_send_algo_cmd()
278 SST_FILL_DESTINATION(2, cmd->dst, bc->pipe_id, bc->module_id); in sst_send_algo_cmd()
279 cmd->command_id = bc->cmd_id; in sst_send_algo_cmd()
280 memcpy(cmd->params, bc->params, bc->max); in sst_send_algo_cmd()
283 SST_FLAG_BLOCKED, bc->task_id, 0, cmd, len); in sst_send_algo_cmd()
284 kfree(cmd); in sst_send_algo_cmd()
410 struct sst_cmd_set_gain_dual cmd; in sst_send_gain_cmd() local
414 cmd.header.command_id = MMX_SET_GAIN; in sst_send_gain_cmd()
415 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_send_gain_cmd()
416 cmd.gain_cell_num = 1; in sst_send_gain_cmd()
419 cmd.cell_gains[0].cell_gain_left = SST_GAIN_MIN_VALUE; in sst_send_gain_cmd()
420 cmd.cell_gains[0].cell_gain_right = SST_GAIN_MIN_VALUE; in sst_send_gain_cmd()
422 cmd.cell_gains[0].cell_gain_left = gv->l_gain; in sst_send_gain_cmd()
423 cmd.cell_gains[0].cell_gain_right = gv->r_gain; in sst_send_gain_cmd()
426 SST_FILL_DESTINATION(2, cmd.cell_gains[0].dest, in sst_send_gain_cmd()
428 cmd.cell_gains[0].gain_time_constant = gv->ramp_duration; in sst_send_gain_cmd()
430 cmd.header.length = sizeof(struct sst_cmd_set_gain_dual) in sst_send_gain_cmd()
435 SST_FLAG_BLOCKED, task_id, 0, &cmd, in sst_send_gain_cmd()
436 sizeof(cmd.header) + cmd.header.length); in sst_send_gain_cmd()
625 struct sst_cmd_set_swm cmd; in sst_swm_mixer_event() local
665 cmd.switch_state = SST_SWM_ON; in sst_swm_mixer_event()
667 cmd.switch_state = SST_SWM_OFF; in sst_swm_mixer_event()
669 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_swm_mixer_event()
671 cmd.header.command_id = SBA_SET_SWM; in sst_swm_mixer_event()
673 SST_FILL_DESTINATION(2, cmd.output_id, in sst_swm_mixer_event()
675 cmd.nb_inputs = fill_swm_input(cmpnt, &cmd.input[0], val); in sst_swm_mixer_event()
676 cmd.header.length = offsetof(struct sst_cmd_set_swm, input) in sst_swm_mixer_event()
678 + (cmd.nb_inputs * sizeof(cmd.input[0])); in sst_swm_mixer_event()
681 ids->task_id, 0, &cmd, in sst_swm_mixer_event()
682 sizeof(cmd.header) + cmd.header.length); in sst_swm_mixer_event()
745 struct sst_cmd_generic cmd; in sst_handle_vb_timer() local
750 cmd.header.command_id = SBA_VB_START; in sst_handle_vb_timer()
752 cmd.header.command_id = SBA_IDLE; in sst_handle_vb_timer()
755 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_handle_vb_timer()
756 cmd.header.length = 0; in sst_handle_vb_timer()
777 SST_FLAG_BLOCKED, SST_TASK_SBA, 0, &cmd, in sst_handle_vb_timer()
778 sizeof(cmd.header) + cmd.header.length); in sst_handle_vb_timer()
1001 struct sst_cmd_set_media_path cmd; in sst_set_media_path() local
1011 cmd.switch_state = SST_PATH_ON; in sst_set_media_path()
1013 cmd.switch_state = SST_PATH_OFF; in sst_set_media_path()
1015 SST_FILL_DESTINATION(2, cmd.header.dst, in sst_set_media_path()
1019 cmd.header.command_id = MMX_SET_MEDIA_PATH; in sst_set_media_path()
1020 cmd.header.length = sizeof(struct sst_cmd_set_media_path) in sst_set_media_path()
1024 ids->task_id, 0, &cmd, in sst_set_media_path()
1025 sizeof(cmd.header) + cmd.header.length); in sst_set_media_path()
1038 struct sst_cmd_sba_set_media_loop_map cmd; in sst_set_media_loop() local
1045 cmd.switch_state = SST_SWITCH_ON; in sst_set_media_loop()
1047 cmd.switch_state = SST_SWITCH_OFF; in sst_set_media_loop()
1049 SST_FILL_DESTINATION(2, cmd.header.dst, in sst_set_media_loop()
1052 cmd.header.command_id = SBA_SET_MEDIA_LOOP_MAP; in sst_set_media_loop()
1053 cmd.header.length = sizeof(struct sst_cmd_sba_set_media_loop_map) in sst_set_media_loop()
1055 cmd.param.part.cfg.rate = 2; /* 48khz */ in sst_set_media_loop()
1057 cmd.param.part.cfg.format = ids->format; /* stereo/Mono */ in sst_set_media_loop()
1058 cmd.param.part.cfg.s_length = 1; /* 24bit left justified */ in sst_set_media_loop()
1059 cmd.map = 0; /* Algo sequence: Gain - DRP - FIR - IIR */ in sst_set_media_loop()
1062 SST_TASK_SBA, 0, &cmd, in sst_set_media_loop()
1063 sizeof(cmd.header) + cmd.header.length); in sst_set_media_loop()