]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
ALSA: ice1724: Enable MIDI on TerraTec PHASE 22 and PHASE 28
authorVedran Miletic <rivanvx@gmail.com>
Fri, 29 Aug 2008 16:31:13 +0000 (18:31 +0200)
committerJaroslav Kysela <perex@perex.cz>
Thu, 4 Sep 2008 08:25:03 +0000 (10:25 +0200)
Even though MIDI was fixed on ice1724 chips a while ago, it wasn't yet
enabled for some cards as it didn't get enough testing. This was tested
with MIDI keyboard on PHASE 22 and with looping back output to input and
it works stable, so it's safe to enable it.

Besides this, there are some more minor fixes, not exactly user visible:
* added info about PHASE 28 (collected, as I don't have a card)
* added info about TS22PCI and new revisions of PHASE 22
* disable 192k on PHASE 22 as AK4524 I2S doesn't support it
* enable SPDIF reciever on PHASE 22

Signed-off-by: Vedran Miletic <rivanvx@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
sound/pci/ice1712/phase.c

index f5acdeef4438aaa81ff3218238de2cca20293d22..6a614729280f1ec95995daa2832fc728638d771f 100644 (file)
  */
 
 /* PHASE 22 overview:
- *   Audio controller: VIA Envy24HT-S (slightly trimmed down version of Envy24HT)
+ *   Audio controller: VIA Envy24HT-S (slightly trimmed down Envy24HT, 4in/4out)
  *   Analog chip: AK4524 (partially via Philip's 74HCT125)
- *   Digital receiver: CS8414-CS (not supported in this release)
+ *   Digital receiver: CS8414-CS (supported in this release)
+ *             PHASE 22 revision 2.0 and Terrasoniq/Musonik TS22PCI have CS8416
+ *             (support status unknown, please test and report)
  *
  *   Envy connects to AK4524
  *     - CS directly from GPIO 10
  *     - CCLK via 74HCT125's gate #4 from GPIO 4
  *     - CDTI via 74HCT125's gate #2 from GPIO 5
- *             CDTI may be completely blocked by 74HCT125's gate #1 controlled by GPIO 3
+ *             CDTI may be completely blocked by 74HCT125's gate #1
+ *             controlled by GPIO 3
+ */
+
+/* PHASE 28 overview:
+ *   Audio controller: VIA Envy24HT (full untrimmed version, 8in/8out)
+ *   Analog chip: WM8770 (8 channel 192k DAC, 2 channel 96k ADC)
+ *   Digital receiver: CS8414-CS (supported in this release)
  */
 
 #include <asm/io.h>
@@ -161,9 +170,10 @@ static int __devinit phase22_add_controls(struct snd_ice1712 *ice)
 }
 
 static unsigned char phase22_eeprom[] __devinitdata = {
-       [ICE_EEP2_SYSCONF]     = 0x00,  /* 1xADC, 1xDACs */
+       [ICE_EEP2_SYSCONF]     = 0x28,  /* clock 512, mpu 401,
+                                       spdif-in/1xADC, 1xDACs */
        [ICE_EEP2_ACLINK]      = 0x80,  /* I2S */
-       [ICE_EEP2_I2S]         = 0xf8,  /* vol, 96k, 24bit */
+       [ICE_EEP2_I2S]         = 0xf0,  /* vol, 96k, 24bit */
        [ICE_EEP2_SPDIF]       = 0xc3,  /* out-en, out-int, spdif-in */
        [ICE_EEP2_GPIO_DIR]    = 0xff,
        [ICE_EEP2_GPIO_DIR1]   = 0xff,
@@ -177,7 +187,8 @@ static unsigned char phase22_eeprom[] __devinitdata = {
 };
 
 static unsigned char phase28_eeprom[] __devinitdata = {
-       [ICE_EEP2_SYSCONF]     = 0x0b,  /* clock 512, spdif-in/ADC, 4DACs */
+       [ICE_EEP2_SYSCONF]     = 0x2b,  /* clock 512, mpu401,
+                                       spdif-in/1xADC, 4xDACs */
        [ICE_EEP2_ACLINK]      = 0x80,  /* I2S */
        [ICE_EEP2_I2S]         = 0xfc,  /* vol, 96k, 24bit, 192k */
        [ICE_EEP2_SPDIF]       = 0xc3,  /* out-en, out-int, spdif-in */