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