Skip to contentSkip to conversation

Equalizer for emu10k1

DISCUSSION Applied Piotr Tajduś 2 participants 6 messages Dec 2, 2005 – Jan 2, 2006

lore
Share & tools
lore
#0 lore raw

I have written equalizer for emu10k1, maybe it will be usefull for somebody.
http://gadrael.w.interia.pl/eq10.asm
I tested this only on Audigy...

Piotr Tajduś

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click

#1 lore raw

At Fri, 02 Dec 2005 20:19:48 +0100,

Quoted 4 lines · Piotr Tajduś

I have written equalizer for emu10k1, maybe it will be usefull for somebody.
http://gadrael.w.interia.pl/eq10.asm
I tested this only on Audigy...

Any example to load this with ld10k1?

Also, could you make a patch for inclusion to alsa-tools/ld10k1 CVS tree? Such a thing is nice to share in the public tree.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click

#2 lore raw
Quoted 1 line · Takashi Iwai

Any example to load this with ld10k1?

I have inserted this between tone and vol_master:

#Tone
$LO10K1 -n --ctrl c-bass0,bass1,bass2,bass3,bass4:Tone\ Control\ -\ Bass,t-Tone\ Control\ -\ Bass:2,v-Tone\ Control\ -\ Bass:1,c-treble0,treble1,treble2,treble3,treble4:Tone\ Control\ -\ Treble,t-Tone\ Control\ -\ Treble:3,v-Tone\ Control\ -\ Treble:1,c-toneonoff:Tone\ Control\ -\ Switch,t-Tone\ Control\ -\ Switch:4 --patch_name Tone\ Controls -a tone.emu10k1 #Input
$LO10K1 --conadd "POUT(PCM Multi Volume)=PIN(Tone Controls)"
$LO10K1 --conadd "POUT(Stereo To 51)>PIN(Tone Controls)"

#Equalizer
$LO10K1 -n --patch_name EQ10 -a eq10.emu10k1
#Input
$LO10K1 --conadd "POUT(Tone Controls)>PIN(EQ10)"

#Master
$LO10K1 -n --ctrl c-VolM:Master\ Playback\ Volume,t-Master\ Playback\ Volume:1 --patch_name Master\ Volume -a vol_master.emu10k1 #Inputs
$LO10K1 --conadd "POUT(EQ10)>PIN(Master Volume)"

Here is init script for audigy:
http://gadrael.w.interia.pl/init_audigy_eq10

Quoted 4 lines

Also, could you make a patch for inclusion to alsa-tools/ld10k1 CVS tree? Such a thing is nice to share in the public tree.

Here is a patch:
http://gadrael.w.interia.pl/eq10.patch

Piotr Tajduś

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click

#3 lore raw

At Wed, 07 Dec 2005 21:26:49 +0100,

Quoted 26 lines · Piotr Tajduś
Quoted 1 line · Takashi Iwai

Any example to load this with ld10k1?

I have inserted this between tone and vol_master:

#Tone
$LO10K1 -n --ctrl c-bass0,bass1,bass2,bass3,bass4:Tone\ Control\ -\ Bass,t-Tone\ Control\ -\ Bass:2,v-Tone\ Control\ -\ Bass:1,c-treble0,treble1,treble2,treble3,treble4:Tone\ Control\ -\ Treble,t-Tone\ Control\ -\ Treble:3,v-Tone\ Control\ -\ Treble:1,c-toneonoff:Tone\ Control\ -\ Switch,t-Tone\ Control\ -\ Switch:4 --patch_name Tone\ Controls -a tone.emu10k1 #Input
$LO10K1 --conadd "POUT(PCM Multi Volume)=PIN(Tone Controls)"
$LO10K1 --conadd "POUT(Stereo To 51)>PIN(Tone Controls)"

#Equalizer
$LO10K1 -n --patch_name EQ10 -a eq10.emu10k1
#Input
$LO10K1 --conadd "POUT(Tone Controls)>PIN(EQ10)"

#Master
$LO10K1 -n --ctrl c-VolM:Master\ Playback\ Volume,t-Master\ Playback\ Volume:1 --patch_name Master\ Volume -a vol_master.emu10k1 #Inputs
$LO10K1 --conadd "POUT(EQ10)>PIN(Master Volume)"

Here is init script for audigy:
http://gadrael.w.interia.pl/init_audigy_eq10

Quoted 6 lines
Quoted 4 lines

Also, could you make a patch for inclusion to alsa-tools/ld10k1 CVS tree? Such a thing is nice to share in the public tree.

Here is a patch:
http://gadrael.w.interia.pl/eq10.patch

Thanks. It would be nicer to include the example scripts like above in the patch. Could you add them?

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click

#4 lore raw

ld10k1 equalizer patch

There were problems with EQ10 on Sound Blaster (caused by ACCUM or macmv instruction, i am not sure), so i made some changes. Now equalizer should work also with SB Live.

Piotr Tajduś

setup/effects/eq10.asm +7 -10
diff -N -u -r ld10k1.orig/setup/effects/eq10.asm ld10k1/setup/effects/eq10.asm
@@ -42,7 +42,7 @@
 inlfe	io
 toutlfe	equ inlfe
 
-Equalizer control 0,0,#1
+Equalizer control #0,0,#1
 F0_31Hz control #0.5,0,#1
 F1_62Hz control #0.5,0,#1	
 F2_125Hz control #0.5,0,#1	
@@ -75,12 +75,12 @@
 
 ;;; Band Pass Filter Macro:
 BPF	macro   OUT , IN , DELAY , DLXCB , COEF , GAIN
-		macs1	ACCUM,C_0,COEF+1,DLXCB+1
-    		macs	ACCUM,ACCUM,COEF+1,IN
-		macs	ACCUM,ACCUM,COEF+2,DELAY
-		macs1	ACCUM,ACCUM,COEF,DELAY+1
-		macmv	DELAY+1,DELAY,C_0,C_0
-		macints	DELAY,C_0,ACCUM,sco
+		macs1	tmp2,C_0,COEF+1,DLXCB+1
+    		macs	tmp2,tmp2,COEF+1,IN
+		macs	tmp2,tmp2,COEF+2,DELAY
+		macs1	tmp2,tmp2,COEF,DELAY+1
+		macs	DELAY+1,DELAY,C_0,C_0
+		macints	DELAY,C_0,tmp2,sco
 		macs	OUT,OUT,DELAY,GAIN
 	endm
 
@@ -109,8 +109,5 @@
 	IIR	toutrr,inrr,dlx3,dly3
 	IIR	toutc,inc,dlx4,dly4
 	IIR	toutlfe,inlfe,dlx5,dly5
-;	macmv	toutlfe,inlfe,C_0,C_0
 
 	end
-
-
Applied
#5 lore raw

Re: ld10k1 equalizer patch

At Sat, 31 Dec 2005 18:23:29 +0100,

Quoted 6 lines · Piotr Tajduś

There were problems with EQ10 on Sound Blaster (caused by ACCUM or macmv instruction, i am not sure), so i made some changes. Now equalizer should work also with SB Live.

Piotr Tajduś

Applied to CVS now. Thanks.

Takashi

-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_idv37&alloc_id865&op=click