Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ALSA: oxygen: update hardware comments

Reformat and update the comments that describe the hardware connections
on the various models.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

authored by

Clemens Ladisch and committed by
Takashi Iwai
de664936 e2943efa

+156 -96
+15 -9
sound/pci/oxygen/oxygen.c
··· 20 20 /* 21 21 * CMI8788: 22 22 * 23 - * SPI 0 -> 1st AK4396 (front) 24 - * SPI 1 -> 2nd AK4396 (surround) 25 - * SPI 2 -> 3rd AK4396 (center/LFE) 26 - * SPI 3 -> WM8785 27 - * SPI 4 -> 4th AK4396 (back) 23 + * SPI 0 -> 1st AK4396 (front) 24 + * SPI 1 -> 2nd AK4396 (surround) 25 + * SPI 2 -> 3rd AK4396 (center/LFE) 26 + * SPI 3 -> WM8785 27 + * SPI 4 -> 4th AK4396 (back) 28 28 * 29 - * GPIO 0 -> DFS0 of AK5385 30 - * GPIO 1 -> DFS1 of AK5385 31 - * GPIO 8 -> enable headphone amplifier on HT-Omega models 29 + * GPIO 0 -> DFS0 of AK5385 30 + * GPIO 1 -> DFS1 of AK5385 31 + * GPIO 8 -> enable headphone amplifier on HT-Omega models 32 32 * 33 33 * CM9780: 34 34 * 35 - * GPO 0 -> route line-in (0) or AC97 output (1) to ADC input 35 + * LINE_OUT -> input of ADC 36 + * 37 + * AUX_IN <- aux 38 + * CD_IN <- CD 39 + * MIC_IN <- mic 40 + * 41 + * GPO 0 -> route line-in (0) or AC97 output (1) to ADC input 36 42 */ 37 43 38 44 #include <linux/delay.h>
+17 -18
sound/pci/oxygen/xonar_cs43xx.c
··· 22 22 * 23 23 * CMI8788: 24 24 * 25 - * I²C <-> CS4398 (front) 26 - * <-> CS4362A (surround, center/LFE, back) 25 + * I²C <-> CS4398 (addr 1001111) (front) 26 + * <-> CS4362A (addr 0011000) (surround, center/LFE, back) 27 27 * 28 - * GPI 0 <- external power present (DX only) 28 + * GPI 0 <- external power present (DX only) 29 29 * 30 - * GPIO 0 -> enable output to speakers 31 - * GPIO 1 -> route output to front panel 32 - * GPIO 2 -> M0 of CS5361 33 - * GPIO 3 -> M1 of CS5361 34 - * GPIO 8 -> route input jack to line-in (0) or mic-in (1) 35 - * 36 - * CS4398: 37 - * 38 - * AD0 <- 1 39 - * AD1 <- 1 40 - * 41 - * CS4362A: 42 - * 43 - * AD0 <- 0 30 + * GPIO 0 -> enable output to speakers 31 + * GPIO 1 -> route output to front panel 32 + * GPIO 2 -> M0 of CS5361 33 + * GPIO 3 -> M1 of CS5361 34 + * GPIO 6 -> ? 35 + * GPIO 7 -> ? 36 + * GPIO 8 -> route input jack to line-in (0) or mic-in (1) 44 37 * 45 38 * CM9780: 46 39 * 47 - * GPO 0 -> route line-in (0) or AC97 output (1) to CS5361 input 40 + * LINE_OUT -> input of ADC 41 + * 42 + * AUX_IN <- aux 43 + * MIC_IN <- mic 44 + * FMIC_IN <- front mic 45 + * 46 + * GPO 0 -> route line-in (0) or AC97 output (1) to CS5361 input 48 47 */ 49 48 50 49 #include <linux/pci.h>
+92 -58
sound/pci/oxygen/xonar_pcm179x.c
··· 22 22 * 23 23 * CMI8788: 24 24 * 25 - * SPI 0 -> 1st PCM1796 (front) 26 - * SPI 1 -> 2nd PCM1796 (surround) 27 - * SPI 2 -> 3rd PCM1796 (center/LFE) 28 - * SPI 4 -> 4th PCM1796 (back) 25 + * SPI 0 -> 1st PCM1796 (front) 26 + * SPI 1 -> 2nd PCM1796 (surround) 27 + * SPI 2 -> 3rd PCM1796 (center/LFE) 28 + * SPI 4 -> 4th PCM1796 (back) 29 29 * 30 - * GPIO 2 -> M0 of CS5381 31 - * GPIO 3 -> M1 of CS5381 32 - * GPIO 5 <- external power present (D2X only) 33 - * GPIO 7 -> ALT 34 - * GPIO 8 -> enable output to speakers 30 + * GPIO 2 -> M0 of CS5381 31 + * GPIO 3 -> M1 of CS5381 32 + * GPIO 5 <- external power present (D2X only) 33 + * GPIO 7 -> ALT 34 + * GPIO 8 -> enable output to speakers 35 35 * 36 36 * CM9780: 37 37 * 38 - * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 38 + * LINE_OUT -> input of ADC 39 + * 40 + * AUX_IN <- aux 41 + * VIDEO_IN <- CD 42 + * FMIC_IN <- mic 43 + * 44 + * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 39 45 */ 40 46 41 47 /* ··· 50 44 * 51 45 * CMI8788: 52 46 * 53 - * I²C <-> PCM1796 (front) 47 + * I²C <-> PCM1796 (addr 1001100) (front) 54 48 * 55 - * GPI 0 <- external power present 49 + * GPI 0 <- external power present 56 50 * 57 - * GPIO 0 -> enable output to speakers 58 - * GPIO 2 -> M0 of CS5381 59 - * GPIO 3 -> M1 of CS5381 60 - * GPIO 8 -> route input jack to line-in (0) or mic-in (1) 51 + * GPIO 0 -> enable HDMI (0) or speaker (1) output 52 + * GPIO 2 -> M0 of CS5381 53 + * GPIO 3 -> M1 of CS5381 54 + * GPIO 4 <- daughterboard detection 55 + * GPIO 5 <- daughterboard detection 56 + * GPIO 6 -> ? 57 + * GPIO 7 -> ? 58 + * GPIO 8 -> route input jack to line-in (0) or mic-in (1) 61 59 * 62 - * TXD -> HDMI controller 63 - * RXD <- HDMI controller 64 - * 65 - * PCM1796 front: AD1,0 <- 0,0 60 + * UART <-> HDMI controller 66 61 * 67 62 * CM9780: 68 63 * 69 - * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 64 + * LINE_OUT -> input of ADC 65 + * 66 + * AUX_IN <- aux 67 + * CD_IN <- CD 68 + * MIC_IN <- mic 69 + * 70 + * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 70 71 * 71 72 * no daughterboard 72 73 * ---------------- 73 74 * 74 - * GPIO 4 <- 1 75 + * GPIO 4 <- 1 75 76 * 76 77 * H6 daughterboard 77 78 * ---------------- 78 79 * 79 - * GPIO 4 <- 0 80 - * GPIO 5 <- 0 80 + * GPIO 4 <- 0 81 + * GPIO 5 <- 0 81 82 * 82 - * I²C <-> PCM1796 (surround) 83 - * <-> PCM1796 (center/LFE) 84 - * <-> PCM1796 (back) 85 - * 86 - * PCM1796 surround: AD1,0 <- 0,1 87 - * PCM1796 center/LFE: AD1,0 <- 1,0 88 - * PCM1796 back: AD1,0 <- 1,1 83 + * I²C <-> PCM1796 (addr 1001101) (surround) 84 + * <-> PCM1796 (addr 1001110) (center/LFE) 85 + * <-> PCM1796 (addr 1001111) (back) 89 86 * 90 87 * unknown daughterboard 91 88 * --------------------- 92 89 * 93 - * GPIO 4 <- 0 94 - * GPIO 5 <- 1 90 + * GPIO 4 <- 0 91 + * GPIO 5 <- 1 95 92 * 96 - * I²C <-> CS4362A (surround, center/LFE, back) 97 - * 98 - * CS4362A: AD0 <- 0 93 + * I²C <-> CS4362A (addr 0011000) (surround, center/LFE, back) 99 94 */ 100 95 101 96 /* ··· 105 98 * 106 99 * CMI8788: 107 100 * 108 - * I²C <-> PCM1792A 109 - * <-> CS2000 (ST only) 101 + * I²C <-> PCM1792A (addr 1001100) 102 + * <-> CS2000 (addr 1001110) (ST only) 110 103 * 111 - * ADC1 MCLK -> REF_CLK of CS2000 (ST only) 104 + * ADC1 MCLK -> REF_CLK of CS2000 (ST only) 112 105 * 113 - * GPI 0 <- external power present (STX only) 106 + * GPI 0 <- external power present (STX only) 114 107 * 115 - * GPIO 0 -> enable output to speakers 116 - * GPIO 1 -> route HP to front panel (0) or rear jack (1) 117 - * GPIO 2 -> M0 of CS5381 118 - * GPIO 3 -> M1 of CS5381 119 - * GPIO 7 -> route output to speaker jacks (0) or HP (1) 120 - * GPIO 8 -> route input jack to line-in (0) or mic-in (1) 108 + * GPIO 0 -> enable output to speakers 109 + * GPIO 1 -> route HP to front panel (0) or rear jack (1) 110 + * GPIO 2 -> M0 of CS5381 111 + * GPIO 3 -> M1 of CS5381 112 + * GPIO 4 <- daughterboard detection 113 + * GPIO 5 <- daughterboard detection 114 + * GPIO 6 -> ? 115 + * GPIO 7 -> route output to speaker jacks (0) or HP (1) 116 + * GPIO 8 -> route input jack to line-in (0) or mic-in (1) 121 117 * 122 118 * PCM1792A: 123 119 * 124 - * AD1,0 <- 0,0 125 - * SCK <- CLK_OUT of CS2000 (ST only) 126 - * 127 - * CS2000: 128 - * 129 - * AD0 <- 0 120 + * SCK <- CLK_OUT of CS2000 (ST only) 130 121 * 131 122 * CM9780: 132 123 * 133 - * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 124 + * LINE_OUT -> input of ADC 125 + * 126 + * AUX_IN <- aux 127 + * MIC_IN <- mic 128 + * 129 + * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 134 130 * 135 131 * H6 daughterboard 136 132 * ---------------- ··· 143 133 */ 144 134 145 135 /* 146 - * Xonar HDAV1.3 Slim 147 - * ------------------ 136 + * Xonar Xense 137 + * ----------- 148 138 * 149 139 * CMI8788: 150 140 * 151 - * GPIO 1 -> enable output 141 + * I²C <-> PCM1796 (addr 1001100) (front) 142 + * <-> CS4362A (addr 0011000) (surround, center/LFE, back) 143 + * <-> CS2000 (addr 1001110) 152 144 * 153 - * TXD -> HDMI controller 154 - * RXD <- HDMI controller 145 + * ADC1 MCLK -> REF_CLK of CS2000 146 + * 147 + * GPI 0 <- external power present 148 + * 149 + * GPIO 0 -> enable output 150 + * GPIO 1 -> route HP to front panel (0) or rear jack (1) 151 + * GPIO 2 -> M0 of CS5381 152 + * GPIO 3 -> M1 of CS5381 153 + * GPIO 4 -> enable output 154 + * GPIO 5 -> enable output 155 + * GPIO 6 -> ? 156 + * GPIO 7 -> route output to HP (0) or speaker (1) 157 + * GPIO 8 -> route input jack to mic-in (0) or line-in (1) 158 + * 159 + * CM9780: 160 + * 161 + * LINE_OUT -> input of ADC 162 + * 163 + * AUX_IN <- aux 164 + * VIDEO_IN <- ? 165 + * FMIC_IN <- mic 166 + * 167 + * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input 168 + * GPO 1 -> route mic-in from input jack (0) or front panel header (1) 155 169 */ 156 170 157 171 #include <linux/pci.h>
+32 -11
sound/pci/oxygen/xonar_wm87x6.c
··· 22 22 * 23 23 * CMI8788: 24 24 * 25 - * SPI 0 -> WM8766 (surround, center/LFE, back) 26 - * SPI 1 -> WM8776 (front, input) 25 + * SPI 0 -> WM8766 (surround, center/LFE, back) 26 + * SPI 1 -> WM8776 (front, input) 27 27 * 28 - * GPIO 4 <- headphone detect, 0 = plugged 29 - * GPIO 6 -> route input jack to mic-in (0) or line-in (1) 30 - * GPIO 7 -> enable output to front L/R speaker channels 31 - * GPIO 8 -> enable output to other speaker channels and front panel headphone 28 + * GPIO 4 <- headphone detect, 0 = plugged 29 + * GPIO 6 -> route input jack to mic-in (0) or line-in (1) 30 + * GPIO 7 -> enable output to front L/R speaker channels 31 + * GPIO 8 -> enable output to other speaker channels and front panel headphone 32 32 * 33 - * WM8766: 33 + * WM8776: 34 34 * 35 - * input 1 <- line 36 - * input 2 <- mic 37 - * input 3 <- front mic 38 - * input 4 <- aux 35 + * input 1 <- line 36 + * input 2 <- mic 37 + * input 3 <- front mic 38 + * input 4 <- aux 39 + */ 40 + 41 + /* 42 + * Xonar HDAV1.3 Slim 43 + * ------------------ 44 + * 45 + * CMI8788: 46 + * 47 + * I²C <-> WM8776 (addr 0011010) 48 + * 49 + * GPIO 0 -> disable HDMI output 50 + * GPIO 1 -> enable HP output 51 + * GPIO 6 -> firmware EEPROM I²C clock 52 + * GPIO 7 <-> firmware EEPROM I²C data 53 + * 54 + * UART <-> HDMI controller 55 + * 56 + * WM8776: 57 + * 58 + * input 1 <- mic 59 + * input 2 <- aux 39 60 */ 40 61 41 62 #include <linux/pci.h>