1/**
2 * \file include/control_plugin.h
3 * \brief Common control plugin code
4 * \author Jaroslav Kysela <perex@perex.cz>
5 * \date 2021
6 *
7 * Application interface library for the ALSA driver.
8 * See the \ref control_plugins page for more details.
9 *
10 * \warning Using of contents of this header file might be dangerous
11 *	    in the sense of compatibility reasons. The contents might be
12 *	    freely changed in future.
13 */
14/*
15 *   This library is free software; you can redistribute it and/or modify
16 *   it under the terms of the GNU Lesser General Public License as
17 *   published by the Free Software Foundation; either version 2.1 of
18 *   the License, or (at your option) any later version.
19 *
20 *   This program is distributed in the hope that it will be useful,
21 *   but WITHOUT ANY WARRANTY; without even the implied warranty of
22 *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
23 *   GNU Lesser General Public License for more details.
24 *
25 *   You should have received a copy of the GNU Lesser General Public
26 *   License along with this library; if not, write to the Free Software
27 *   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA
28 *
29 */
30
31#ifndef __ALSA_CONTROL_PLUGIN_H
32#define __ALSA_CONTROL_PLUGIN_H
33
34/**
35 * \defgroup Control_Plugins Primitive Control Plugins
36 * \ingroup Control
37 * See the \ref control_plugins page for more details.
38 * \{
39 */
40
41/*
42 * Control HW
43 */
44int snd_ctl_hw_open(snd_ctl_t **handle, const char *name, int card, int mode);
45int _snd_ctl_hw_open(snd_ctl_t **handlep, char *name, snd_config_t *root, snd_config_t *conf, int mode);
46
47/*
48 * Control Remap & Map
49 */
50int snd_ctl_remap_open(snd_ctl_t **handlep, const char *name, snd_config_t *remap,
51		       snd_config_t *map, snd_ctl_t *child, int mode);
52int _snd_ctl_remap_open(snd_ctl_t **handlep, char *name, snd_config_t *root, snd_config_t *conf, int mode);
53
54/** \} */
55
56#endif /* __ALSA_CONTROL_PLUGIN_H */
57