• Home
  • Raw
  • Download

Lines Matching refs:cmd

115 	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()
131 SST_FLAG_BLOCKED, SST_TASK_SBA, 0, &cmd, in sst_send_slot_map()
132 sizeof(cmd.header) + cmd.header.length); in sst_send_slot_map()
268 struct sst_cmd_set_params *cmd; in sst_send_algo_cmd() local
271 len = sizeof(cmd->dst) + sizeof(cmd->command_id) + bc->max; in sst_send_algo_cmd()
273 cmd = kzalloc(len, GFP_KERNEL); in sst_send_algo_cmd()
274 if (cmd == NULL) in sst_send_algo_cmd()
277 SST_FILL_DESTINATION(2, cmd->dst, bc->pipe_id, bc->module_id); in sst_send_algo_cmd()
278 cmd->command_id = bc->cmd_id; in sst_send_algo_cmd()
279 memcpy(cmd->params, bc->params, bc->max); in sst_send_algo_cmd()
282 SST_FLAG_BLOCKED, bc->task_id, 0, cmd, len); in sst_send_algo_cmd()
283 kfree(cmd); in sst_send_algo_cmd()
403 struct sst_cmd_set_gain_dual cmd; in sst_send_gain_cmd() local
407 cmd.header.command_id = MMX_SET_GAIN; in sst_send_gain_cmd()
408 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_send_gain_cmd()
409 cmd.gain_cell_num = 1; in sst_send_gain_cmd()
412 cmd.cell_gains[0].cell_gain_left = SST_GAIN_MIN_VALUE; in sst_send_gain_cmd()
413 cmd.cell_gains[0].cell_gain_right = SST_GAIN_MIN_VALUE; in sst_send_gain_cmd()
415 cmd.cell_gains[0].cell_gain_left = gv->l_gain; in sst_send_gain_cmd()
416 cmd.cell_gains[0].cell_gain_right = gv->r_gain; in sst_send_gain_cmd()
419 SST_FILL_DESTINATION(2, cmd.cell_gains[0].dest, in sst_send_gain_cmd()
421 cmd.cell_gains[0].gain_time_constant = gv->ramp_duration; in sst_send_gain_cmd()
423 cmd.header.length = sizeof(struct sst_cmd_set_gain_dual) in sst_send_gain_cmd()
428 SST_FLAG_BLOCKED, task_id, 0, &cmd, in sst_send_gain_cmd()
429 sizeof(cmd.header) + cmd.header.length); in sst_send_gain_cmd()
614 struct sst_cmd_set_swm cmd; in sst_swm_mixer_event() local
654 cmd.switch_state = SST_SWM_ON; in sst_swm_mixer_event()
656 cmd.switch_state = SST_SWM_OFF; in sst_swm_mixer_event()
658 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_swm_mixer_event()
660 cmd.header.command_id = SBA_SET_SWM; in sst_swm_mixer_event()
662 SST_FILL_DESTINATION(2, cmd.output_id, in sst_swm_mixer_event()
664 cmd.nb_inputs = fill_swm_input(cmpnt, &cmd.input[0], val); in sst_swm_mixer_event()
665 cmd.header.length = offsetof(struct sst_cmd_set_swm, input) in sst_swm_mixer_event()
667 + (cmd.nb_inputs * sizeof(cmd.input[0])); in sst_swm_mixer_event()
670 ids->task_id, 0, &cmd, in sst_swm_mixer_event()
671 sizeof(cmd.header) + cmd.header.length); in sst_swm_mixer_event()
731 struct sst_cmd_generic cmd; in sst_handle_vb_timer() local
736 cmd.header.command_id = SBA_VB_START; in sst_handle_vb_timer()
738 cmd.header.command_id = SBA_IDLE; in sst_handle_vb_timer()
741 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_handle_vb_timer()
742 cmd.header.length = 0; in sst_handle_vb_timer()
763 SST_FLAG_BLOCKED, SST_TASK_SBA, 0, &cmd, in sst_handle_vb_timer()
764 sizeof(cmd.header) + cmd.header.length); in sst_handle_vb_timer()
980 struct sst_cmd_set_media_path cmd; in sst_set_media_path() local
990 cmd.switch_state = SST_PATH_ON; in sst_set_media_path()
992 cmd.switch_state = SST_PATH_OFF; in sst_set_media_path()
994 SST_FILL_DESTINATION(2, cmd.header.dst, in sst_set_media_path()
998 cmd.header.command_id = MMX_SET_MEDIA_PATH; in sst_set_media_path()
999 cmd.header.length = sizeof(struct sst_cmd_set_media_path) in sst_set_media_path()
1003 ids->task_id, 0, &cmd, in sst_set_media_path()
1004 sizeof(cmd.header) + cmd.header.length); in sst_set_media_path()
1017 struct sst_cmd_sba_set_media_loop_map cmd; in sst_set_media_loop() local
1024 cmd.switch_state = SST_SWITCH_ON; in sst_set_media_loop()
1026 cmd.switch_state = SST_SWITCH_OFF; in sst_set_media_loop()
1028 SST_FILL_DESTINATION(2, cmd.header.dst, in sst_set_media_loop()
1031 cmd.header.command_id = SBA_SET_MEDIA_LOOP_MAP; in sst_set_media_loop()
1032 cmd.header.length = sizeof(struct sst_cmd_sba_set_media_loop_map) in sst_set_media_loop()
1034 cmd.param.part.cfg.rate = 2; /* 48khz */ in sst_set_media_loop()
1036 cmd.param.part.cfg.format = ids->format; /* stereo/Mono */ in sst_set_media_loop()
1037 cmd.param.part.cfg.s_length = 1; /* 24bit left justified */ in sst_set_media_loop()
1038 cmd.map = 0; /* Algo sequence: Gain - DRP - FIR - IIR */ in sst_set_media_loop()
1041 SST_TASK_SBA, 0, &cmd, in sst_set_media_loop()
1042 sizeof(cmd.header) + cmd.header.length); in sst_set_media_loop()