1 /* SPDX-License-Identifier: GPL-2.0-or-later * 1 2 /* 3 * Driver for PowerMac Burgundy onboard soundc 4 * Copyright (c) 2001 by Takashi Iwai <tiwai@s 5 * based on dmasound.c. 6 */ 7 8 9 #ifndef __BURGUNDY_H 10 #define __BURGUNDY_H 11 12 #define MASK_ADDR_BURGUNDY_INPBOOST (0x10 << 1 13 #define MASK_ADDR_BURGUNDY_INPSEL21 (0x11 << 1 14 #define MASK_ADDR_BURGUNDY_INPSEL3 (0x12 << 12 15 16 #define MASK_ADDR_BURGUNDY_GAINCH1 (0x13 << 12 17 #define MASK_ADDR_BURGUNDY_GAINCH2 (0x14 << 12 18 #define MASK_ADDR_BURGUNDY_GAINCH3 (0x15 << 12 19 #define MASK_ADDR_BURGUNDY_GAINCH4 (0x16 << 12 20 21 #define MASK_ADDR_BURGUNDY_VOLCH1 (0x20 << 12) 22 #define MASK_ADDR_BURGUNDY_VOLCH2 (0x21 << 12) 23 #define MASK_ADDR_BURGUNDY_VOLCH3 (0x22 << 12) 24 #define MASK_ADDR_BURGUNDY_VOLCH4 (0x23 << 12) 25 26 #define MASK_ADDR_BURGUNDY_CAPTURESELECTS (0x2 27 #define MASK_ADDR_BURGUNDY_OUTPUTSELECTS (0x2B 28 #define MASK_ADDR_BURGUNDY_VOLMIX01 (0x2D << 1 29 #define MASK_ADDR_BURGUNDY_VOLMIX23 (0x2E << 1 30 #define MASK_ADDR_BURGUNDY_OUTPUTENABLES (0x2F 31 32 #define MASK_ADDR_BURGUNDY_MASTER_VOLUME (0x30 33 34 #define MASK_ADDR_BURGUNDY_MORE_OUTPUTENABLES 35 36 #define MASK_ADDR_BURGUNDY_ATTENSPEAKER (0x62 37 #define MASK_ADDR_BURGUNDY_ATTENLINEOUT (0x63 38 #define MASK_ADDR_BURGUNDY_ATTENHP (0x64 << 12 39 #define MASK_ADDR_BURGUNDY_ATTENMONO (0x65 << 40 41 #define MASK_ADDR_BURGUNDY_HOSTIFAD (0x78 << 1 42 #define MASK_ADDR_BURGUNDY_HOSTIFEH (0x79 << 1 43 44 #define MASK_ADDR_BURGUNDY_VOLCD (MASK_ADDR_BU 45 #define MASK_ADDR_BURGUNDY_VOLLINE (MASK_ADDR_ 46 #define MASK_ADDR_BURGUNDY_VOLMIC (MASK_ADDR_B 47 #define MASK_ADDR_BURGUNDY_VOLMODEM (MASK_ADDR 48 49 #define MASK_ADDR_BURGUNDY_GAINCD (MASK_ADDR_B 50 #define MASK_ADDR_BURGUNDY_GAINLINE (MASK_ADDR 51 #define MASK_ADDR_BURGUNDY_GAINMIC (MASK_ADDR_ 52 #define MASK_ADDR_BURGUNDY_GAINMODEM (MASK_ADD 53 54 55 /* These are all default values for the burgun 56 #define DEF_BURGUNDY_INPSEL21 (0xAA) 57 #define DEF_BURGUNDY_INPSEL3_IMAC (0x0A) 58 #define DEF_BURGUNDY_INPSEL3_PMAC (0x05) 59 60 #define DEF_BURGUNDY_GAINCD (0x33) 61 #define DEF_BURGUNDY_GAINLINE (0x44) 62 #define DEF_BURGUNDY_GAINMIC (0x44) 63 #define DEF_BURGUNDY_GAINMODEM (0x06) 64 65 /* Remember: lowest volume here is 0x9B (155) 66 #define DEF_BURGUNDY_VOLCD (0xCCCCCCCC) 67 #define DEF_BURGUNDY_VOLLINE (0x00000000) 68 #define DEF_BURGUNDY_VOLMIC (0x00000000) 69 #define DEF_BURGUNDY_VOLMODEM (0xCCCCCCCC) 70 71 #define DEF_BURGUNDY_OUTPUTSELECTS (0x010F010F 72 #define DEF_BURGUNDY_OUTPUTENABLES (0x0100000A 73 74 /* #define DEF_BURGUNDY_MASTER_VOLUME (0xFFFFF 75 #define DEF_BURGUNDY_MASTER_VOLUME (0xDDDDDDDD 76 77 #define DEF_BURGUNDY_MORE_OUTPUTENABLES (0x7E) 78 79 #define DEF_BURGUNDY_ATTENSPEAKER (0x44) 80 #define DEF_BURGUNDY_ATTENLINEOUT (0xCC) 81 #define DEF_BURGUNDY_ATTENHP (0xCC) 82 83 /* MORE_OUTPUTENABLES bits */ 84 #define BURGUNDY_OUTPUT_LEFT 0x02 85 #define BURGUNDY_OUTPUT_RIGHT 0x04 86 #define BURGUNDY_LINEOUT_LEFT 0x08 87 #define BURGUNDY_LINEOUT_RIGHT 0x10 88 #define BURGUNDY_HP_LEFT 0x20 89 #define BURGUNDY_HP_RIGHT 0x40 90 #define BURGUNDY_OUTPUT_INTERN 0x80 91 92 /* Headphone detection bits */ 93 #define BURGUNDY_HPDETECT_PMAC_BACK 0x04 94 #define BURGUNDY_HPDETECT_IMAC_SIDE 0x04 95 #define BURGUNDY_HPDETECT_IMAC_UPPER 0x08 96 #define BURGUNDY_HPDETECT_IMAC_LOWER 0x01 97 98 /* Volume offset */ 99 #define BURGUNDY_VOLUME_OFFSET 155 100 101 #endif /* __BURGUNDY_H */ 102
Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.