src/audio/tdfb/tdfb.c
/* used to pass standard and bespoke commands (with data) to component */
used to pass standard and bespoke commands (with data) to component
used to pass standard and bespoke commands ( with data ) to component
static int tdfb_cmd(struct comp_dev *dev, int cmd, void *data,
		    int max_data_size)
{
	struct sof_ipc_ctrl_data *cdata = data;
	int ret = 0;
	comp_info(dev, "tdfb_cmd()");
	switch (cmd) {
	case COMP_CMD_SET_DATA:
		ret = tdfb_cmd_set_data(dev, cdata);
		break;
	case COMP_CMD_GET_DATA:
		ret = tdfb_cmd_get_data(dev, cdata, max_data_size);
		break;
	default:
		comp_err(dev, "tdfb_cmd() error: invalid command");
		ret = -EINVAL;
	}
	return ret;
}
static int tdfb_cmd ( struct comp_dev * dev , int cmd , void * data , int max_data_size ) { struct sof_ipc_ctrl_data * cdata = data ; int ret = 0 ; comp_info ( dev , " " ) ; switch ( cmd ) { case COMP_CMD_SET_DATA : ret = tdfb_cmd_set_data ( dev , cdata ) ; break ; case COMP_CMD_GET_DATA : ret = tdfb_cmd_get_data ( dev , cdata , max_data_size ) ; break ; default : comp_err ( dev , " " ) ; ret = - EINVAL ; } return ret ; }
used to pass standard and bespoke commands (with data) to component
used to pass standard and bespoke commands ( with data ) to component