~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/sound/ppc/burgundy.h

Version: ~ [ linux-6.11.5 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.58 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.114 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.169 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.228 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.284 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.322 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.9 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /sound/ppc/burgundy.h (Version linux-6.11.5) and /sound/ppc/burgundy.h (Version linux-4.16.18)


  1 /* SPDX-License-Identifier: GPL-2.0-or-later * << 
  2 /*                                                  1 /*
  3  * Driver for PowerMac Burgundy onboard soundc      2  * Driver for PowerMac Burgundy onboard soundchips
  4  * Copyright (c) 2001 by Takashi Iwai <tiwai@s      3  * Copyright (c) 2001 by Takashi Iwai <tiwai@suse.de>
  5  *   based on dmasound.c.                           4  *   based on dmasound.c.
                                                   >>   5  *
                                                   >>   6  *   This program is free software; you can redistribute it and/or modify
                                                   >>   7  *   it under the terms of the GNU General Public License as published by
                                                   >>   8  *   the Free Software Foundation; either version 2 of the License, or
                                                   >>   9  *   (at your option) any later version.
                                                   >>  10  *
                                                   >>  11  *   This program is distributed in the hope that it will be useful,
                                                   >>  12  *   but WITHOUT ANY WARRANTY; without even the implied warranty of
                                                   >>  13  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
                                                   >>  14  *   GNU General Public License for more details.
                                                   >>  15  *
                                                   >>  16  *   You should have received a copy of the GNU General Public License
                                                   >>  17  *   along with this program; if not, write to the Free Software
                                                   >>  18  *   Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
  6  */                                                19  */
  7                                                    20 
  8                                                    21 
  9 #ifndef __BURGUNDY_H                               22 #ifndef __BURGUNDY_H
 10 #define __BURGUNDY_H                               23 #define __BURGUNDY_H
 11                                                    24 
 12 #define MASK_ADDR_BURGUNDY_INPBOOST (0x10 << 1     25 #define MASK_ADDR_BURGUNDY_INPBOOST (0x10 << 12)
 13 #define MASK_ADDR_BURGUNDY_INPSEL21 (0x11 << 1     26 #define MASK_ADDR_BURGUNDY_INPSEL21 (0x11 << 12)
 14 #define MASK_ADDR_BURGUNDY_INPSEL3 (0x12 << 12     27 #define MASK_ADDR_BURGUNDY_INPSEL3 (0x12 << 12)
 15                                                    28 
 16 #define MASK_ADDR_BURGUNDY_GAINCH1 (0x13 << 12     29 #define MASK_ADDR_BURGUNDY_GAINCH1 (0x13 << 12)
 17 #define MASK_ADDR_BURGUNDY_GAINCH2 (0x14 << 12     30 #define MASK_ADDR_BURGUNDY_GAINCH2 (0x14 << 12)
 18 #define MASK_ADDR_BURGUNDY_GAINCH3 (0x15 << 12     31 #define MASK_ADDR_BURGUNDY_GAINCH3 (0x15 << 12)
 19 #define MASK_ADDR_BURGUNDY_GAINCH4 (0x16 << 12     32 #define MASK_ADDR_BURGUNDY_GAINCH4 (0x16 << 12)
 20                                                    33 
 21 #define MASK_ADDR_BURGUNDY_VOLCH1 (0x20 << 12)     34 #define MASK_ADDR_BURGUNDY_VOLCH1 (0x20 << 12)
 22 #define MASK_ADDR_BURGUNDY_VOLCH2 (0x21 << 12)     35 #define MASK_ADDR_BURGUNDY_VOLCH2 (0x21 << 12)
 23 #define MASK_ADDR_BURGUNDY_VOLCH3 (0x22 << 12)     36 #define MASK_ADDR_BURGUNDY_VOLCH3 (0x22 << 12)
 24 #define MASK_ADDR_BURGUNDY_VOLCH4 (0x23 << 12)     37 #define MASK_ADDR_BURGUNDY_VOLCH4 (0x23 << 12)
 25                                                    38 
 26 #define MASK_ADDR_BURGUNDY_CAPTURESELECTS (0x2     39 #define MASK_ADDR_BURGUNDY_CAPTURESELECTS (0x2A << 12)
 27 #define MASK_ADDR_BURGUNDY_OUTPUTSELECTS (0x2B     40 #define MASK_ADDR_BURGUNDY_OUTPUTSELECTS (0x2B << 12)
 28 #define MASK_ADDR_BURGUNDY_VOLMIX01 (0x2D << 1     41 #define MASK_ADDR_BURGUNDY_VOLMIX01 (0x2D << 12)
 29 #define MASK_ADDR_BURGUNDY_VOLMIX23 (0x2E << 1     42 #define MASK_ADDR_BURGUNDY_VOLMIX23 (0x2E << 12)
 30 #define MASK_ADDR_BURGUNDY_OUTPUTENABLES (0x2F     43 #define MASK_ADDR_BURGUNDY_OUTPUTENABLES (0x2F << 12)
 31                                                    44 
 32 #define MASK_ADDR_BURGUNDY_MASTER_VOLUME (0x30     45 #define MASK_ADDR_BURGUNDY_MASTER_VOLUME (0x30 << 12)
 33                                                    46 
 34 #define MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES      47 #define MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES (0x60 << 12)
 35                                                    48 
 36 #define MASK_ADDR_BURGUNDY_ATTENSPEAKER (0x62      49 #define MASK_ADDR_BURGUNDY_ATTENSPEAKER (0x62 << 12)
 37 #define MASK_ADDR_BURGUNDY_ATTENLINEOUT (0x63      50 #define MASK_ADDR_BURGUNDY_ATTENLINEOUT (0x63 << 12)
 38 #define MASK_ADDR_BURGUNDY_ATTENHP (0x64 << 12     51 #define MASK_ADDR_BURGUNDY_ATTENHP (0x64 << 12)
 39 #define MASK_ADDR_BURGUNDY_ATTENMONO (0x65 <<      52 #define MASK_ADDR_BURGUNDY_ATTENMONO (0x65 << 12)
 40                                                    53 
 41 #define MASK_ADDR_BURGUNDY_HOSTIFAD (0x78 << 1     54 #define MASK_ADDR_BURGUNDY_HOSTIFAD (0x78 << 12)
 42 #define MASK_ADDR_BURGUNDY_HOSTIFEH (0x79 << 1     55 #define MASK_ADDR_BURGUNDY_HOSTIFEH (0x79 << 12)
 43                                                    56 
 44 #define MASK_ADDR_BURGUNDY_VOLCD (MASK_ADDR_BU     57 #define MASK_ADDR_BURGUNDY_VOLCD (MASK_ADDR_BURGUNDY_VOLCH1)
 45 #define MASK_ADDR_BURGUNDY_VOLLINE (MASK_ADDR_     58 #define MASK_ADDR_BURGUNDY_VOLLINE (MASK_ADDR_BURGUNDY_VOLCH2)
 46 #define MASK_ADDR_BURGUNDY_VOLMIC (MASK_ADDR_B     59 #define MASK_ADDR_BURGUNDY_VOLMIC (MASK_ADDR_BURGUNDY_VOLCH3)
 47 #define MASK_ADDR_BURGUNDY_VOLMODEM (MASK_ADDR     60 #define MASK_ADDR_BURGUNDY_VOLMODEM (MASK_ADDR_BURGUNDY_VOLCH4)
 48                                                    61 
 49 #define MASK_ADDR_BURGUNDY_GAINCD (MASK_ADDR_B     62 #define MASK_ADDR_BURGUNDY_GAINCD (MASK_ADDR_BURGUNDY_GAINCH1)
 50 #define MASK_ADDR_BURGUNDY_GAINLINE (MASK_ADDR     63 #define MASK_ADDR_BURGUNDY_GAINLINE (MASK_ADDR_BURGUNDY_GAINCH2)
 51 #define MASK_ADDR_BURGUNDY_GAINMIC (MASK_ADDR_     64 #define MASK_ADDR_BURGUNDY_GAINMIC (MASK_ADDR_BURGUNDY_GAINCH3)
 52 #define MASK_ADDR_BURGUNDY_GAINMODEM (MASK_ADD     65 #define MASK_ADDR_BURGUNDY_GAINMODEM (MASK_ADDR_BURGUNDY_VOLCH4)
 53                                                    66 
 54                                                    67 
 55 /* These are all default values for the burgun     68 /* These are all default values for the burgundy */
 56 #define DEF_BURGUNDY_INPSEL21 (0xAA)               69 #define DEF_BURGUNDY_INPSEL21 (0xAA)
 57 #define DEF_BURGUNDY_INPSEL3_IMAC (0x0A)           70 #define DEF_BURGUNDY_INPSEL3_IMAC (0x0A)
 58 #define DEF_BURGUNDY_INPSEL3_PMAC (0x05)           71 #define DEF_BURGUNDY_INPSEL3_PMAC (0x05)
 59                                                    72 
 60 #define DEF_BURGUNDY_GAINCD (0x33)                 73 #define DEF_BURGUNDY_GAINCD (0x33)
 61 #define DEF_BURGUNDY_GAINLINE (0x44)               74 #define DEF_BURGUNDY_GAINLINE (0x44)
 62 #define DEF_BURGUNDY_GAINMIC (0x44)                75 #define DEF_BURGUNDY_GAINMIC (0x44)
 63 #define DEF_BURGUNDY_GAINMODEM (0x06)              76 #define DEF_BURGUNDY_GAINMODEM (0x06)
 64                                                    77 
 65 /* Remember: lowest volume here is 0x9B (155)      78 /* Remember: lowest volume here is 0x9B (155) */
 66 #define DEF_BURGUNDY_VOLCD (0xCCCCCCCC)            79 #define DEF_BURGUNDY_VOLCD (0xCCCCCCCC)
 67 #define DEF_BURGUNDY_VOLLINE (0x00000000)          80 #define DEF_BURGUNDY_VOLLINE (0x00000000)
 68 #define DEF_BURGUNDY_VOLMIC (0x00000000)           81 #define DEF_BURGUNDY_VOLMIC (0x00000000)
 69 #define DEF_BURGUNDY_VOLMODEM (0xCCCCCCCC)         82 #define DEF_BURGUNDY_VOLMODEM (0xCCCCCCCC)
 70                                                    83 
 71 #define DEF_BURGUNDY_OUTPUTSELECTS (0x010F010F     84 #define DEF_BURGUNDY_OUTPUTSELECTS (0x010F010F)
 72 #define DEF_BURGUNDY_OUTPUTENABLES (0x0100000A     85 #define DEF_BURGUNDY_OUTPUTENABLES (0x0100000A)
 73                                                    86 
 74 /* #define DEF_BURGUNDY_MASTER_VOLUME (0xFFFFF     87 /* #define DEF_BURGUNDY_MASTER_VOLUME (0xFFFFFFFF) */ /* too loud */
 75 #define DEF_BURGUNDY_MASTER_VOLUME (0xDDDDDDDD     88 #define DEF_BURGUNDY_MASTER_VOLUME (0xDDDDDDDD)
 76                                                    89 
 77 #define DEF_BURGUNDY_MORE_OUTPUTENABLES (0x7E)     90 #define DEF_BURGUNDY_MORE_OUTPUTENABLES (0x7E)
 78                                                    91 
 79 #define DEF_BURGUNDY_ATTENSPEAKER (0x44)           92 #define DEF_BURGUNDY_ATTENSPEAKER (0x44)
 80 #define DEF_BURGUNDY_ATTENLINEOUT (0xCC)           93 #define DEF_BURGUNDY_ATTENLINEOUT (0xCC)
 81 #define DEF_BURGUNDY_ATTENHP (0xCC)                94 #define DEF_BURGUNDY_ATTENHP (0xCC)
 82                                                    95 
 83 /* MORE_OUTPUTENABLES bits */                      96 /* MORE_OUTPUTENABLES bits */
 84 #define BURGUNDY_OUTPUT_LEFT    0x02               97 #define BURGUNDY_OUTPUT_LEFT    0x02
 85 #define BURGUNDY_OUTPUT_RIGHT   0x04               98 #define BURGUNDY_OUTPUT_RIGHT   0x04
 86 #define BURGUNDY_LINEOUT_LEFT   0x08               99 #define BURGUNDY_LINEOUT_LEFT   0x08
 87 #define BURGUNDY_LINEOUT_RIGHT  0x10              100 #define BURGUNDY_LINEOUT_RIGHT  0x10
 88 #define BURGUNDY_HP_LEFT        0x20              101 #define BURGUNDY_HP_LEFT        0x20
 89 #define BURGUNDY_HP_RIGHT       0x40              102 #define BURGUNDY_HP_RIGHT       0x40
 90 #define BURGUNDY_OUTPUT_INTERN  0x80              103 #define BURGUNDY_OUTPUT_INTERN  0x80
 91                                                   104 
 92 /* Headphone detection bits */                    105 /* Headphone detection bits */
 93 #define BURGUNDY_HPDETECT_PMAC_BACK     0x04      106 #define BURGUNDY_HPDETECT_PMAC_BACK     0x04
 94 #define BURGUNDY_HPDETECT_IMAC_SIDE     0x04      107 #define BURGUNDY_HPDETECT_IMAC_SIDE     0x04
 95 #define BURGUNDY_HPDETECT_IMAC_UPPER    0x08      108 #define BURGUNDY_HPDETECT_IMAC_UPPER    0x08
 96 #define BURGUNDY_HPDETECT_IMAC_LOWER    0x01      109 #define BURGUNDY_HPDETECT_IMAC_LOWER    0x01
 97                                                   110 
 98 /* Volume offset */                               111 /* Volume offset */
 99 #define BURGUNDY_VOLUME_OFFSET  155               112 #define BURGUNDY_VOLUME_OFFSET  155
100                                                   113 
101 #endif /* __BURGUNDY_H */                         114 #endif /* __BURGUNDY_H */
102                                                   115 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php