linux/sound/pci/ctxfi/ctamixer.c

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

#include "ctamixer.h"
#include "cthardware.h"
#include <linux/slab.h>

#define AMIXER_RESOURCE_NUM
#define SUM_RESOURCE_NUM

#define AMIXER_Y_IMMEDIATE

#define BLANK_SLOT

static void amixer_master(struct rsc *rsc)
{}

static void amixer_next_conj(struct rsc *rsc)
{}

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

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

static const struct rsc_ops amixer_basic_rsc_ops =;

static int amixer_set_input(struct amixer *amixer, struct rsc *rsc)
{}

/* y is a 14-bit immediate constant */
static int amixer_set_y(struct amixer *amixer, unsigned int y)
{}

static int amixer_set_invalid_squash(struct amixer *amixer, unsigned int iv)
{}

static int amixer_set_sum(struct amixer *amixer, struct sum *sum)
{}

static int amixer_commit_write(struct amixer *amixer)
{}

static int amixer_commit_raw_write(struct amixer *amixer)
{}

static int amixer_get_y(struct amixer *amixer)
{}

static int amixer_setup(struct amixer *amixer, struct rsc *input,
			unsigned int scale, struct sum *sum)
{}

static const struct amixer_rsc_ops amixer_ops =;

static int amixer_rsc_init(struct amixer *amixer,
			   const struct amixer_desc *desc,
			   struct amixer_mgr *mgr)
{}

static int amixer_rsc_uninit(struct amixer *amixer)
{}

static int get_amixer_rsc(struct amixer_mgr *mgr,
			  const struct amixer_desc *desc,
			  struct amixer **ramixer)
{}

static int put_amixer_rsc(struct amixer_mgr *mgr, struct amixer *amixer)
{}

int amixer_mgr_create(struct hw *hw, void **ramixer_mgr)
{}

int amixer_mgr_destroy(void *ptr)
{}

/* SUM resource management */

static void sum_master(struct rsc *rsc)
{}

static void sum_next_conj(struct rsc *rsc)
{}

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

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

static const struct rsc_ops sum_basic_rsc_ops =;

static int sum_rsc_init(struct sum *sum,
			const struct sum_desc *desc,
			struct sum_mgr *mgr)
{}

static int sum_rsc_uninit(struct sum *sum)
{}

static int get_sum_rsc(struct sum_mgr *mgr,
		       const struct sum_desc *desc,
		       struct sum **rsum)
{}

static int put_sum_rsc(struct sum_mgr *mgr, struct sum *sum)
{}

int sum_mgr_create(struct hw *hw, void **rsum_mgr)
{}

int sum_mgr_destroy(void *ptr)
{}