usr/src/uts/common/sys/audio/ac97.h
changeset 1549 9acf97172dc1
parent 0 68f95e015346
child 9484 fbd5ddc28e96
equal deleted inserted replaced
1548:f5237ec2d4c2 1549:9acf97172dc1
     1 /*
     1 /*
     2  * CDDL HEADER START
     2  * CDDL HEADER START
     3  *
     3  *
     4  * The contents of this file are subject to the terms of the
     4  * The contents of this file are subject to the terms of the
     5  * Common Development and Distribution License, Version 1.0 only
     5  * Common Development and Distribution License (the "License").
     6  * (the "License").  You may not use this file except in compliance
     6  * You may not use this file except in compliance with the License.
     7  * with the License.
       
     8  *
     7  *
     9  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
     8  * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
    10  * or http://www.opensolaris.org/os/licensing.
     9  * or http://www.opensolaris.org/os/licensing.
    11  * See the License for the specific language governing permissions
    10  * See the License for the specific language governing permissions
    12  * and limitations under the License.
    11  * and limitations under the License.
    17  * fields enclosed by brackets "[]" replaced with your own identifying
    16  * fields enclosed by brackets "[]" replaced with your own identifying
    18  * information: Portions Copyright [yyyy] [name of copyright owner]
    17  * information: Portions Copyright [yyyy] [name of copyright owner]
    19  *
    18  *
    20  * CDDL HEADER END
    19  * CDDL HEADER END
    21  */
    20  */
       
    21 
    22 /*
    22 /*
    23  * Copyright (c) 2000-2001 by Sun Microsystems, Inc.
    23  * Copyright 2006 Sun Microsystems, Inc.  All rights reserved.
    24  * All rights reserved.
    24  * Use is subject to license terms.
    25  *
    25  */
       
    26 
       
    27 /*
    26  * CAUTION: This header file has not gone through a formal review process.
    28  * CAUTION: This header file has not gone through a formal review process.
    27  *	Thus its commitment level is very low and may change or be removed
    29  *	Thus its commitment level is very low and may change or be removed
    28  *	at any time.
    30  *	at any time.
    29  */
    31  */
    30 
    32 
   244 #define	PCMOVR_RIGHT_MAX_ATTEN				0x001f
   246 #define	PCMOVR_RIGHT_MAX_ATTEN				0x001f
   245 #define	PCMOVR_LEFT_GAIN_MASK				0x1f00
   247 #define	PCMOVR_LEFT_GAIN_MASK				0x1f00
   246 #define	PCMOVR_LEFT_0dB_GAIN				0x1000
   248 #define	PCMOVR_LEFT_0dB_GAIN				0x1000
   247 #define	PCMOVR_LEFT_MAX_ATTEN				0x1f00
   249 #define	PCMOVR_LEFT_MAX_ATTEN				0x1f00
   248 #define	PCMOVR_MUTE					0x8000
   250 #define	PCMOVR_MUTE					0x8000
       
   251 #define	PCMOVR_GAIN_BITS				5
   249 
   252 
   250 /* Record Select Control Register			Index 1ah */
   253 /* Record Select Control Register			Index 1ah */
   251 #define	AC97_RECORD_SELECT_CTRL_REGISTER		0x1a
   254 #define	AC97_RECORD_SELECT_CTRL_REGISTER		0x1a
   252 #define	RSCR_R_MIC					0x0000
   255 #define	RSCR_R_MIC					0x0000
   253 #define	RSCR_R_CD					0x0001
   256 #define	RSCR_R_CD					0x0001