]> git.alsa-project.org Git - alsa-tools.git/commitdiff
ld10k1 - Fix eq10 patch for SB Live
authorTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2006 14:28:40 +0000 (14:28 +0000)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Jan 2006 14:28:40 +0000 (14:28 +0000)
From: Piotr Tajdus <aegis@op.pl>

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.

ld10k1/setup/effects/eq10.asm

index 68f550492837dd42b0d046585b41be1f5cf4ccf4..8cbd2f6c4461221960eacfdaaf249b6c7f1faf49 100644 (file)
@@ -42,7 +42,7 @@ toutc equ inc
 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 @@ dlx5 sta 0 0
 
 ;;; 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
+               mac   DELAY+1,DELAY,C_0,C_0
+               macints DELAY,C_0,tmp2,sco
                macs    OUT,OUT,DELAY,GAIN
        endm
 
@@ -109,8 +109,5 @@ IIR macro   OUT, IN , DLXC, DLYC
        IIR     toutrr,inrr,dlx3,dly3
        IIR     toutc,inc,dlx4,dly4
        IIR     toutlfe,inlfe,dlx5,dly5
-;      macmv   toutlfe,inlfe,C_0,C_0
 
        end
-
-