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