Skip to contentSkip to conversation

cs46xx patch for XFire 4channel output not in cvs?

PATCH Friedrich Ewaldt 1 participant 1 message May 10, 2003

lore
Share & tools
lore
#0 lore raw

Hi,

as I looked into the current cvs, I noticed that the patch enabling 4channel output for the Terratec DMX XFire didn't make it into the source tree. I attached once again Benny's patch from 5th or 6th of april, with one minor change:
I changed the value 0x5d2d to 0x592d as Benny asked me to when I tested the patch.

The attached patch applies without problems to cvs snapshot from 6th of may.

thanks,
fe

cvs/alsa-kernel/pci/cs46xx/cs46xx_lib.c renamed from pci/cs46xx/cs46xx_lib.c +9 -1
@@ -2543,13 +2543,21 @@
 	chip->eapd_switch = snd_ctl_find_id(chip->card, &id);
     
 #ifdef CONFIG_SND_CS46XX_NEW_DSP
+	if (chip->nr_ac97_codecs == 1 && 
+	   snd_cs46xx_codec_read(chip,AC97_VENDOR_ID2,
+				 CS46XX_PRIMARY_CODEC_INDEX) == 0x592d) {
+		/* set primary cs4294 codec into Extended Audio Mode */
+		snd_printdd("setting EAM bit on cs4294 CODEC\n");
+		snd_cs46xx_codec_write(chip,AC97_CSR_ACMODE,0x200,
+				       CS46XX_PRIMARY_CODEC_INDEX);
+	}
 	/* do soundcard specific mixer setup */
 	if (chip->mixer_init) {
 		snd_printdd ("calling chip->mixer_init(chip);\n");
 		chip->mixer_init(chip);
 	}
 #endif
-
+	
  	/* turn on amplifier */
 	chip->amplifier_ctrl(chip, 1);