/* vx_free_pipe - release a pipe @pipe: pipe to be released  */
static int vx_free_pipe(struct vx_core *chip, struct vx_pipe *pipe)
/* vx_free_pipe - release a pipe @pipe: pipe to be released  */
static int vx_free_pipe(struct vx_core *chip, struct vx_pipe *pipe)
{
	struct vx_rmh rmh;
	vx_init_rmh(&rmh, CMD_FREE_PIPE);
	vx_set_pipe_cmd_params(&rmh, pipe->is_capture, pipe->number, 0);
	vx_send_msg(chip, &rmh);
	kfree(pipe);
	return 0;
}