linux/sound/pci/ctxfi/ctdaio.c

// SPDX-License-Identifier: GPL-2.0-only
/*
 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
 *
 * @File	ctdaio.c
 *
 * @Brief
 * This file contains the implementation of Digital Audio Input Output
 * resource management object.
 *
 * @Author	Liu Chun
 * @Date 	May 23 2008
 */

#include "ctdaio.h"
#include "cthardware.h"
#include "ctimap.h"
#include <linux/slab.h>
#include <linux/kernel.h>

#define DAIO_OUT_MAX

struct daio_usage {};

struct daio_rsc_idx {};

static const struct daio_rsc_idx idx_20k1[NUM_DAIOTYP] =;

static const struct daio_rsc_idx idx_20k2[NUM_DAIOTYP] =;

static void daio_master(struct rsc *rsc)
{}

static int daio_index(const struct rsc *rsc)
{}

static void daio_out_next_conj(struct rsc *rsc)
{}

static void daio_in_next_conj_20k1(struct rsc *rsc)
{}

static void daio_in_next_conj_20k2(struct rsc *rsc)
{}

static const struct rsc_ops daio_out_rsc_ops =;

static const struct rsc_ops daio_in_rsc_ops_20k1 =;

static const struct rsc_ops daio_in_rsc_ops_20k2 =;

static unsigned int daio_device_index(enum DAIOTYP type, struct hw *hw)
{}

static int dao_rsc_reinit(struct dao *dao, const struct dao_desc *desc);

static int dao_spdif_get_spos(struct dao *dao, unsigned int *spos)
{}

static int dao_spdif_set_spos(struct dao *dao, unsigned int spos)
{}

static int dao_commit_write(struct dao *dao)
{}

static int dao_set_left_input(struct dao *dao, struct rsc *input)
{}

static int dao_set_right_input(struct dao *dao, struct rsc *input)
{}

static int dao_clear_left_input(struct dao *dao)
{}

static int dao_clear_right_input(struct dao *dao)
{}

static const struct dao_rsc_ops dao_ops =;

static int dai_set_srt_srcl(struct dai *dai, struct rsc *src)
{}

static int dai_set_srt_srcr(struct dai *dai, struct rsc *src)
{}

static int dai_set_srt_msr(struct dai *dai, unsigned int msr)
{}

static int dai_set_enb_src(struct dai *dai, unsigned int enb)
{}

static int dai_set_enb_srt(struct dai *dai, unsigned int enb)
{}

static int dai_commit_write(struct dai *dai)
{}

static const struct dai_rsc_ops dai_ops =;

static int daio_rsc_init(struct daio *daio,
			 const struct daio_desc *desc,
			 struct hw *hw)
{}

static int daio_rsc_uninit(struct daio *daio)
{}

static int dao_rsc_init(struct dao *dao,
			const struct daio_desc *desc,
			struct daio_mgr *mgr)
{}

static int dao_rsc_uninit(struct dao *dao)
{}

static int dao_rsc_reinit(struct dao *dao, const struct dao_desc *desc)
{}

static int dai_rsc_init(struct dai *dai,
			const struct daio_desc *desc,
			struct daio_mgr *mgr)
{}

static int dai_rsc_uninit(struct dai *dai)
{}

static int daio_mgr_get_rsc(struct rsc_mgr *mgr, enum DAIOTYP type)
{}

static int daio_mgr_put_rsc(struct rsc_mgr *mgr, enum DAIOTYP type)
{}

static int get_daio_rsc(struct daio_mgr *mgr,
			const struct daio_desc *desc,
			struct daio **rdaio)
{}

static int put_daio_rsc(struct daio_mgr *mgr, struct daio *daio)
{}

static int daio_mgr_enb_daio(struct daio_mgr *mgr, struct daio *daio)
{}

static int daio_mgr_dsb_daio(struct daio_mgr *mgr, struct daio *daio)
{}

static int daio_map_op(void *data, struct imapper *entry)
{}

static int daio_imap_add(struct daio_mgr *mgr, struct imapper *entry)
{}

static int daio_imap_delete(struct daio_mgr *mgr, struct imapper *entry)
{}

static int daio_mgr_commit_write(struct daio_mgr *mgr)
{}

int daio_mgr_create(struct hw *hw, void **rdaio_mgr)
{}

int daio_mgr_destroy(void *ptr)
{}