bktr_audio.h revision 52593
151694Sroger/* $FreeBSD: head/sys/dev/bktr/bktr_audio.h 52593 1999-10-28 13:58:17Z roger $ */ 251694Sroger 351694Sroger/* 451694Sroger * This is part of the Driver for Video Capture Cards (Frame grabbers) 551694Sroger * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879 651694Sroger * chipset. 751694Sroger * Copyright Roger Hardiman and Amancio Hasty. 851694Sroger * 951694Sroger * bktr_audio : This deals with controlling the audio on TV cards, 1051694Sroger * controlling the Audio Multiplexer (audio source selector). 1151694Sroger * controlling any MSP34xx stereo audio decoders. 1252593Sroger * controlling any DPL35xx dolby surroud sound audio decoders. 1351694Sroger * initialising TDA98xx audio devices. 1451694Sroger * 1551694Sroger */ 1651694Sroger 1751694Sroger/* 1851694Sroger * 1. Redistributions of source code must retain the 1951694Sroger * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman 2051694Sroger * All rights reserved. 2151694Sroger * 2251694Sroger * Redistribution and use in source and binary forms, with or without 2351694Sroger * modification, are permitted provided that the following conditions 2451694Sroger * are met: 2551694Sroger * 1. Redistributions of source code must retain the above copyright 2651694Sroger * notice, this list of conditions and the following disclaimer. 2751694Sroger * 2. Redistributions in binary form must reproduce the above copyright 2851694Sroger * notice, this list of conditions and the following disclaimer in the 2951694Sroger * documentation and/or other materials provided with the distribution. 3051694Sroger * 3. All advertising materials mentioning features or use of this software 3151694Sroger * must display the following acknowledgement: 3251694Sroger * This product includes software developed by Amancio Hasty and 3351694Sroger * Roger Hardiman 3451694Sroger * 4. The name of the author may not be used to endorse or promote products 3551694Sroger * derived from this software without specific prior written permission. 3651694Sroger * 3751694Sroger * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR 3851694Sroger * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED 3951694Sroger * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE 4051694Sroger * DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, 4151694Sroger * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES 4251694Sroger * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR 4351694Sroger * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 4451694Sroger * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, 4551694Sroger * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN 4651694Sroger * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 4751694Sroger * POSSIBILITY OF SUCH DAMAGE. 4851694Sroger */ 4951694Sroger 5051694Sroger/* 5151694Sroger * Select Audio source, and allow muting 5251694Sroger */ 5351694Srogerint set_audio( bktr_ptr_t bktr, int mode ); 5451694Srogervoid temp_mute( bktr_ptr_t bktr, int flag ); 5551694Sroger 5651694Sroger 5751694Sroger/* 5851694Sroger * Initialise any MSP or TDA devices 5951694Sroger */ 6051694Srogervoid init_audio_devices( bktr_ptr_t bktr ); 6151694Sroger 6251694Sroger 6351694Sroger/* 6451694Sroger * MSP34xx Audio Chip functions. 6551694Sroger */ 6651694Srogervoid msp_autodetect( bktr_ptr_t bktr ); 6751694Srogervoid msp_read_id( bktr_ptr_t bktr ); 6851694Sroger 6951694Sroger 7051694Sroger/* 7152593Sroger * DPL35xx Audio Chip functions. 7252593Sroger */ 7352593Srogervoid dpl_autodetect( bktr_ptr_t bktr ); 7452593Srogervoid dpl_read_id( bktr_ptr_t bktr ); 7552593Sroger 7652593Sroger 7752593Sroger/* 7851694Sroger * TDA98xx Audio Chip functions. 7951694Sroger */ 8051694Srogervoid init_BTSC( bktr_ptr_t bktr ); 8151694Srogerint set_BTSC( bktr_ptr_t bktr, int control ); 8251694Sroger 8351694Sroger 8451694Sroger 85