The Design and Implementation of the FreeBSD Operating System, Second Edition
Now available: The Design and Implementation of the FreeBSD Operating System (Second Edition)


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]

FreeBSD/Linux Kernel Cross Reference
sys/dev/bktr/bktr_audio.h

Version: -  FREEBSD  -  FREEBSD-13-STABLE  -  FREEBSD-13-0  -  FREEBSD-12-STABLE  -  FREEBSD-12-0  -  FREEBSD-11-STABLE  -  FREEBSD-11-0  -  FREEBSD-10-STABLE  -  FREEBSD-10-0  -  FREEBSD-9-STABLE  -  FREEBSD-9-0  -  FREEBSD-8-STABLE  -  FREEBSD-8-0  -  FREEBSD-7-STABLE  -  FREEBSD-7-0  -  FREEBSD-6-STABLE  -  FREEBSD-6-0  -  FREEBSD-5-STABLE  -  FREEBSD-5-0  -  FREEBSD-4-STABLE  -  FREEBSD-3-STABLE  -  FREEBSD22  -  l41  -  OPENBSD  -  linux-2.6  -  MK84  -  PLAN9  -  xnu-8792 
SearchContext: -  none  -  3  -  10 

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

Cache object: 919c3c32a987861ded093bb39b7387c2


[ source navigation ] [ diff markup ] [ identifier search ] [ freetext search ] [ file search ] [ list types ] [ track identifier ]


This page is part of the FreeBSD/Linux Linux Kernel Cross-Reference, and was automatically generated using a modified version of the LXR engine.