/* vx_set_stream_format - send the stream format command @pipe: the affected pipe @data: format bitmask  */
static int vx_set_stream_format(struct vx_core *chip, struct vx_pipe *pipe, unsigned int data)
/* vx_set_stream_format - send the stream format command @pipe: the affected pipe @data: format bitmask  */
static int vx_set_stream_format(struct vx_core *chip, struct vx_pipe *pipe, unsigned int data)
{
	struct vx_rmh rmh;
	vx_init_rmh(&rmh, pipe->is_capture ?
		    CMD_FORMAT_STREAM_IN : CMD_FORMAT_STREAM_OUT);
	rmh.Cmd[0] |= pipe->number << FIELD_SIZE;
	vx_set_differed_time(chip, &rmh, pipe);
	rmh.Cmd[rmh.LgCmd] = (data & 0xFFFFFF00) >> 8;
	rmh.Cmd[rmh.LgCmd + 1] = (data & 0xFF) << 16;
	rmh.LgCmd += 2;
	return vx_send_msg(chip, &rmh);
}