/* SPDX-License-Identifier: GPL-2.0-only */ /* * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved. * * @File ctamixer.h * * @Brief * This file contains the definition of the Audio Mixer * resource management object. * * @Author Liu Chun * @Date May 21 2008 */ #ifndef CTAMIXER_H #define CTAMIXER_H #include "ctresource.h" #include <linux/spinlock.h> #include <sound/core.h> /* Define the descriptor of a summation node resource */ struct sum { … }; /* Define sum resource request description info */ struct sum_desc { … }; struct sum_mgr { … }; /* Constructor and destructor of daio resource manager */ int sum_mgr_create(struct hw *hw, void **ptr); int sum_mgr_destroy(void *ptr); /* Define the descriptor of a amixer resource */ struct amixer_rsc_ops; struct amixer { … }; struct amixer_rsc_ops { … }; /* Define amixer resource request description info */ struct amixer_desc { … }; struct amixer_mgr { … }; /* Constructor and destructor of amixer resource manager */ int amixer_mgr_create(struct hw *hw, void **ramixer_mgr); int amixer_mgr_destroy(void *amixer_mgr); #endif /* CTAMIXER_H */