linux/sound/pci/ctxfi/ctsrc.h

/* SPDX-License-Identifier: GPL-2.0-only */
/*
 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
 *
 * @File	ctsrc.h
 *
 * @Brief
 * This file contains the definition of the Sample Rate Convertor
 * resource management object.
 *
 * @Author	Liu Chun
 * @Date 	May 13 2008
 */

#ifndef CTSRC_H
#define CTSRC_H

#include "ctresource.h"
#include "ctimap.h"
#include <linux/spinlock.h>
#include <linux/list.h>
#include <sound/core.h>

#define SRC_STATE_OFF
#define SRC_STATE_INIT
#define SRC_STATE_RUN

#define SRC_SF_U8
#define SRC_SF_S16
#define SRC_SF_S24
#define SRC_SF_S32
#define SRC_SF_F32

/* Define the descriptor of a src resource */
enum SRCMODE {};

struct src_rsc_ops;

struct src {};

struct src_rsc_ops {};

/* Define src resource request description info */
struct src_desc {};

/* Define src manager object */
struct src_mgr {};

/* Define the descriptor of a SRC Input Mapper resource */
struct srcimp_mgr;
struct srcimp_rsc_ops;

struct srcimp {};

struct srcimp_rsc_ops {};

/* Define SRCIMP resource request description info */
struct srcimp_desc {};

struct srcimp_mgr {};

/* Constructor and destructor of SRC resource manager */
int src_mgr_create(struct hw *hw, void **ptr);
int src_mgr_destroy(void *ptr);
/* Constructor and destructor of SRCIMP resource manager */
int srcimp_mgr_create(struct hw *hw, void **ptr);
int srcimp_mgr_destroy(void *ptr);

#endif /* CTSRC_H */