164562Sgshapiro/* $FreeBSD$ */
290792Sgshapiro/*
390792Sgshapiro * This is part of the Driver for Video Capture Cards (Frame grabbers)
490792Sgshapiro * and TV Tuner cards using the Brooktree Bt848, Bt848A, Bt849A, Bt878, Bt879
590792Sgshapiro * chipset.
690792Sgshapiro * Copyright Roger Hardiman and Amancio Hasty.
790792Sgshapiro *
890792Sgshapiro * bktr_audio : This deals with controlling the audio on TV cards,
990792Sgshapiro *                controlling the Audio Multiplexer (audio source selector).
1090792Sgshapiro *                controlling any MSP34xx stereo audio decoders.
1190792Sgshapiro *                controlling any DPL35xx dolby surroud sound audio decoders.
1264562Sgshapiro *                initialising TDA98xx audio devices.
1364562Sgshapiro *
1464562Sgshapiro */
1564562Sgshapiro
1664562Sgshapiro/*-
1764562Sgshapiro * 1. Redistributions of source code must retain the
1890792Sgshapiro * Copyright (c) 1997 Amancio Hasty, 1999 Roger Hardiman
1990792Sgshapiro * All rights reserved.
2064562Sgshapiro *
2164562Sgshapiro * Redistribution and use in source and binary forms, with or without
2264562Sgshapiro * modification, are permitted provided that the following conditions
2364562Sgshapiro * are met:
2464562Sgshapiro * 1. Redistributions of source code must retain the above copyright
2564562Sgshapiro *    notice, this list of conditions and the following disclaimer.
2664562Sgshapiro * 2. Redistributions in binary form must reproduce the above copyright
2764562Sgshapiro *    notice, this list of conditions and the following disclaimer in the
2864562Sgshapiro *    documentation and/or other materials provided with the distribution.
2964562Sgshapiro * 3. All advertising materials mentioning features or use of this software
3064562Sgshapiro *    must display the following acknowledgement:
3164562Sgshapiro *      This product includes software developed by Amancio Hasty and
3264562Sgshapiro *      Roger Hardiman
3390792Sgshapiro * 4. The name of the author may not be used to endorse or promote products
3464562Sgshapiro *    derived from this software without specific prior written permission.
3590792Sgshapiro *
3664562Sgshapiro * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
3764562Sgshapiro * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
3864562Sgshapiro * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
3964562Sgshapiro * DISCLAIMED.  IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT,
4090792Sgshapiro * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
4190792Sgshapiro * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
4290792Sgshapiro * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
4390792Sgshapiro * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
4464562Sgshapiro * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
4590792Sgshapiro * ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
4690792Sgshapiro * POSSIBILITY OF SUCH DAMAGE.
4764562Sgshapiro */
4864562Sgshapiro
4964562Sgshapiro/*
5064562Sgshapiro * Select Audio source, and allow muting
5171345Sgshapiro */
5264562Sgshapiroint	set_audio( bktr_ptr_t bktr, int mode );
5364562Sgshapirovoid	temp_mute( bktr_ptr_t bktr, int flag );
5490792Sgshapiro
5564562Sgshapiro
5664562Sgshapiro/*
5764562Sgshapiro * Initialise any MSP or TDA devices
5864562Sgshapiro */
5964562Sgshapirovoid	init_audio_devices( bktr_ptr_t bktr );
6064562Sgshapiro
6164562Sgshapiro
6264562Sgshapiro/*
6390792Sgshapiro * MSP34xx Audio Chip functions.
6464562Sgshapiro */
6564562Sgshapirovoid	msp_autodetect( bktr_ptr_t bktr );
6664562Sgshapirovoid	msp_read_id( bktr_ptr_t bktr );
6790792Sgshapiro#ifdef BKTR_NEW_MSP34XX_DRIVER
6864562Sgshapiroint	msp_attach(bktr_ptr_t bktr);
6964562Sgshapiroint	msp_detach(bktr_ptr_t bktr);
7064562Sgshapirovoid	msp_wake_thread(bktr_ptr_t bktr);
7164562Sgshapirovoid	msp_halt_thread(bktr_ptr_t bktr);
7264562Sgshapiro#endif
7364562Sgshapiro
7464562Sgshapiro
7564562Sgshapiro/*
7664562Sgshapiro * DPL35xx Audio Chip functions.
7764562Sgshapiro */
7864562Sgshapirovoid	dpl_autodetect( bktr_ptr_t bktr );
7990792Sgshapirovoid	dpl_read_id( bktr_ptr_t bktr );
8064562Sgshapiro
8190792Sgshapiro
8264562Sgshapiro/*
8364562Sgshapiro * TDA98xx Audio Chip functions.
8490792Sgshapiro */
8564562Sgshapirovoid	init_BTSC( bktr_ptr_t bktr );
8664562Sgshapiroint	set_BTSC( bktr_ptr_t bktr, int control );
8764562Sgshapiro
8864562Sgshapiro
8964562Sgshapiro
9064562Sgshapiro