提交 de664936 编写于 作者: C Clemens Ladisch 提交者: Takashi Iwai

ALSA: oxygen: update hardware comments

Reformat and update the comments that describe the hardware connections
on the various models.
Signed-off-by: NClemens Ladisch <clemens@ladisch.de>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
上级 e2943efa
...@@ -20,19 +20,25 @@ ...@@ -20,19 +20,25 @@
/* /*
* CMI8788: * CMI8788:
* *
* SPI 0 -> 1st AK4396 (front) * SPI 0 -> 1st AK4396 (front)
* SPI 1 -> 2nd AK4396 (surround) * SPI 1 -> 2nd AK4396 (surround)
* SPI 2 -> 3rd AK4396 (center/LFE) * SPI 2 -> 3rd AK4396 (center/LFE)
* SPI 3 -> WM8785 * SPI 3 -> WM8785
* SPI 4 -> 4th AK4396 (back) * SPI 4 -> 4th AK4396 (back)
* *
* GPIO 0 -> DFS0 of AK5385 * GPIO 0 -> DFS0 of AK5385
* GPIO 1 -> DFS1 of AK5385 * GPIO 1 -> DFS1 of AK5385
* GPIO 8 -> enable headphone amplifier on HT-Omega models * GPIO 8 -> enable headphone amplifier on HT-Omega models
* *
* CM9780: * CM9780:
* *
* GPO 0 -> route line-in (0) or AC97 output (1) to ADC input * LINE_OUT -> input of ADC
*
* AUX_IN <- aux
* CD_IN <- CD
* MIC_IN <- mic
*
* GPO 0 -> route line-in (0) or AC97 output (1) to ADC input
*/ */
#include <linux/delay.h> #include <linux/delay.h>
......
...@@ -22,29 +22,28 @@ ...@@ -22,29 +22,28 @@
* *
* CMI8788: * CMI8788:
* *
* I²C <-> CS4398 (front) * I²C <-> CS4398 (addr 1001111) (front)
* <-> CS4362A (surround, center/LFE, back) * <-> CS4362A (addr 0011000) (surround, center/LFE, back)
* *
* GPI 0 <- external power present (DX only) * GPI 0 <- external power present (DX only)
* *
* GPIO 0 -> enable output to speakers * GPIO 0 -> enable output to speakers
* GPIO 1 -> route output to front panel * GPIO 1 -> route output to front panel
* GPIO 2 -> M0 of CS5361 * GPIO 2 -> M0 of CS5361
* GPIO 3 -> M1 of CS5361 * GPIO 3 -> M1 of CS5361
* GPIO 8 -> route input jack to line-in (0) or mic-in (1) * GPIO 6 -> ?
* GPIO 7 -> ?
* GPIO 8 -> route input jack to line-in (0) or mic-in (1)
* *
* CS4398: * CM9780:
*
* AD0 <- 1
* AD1 <- 1
*
* CS4362A:
* *
* AD0 <- 0 * LINE_OUT -> input of ADC
* *
* CM9780: * AUX_IN <- aux
* MIC_IN <- mic
* FMIC_IN <- front mic
* *
* GPO 0 -> route line-in (0) or AC97 output (1) to CS5361 input * GPO 0 -> route line-in (0) or AC97 output (1) to CS5361 input
*/ */
#include <linux/pci.h> #include <linux/pci.h>
......
...@@ -22,20 +22,26 @@ ...@@ -22,20 +22,26 @@
* *
* CMI8788: * CMI8788:
* *
* SPI 0 -> 1st PCM1796 (front) * SPI 0 -> 1st PCM1796 (front)
* SPI 1 -> 2nd PCM1796 (surround) * SPI 1 -> 2nd PCM1796 (surround)
* SPI 2 -> 3rd PCM1796 (center/LFE) * SPI 2 -> 3rd PCM1796 (center/LFE)
* SPI 4 -> 4th PCM1796 (back) * SPI 4 -> 4th PCM1796 (back)
* *
* GPIO 2 -> M0 of CS5381 * GPIO 2 -> M0 of CS5381
* GPIO 3 -> M1 of CS5381 * GPIO 3 -> M1 of CS5381
* GPIO 5 <- external power present (D2X only) * GPIO 5 <- external power present (D2X only)
* GPIO 7 -> ALT * GPIO 7 -> ALT
* GPIO 8 -> enable output to speakers * GPIO 8 -> enable output to speakers
* *
* CM9780: * CM9780:
* *
* GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input * LINE_OUT -> input of ADC
*
* AUX_IN <- aux
* VIDEO_IN <- CD
* FMIC_IN <- mic
*
* GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input
*/ */
/* /*
...@@ -44,52 +50,53 @@ ...@@ -44,52 +50,53 @@
* *
* CMI8788: * CMI8788:
* *
* I²C <-> PCM1796 (front) * I²C <-> PCM1796 (addr 1001100) (front)
*
* GPI 0 <- external power present
* *
* GPIO 0 -> enable output to speakers * GPI 0 <- external power present
* GPIO 2 -> M0 of CS5381
* GPIO 3 -> M1 of CS5381
* GPIO 8 -> route input jack to line-in (0) or mic-in (1)
* *
* TXD -> HDMI controller * GPIO 0 -> enable HDMI (0) or speaker (1) output
* RXD <- HDMI controller * GPIO 2 -> M0 of CS5381
* GPIO 3 -> M1 of CS5381
* GPIO 4 <- daughterboard detection
* GPIO 5 <- daughterboard detection
* GPIO 6 -> ?
* GPIO 7 -> ?
* GPIO 8 -> route input jack to line-in (0) or mic-in (1)
* *
* PCM1796 front: AD1,0 <- 0,0 * UART <-> HDMI controller
* *
* CM9780: * CM9780:
* *
* GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input * LINE_OUT -> input of ADC
*
* AUX_IN <- aux
* CD_IN <- CD
* MIC_IN <- mic
*
* GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input
* *
* no daughterboard * no daughterboard
* ---------------- * ----------------
* *
* GPIO 4 <- 1 * GPIO 4 <- 1
* *
* H6 daughterboard * H6 daughterboard
* ---------------- * ----------------
* *
* GPIO 4 <- 0 * GPIO 4 <- 0
* GPIO 5 <- 0 * GPIO 5 <- 0
*
* I²C <-> PCM1796 (surround)
* <-> PCM1796 (center/LFE)
* <-> PCM1796 (back)
* *
* PCM1796 surround: AD1,0 <- 0,1 * I²C <-> PCM1796 (addr 1001101) (surround)
* PCM1796 center/LFE: AD1,0 <- 1,0 * <-> PCM1796 (addr 1001110) (center/LFE)
* PCM1796 back: AD1,0 <- 1,1 * <-> PCM1796 (addr 1001111) (back)
* *
* unknown daughterboard * unknown daughterboard
* --------------------- * ---------------------
* *
* GPIO 4 <- 0 * GPIO 4 <- 0
* GPIO 5 <- 1 * GPIO 5 <- 1
*
* I²C <-> CS4362A (surround, center/LFE, back)
* *
* CS4362A: AD0 <- 0 * I²C <-> CS4362A (addr 0011000) (surround, center/LFE, back)
*/ */
/* /*
...@@ -98,32 +105,35 @@ ...@@ -98,32 +105,35 @@
* *
* CMI8788: * CMI8788:
* *
* I²C <-> PCM1792A * I²C <-> PCM1792A (addr 1001100)
* <-> CS2000 (ST only) * <-> CS2000 (addr 1001110) (ST only)
* *
* ADC1 MCLK -> REF_CLK of CS2000 (ST only) * ADC1 MCLK -> REF_CLK of CS2000 (ST only)
* *
* GPI 0 <- external power present (STX only) * GPI 0 <- external power present (STX only)
* *
* GPIO 0 -> enable output to speakers * GPIO 0 -> enable output to speakers
* GPIO 1 -> route HP to front panel (0) or rear jack (1) * GPIO 1 -> route HP to front panel (0) or rear jack (1)
* GPIO 2 -> M0 of CS5381 * GPIO 2 -> M0 of CS5381
* GPIO 3 -> M1 of CS5381 * GPIO 3 -> M1 of CS5381
* GPIO 7 -> route output to speaker jacks (0) or HP (1) * GPIO 4 <- daughterboard detection
* GPIO 8 -> route input jack to line-in (0) or mic-in (1) * GPIO 5 <- daughterboard detection
* GPIO 6 -> ?
* GPIO 7 -> route output to speaker jacks (0) or HP (1)
* GPIO 8 -> route input jack to line-in (0) or mic-in (1)
* *
* PCM1792A: * PCM1792A:
* *
* AD1,0 <- 0,0 * SCK <- CLK_OUT of CS2000 (ST only)
* SCK <- CLK_OUT of CS2000 (ST only)
* *
* CS2000: * CM9780:
* *
* AD0 <- 0 * LINE_OUT -> input of ADC
* *
* CM9780: * AUX_IN <- aux
* MIC_IN <- mic
* *
* GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input
* *
* H6 daughterboard * H6 daughterboard
* ---------------- * ----------------
...@@ -133,15 +143,39 @@ ...@@ -133,15 +143,39 @@
*/ */
/* /*
* Xonar HDAV1.3 Slim * Xonar Xense
* ------------------ * -----------
* *
* CMI8788: * CMI8788:
* *
* GPIO 1 -> enable output * I²C <-> PCM1796 (addr 1001100) (front)
* <-> CS4362A (addr 0011000) (surround, center/LFE, back)
* <-> CS2000 (addr 1001110)
*
* ADC1 MCLK -> REF_CLK of CS2000
*
* GPI 0 <- external power present
*
* GPIO 0 -> enable output
* GPIO 1 -> route HP to front panel (0) or rear jack (1)
* GPIO 2 -> M0 of CS5381
* GPIO 3 -> M1 of CS5381
* GPIO 4 -> enable output
* GPIO 5 -> enable output
* GPIO 6 -> ?
* GPIO 7 -> route output to HP (0) or speaker (1)
* GPIO 8 -> route input jack to mic-in (0) or line-in (1)
*
* CM9780:
*
* LINE_OUT -> input of ADC
*
* AUX_IN <- aux
* VIDEO_IN <- ?
* FMIC_IN <- mic
* *
* TXD -> HDMI controller * GPO 0 -> route line-in (0) or AC97 output (1) to CS5381 input
* RXD <- HDMI controller * GPO 1 -> route mic-in from input jack (0) or front panel header (1)
*/ */
#include <linux/pci.h> #include <linux/pci.h>
......
...@@ -22,20 +22,41 @@ ...@@ -22,20 +22,41 @@
* *
* CMI8788: * CMI8788:
* *
* SPI 0 -> WM8766 (surround, center/LFE, back) * SPI 0 -> WM8766 (surround, center/LFE, back)
* SPI 1 -> WM8776 (front, input) * SPI 1 -> WM8776 (front, input)
* *
* GPIO 4 <- headphone detect, 0 = plugged * GPIO 4 <- headphone detect, 0 = plugged
* GPIO 6 -> route input jack to mic-in (0) or line-in (1) * GPIO 6 -> route input jack to mic-in (0) or line-in (1)
* GPIO 7 -> enable output to front L/R speaker channels * GPIO 7 -> enable output to front L/R speaker channels
* GPIO 8 -> enable output to other speaker channels and front panel headphone * GPIO 8 -> enable output to other speaker channels and front panel headphone
* *
* WM8766: * WM8776:
* *
* input 1 <- line * input 1 <- line
* input 2 <- mic * input 2 <- mic
* input 3 <- front mic * input 3 <- front mic
* input 4 <- aux * input 4 <- aux
*/
/*
* Xonar HDAV1.3 Slim
* ------------------
*
* CMI8788:
*
* I²C <-> WM8776 (addr 0011010)
*
* GPIO 0 -> disable HDMI output
* GPIO 1 -> enable HP output
* GPIO 6 -> firmware EEPROM I²C clock
* GPIO 7 <-> firmware EEPROM I²C data
*
* UART <-> HDMI controller
*
* WM8776:
*
* input 1 <- mic
* input 2 <- aux
*/ */
#include <linux/pci.h> #include <linux/pci.h>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册