xref: /netbsd/sys/dev/pci/bktr/bktr_audio.h (revision 6550d01e)
1 /* $SourceForge: bktr_audio.h,v 1.4 2003/03/11 23:11:21 thomasklausner Exp $ */
2 
3 /*	$NetBSD: bktr_audio.h,v 1.4 2005/12/11 12:23:22 christos Exp $	*/
4 /* $FreeBSD: src/sys/dev/bktr/bktr_audio.h,v 1.2 1999/10/28 13:58:14 roger Exp$ */
5 
6 /*
7  * This is part of the Driver for Video Capture Cards (Frame grabbers)
8  * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
9  * chipset.
10  * Copyright Roger Hardiman and Amancio Hasty.
11  *
12  * bktr_audio : This deals with controlling the audio on TV cards,
13  *                controlling the Audio Multiplexer (audio source selector).
14  *                controlling any MSP34xx stereo audio decoders.
15  *                controlling any DPL35xx dolby surround sound audio decoders.
16  *                initialising TDA98xx audio devices.
17  *
18  */
19 
20 /*
21  * 1. Redistributions of source code must retain the
22  * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman
23  * All rights reserved.
24  *
25  * Redistribution and use in source and binary forms, with or without
26  * modification, are permitted provided that the following conditions
27  * are met:
28  * 1. Redistributions of source code must retain the above copyright
29  *    notice, this list of conditions and the following disclaimer.
30  * 2. Redistributions in binary form must reproduce the above copyright
31  *    notice, this list of conditions and the following disclaimer in the
32  *    documentation and/or other materials provided with the distribution.
33  * 3. All advertising materials mentioning features or use of this software
34  *    must display the following acknowledgement:
35  *      This product includes software developed by Amancio Hasty and
36  *      Roger Hardiman
37  * 4. The name of the author may not be used to endorse or promote products
38  *    derived from this software without specific prior written permission.
39  *
40  * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
41  * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
42  * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
43  * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
44  * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
45  * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
46  * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
47  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
48  * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
49  * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
50  * POSSIBILITY OF SUCH DAMAGE.
51  */
52 
53 /*
54  * Select Audio source, and allow muting
55  */
56 int	set_audio(bktr_ptr_t bktr, int mode);
57 void	temp_mute(bktr_ptr_t bktr, int flag);
58 
59 
60 /*
61  * Initialise any MSP or TDA devices
62  */
63 void	init_audio_devices(bktr_ptr_t bktr);
64 
65 
66 /*
67  * MSP34xx Audio Chip functions.
68  */
69 void	msp_autodetect(bktr_ptr_t bktr);
70 void	msp_read_id(bktr_ptr_t bktr);
71 
72 
73 /*
74  * DPL35xx Audio Chip functions.
75  */
76 void	dpl_autodetect(bktr_ptr_t bktr);
77 void	dpl_read_id(bktr_ptr_t bktr);
78 
79 
80 /*
81  * TDA98xx Audio Chip functions.
82  */
83 void	init_BTSC(bktr_ptr_t bktr);
84 int	set_BTSC(bktr_ptr_t bktr, int control);
85 
86 
87 
88