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