xref: /freebsd/sys/dev/sound/pcm/dsp.h (revision 4d846d260e2b9a3d4d0a701462568268cbfe7a5b)
1098ca2bdSWarner Losh /*-
2*4d846d26SWarner Losh  * SPDX-License-Identifier: BSD-2-Clause
3718cf2ccSPedro F. Giffuni  *
490da2b28SAriff Abdullah  * Copyright (c) 2005-2009 Ariff Abdullah <ariff@FreeBSD.org>
590da2b28SAriff Abdullah  * Portions Copyright (c) Ryan Beasley <ryan.beasley@gmail.com> - GSoC 2006
690da2b28SAriff Abdullah  * Copyright (c) 1999 Cameron Grant <cg@FreeBSD.org>
7987e5972SCameron Grant  * All rights reserved.
8987e5972SCameron Grant  *
9987e5972SCameron Grant  * Redistribution and use in source and binary forms, with or without
10987e5972SCameron Grant  * modification, are permitted provided that the following conditions
11987e5972SCameron Grant  * are met:
12987e5972SCameron Grant  * 1. Redistributions of source code must retain the above copyright
13987e5972SCameron Grant  *    notice, this list of conditions and the following disclaimer.
14987e5972SCameron Grant  * 2. Redistributions in binary form must reproduce the above copyright
15987e5972SCameron Grant  *    notice, this list of conditions and the following disclaimer in the
16987e5972SCameron Grant  *    documentation and/or other materials provided with the distribution.
17987e5972SCameron Grant  *
18987e5972SCameron Grant  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
19987e5972SCameron Grant  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
20987e5972SCameron Grant  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
21987e5972SCameron Grant  * ARE DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
22987e5972SCameron Grant  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
23987e5972SCameron Grant  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
24987e5972SCameron Grant  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
25987e5972SCameron Grant  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
26987e5972SCameron Grant  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
27987e5972SCameron Grant  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
28987e5972SCameron Grant  * SUCH DAMAGE.
29987e5972SCameron Grant  *
3053c5a968SPeter Wemm  * $FreeBSD$
31987e5972SCameron Grant  */
32987e5972SCameron Grant 
33fcacf52eSJoel Dahl #ifndef _PCMDSP_H_
34fcacf52eSJoel Dahl #define _PCMDSP_H_
35fcacf52eSJoel Dahl 
365ee30e27SMathew Kanner extern struct cdevsw dsp_cdevsw;
37b611c801SAlexander Leidinger 
38e4e61333SAriff Abdullah struct dsp_cdevinfo;
39e4e61333SAriff Abdullah 
40bba4862cSAriff Abdullah char *dsp_unit2name(char *, size_t, int);
41b611c801SAlexander Leidinger int dsp_oss_audioinfo(struct cdev *, oss_audioinfo *);
42b611c801SAlexander Leidinger 
43e4e61333SAriff Abdullah void dsp_cdevinfo_init(struct snddev_info *);
44e4e61333SAriff Abdullah void dsp_cdevinfo_flush(struct snddev_info *);
45e4e61333SAriff Abdullah 
46b611c801SAlexander Leidinger #endif /* !_PCMDSP_H_ */
47