]> git.pld-linux.org Git - packages/emu10k1-utils.git/blob - emu10k1-utils-gcc33.patch
- move .pdf and .ps files to distfiles
[packages/emu10k1-utils.git] / emu10k1-utils-gcc33.patch
1 --- emu-tools-0.9.4/as10k1/as10k1.c.orig        Sun Jan 20 03:00:16 2002
2 +++ emu-tools-0.9.4/as10k1/as10k1.c     Mon Sep  1 11:42:46 2003
3 @@ -39,32 +39,32 @@
4  
5  char version[]="As10k1 assembler version 1.0";
6  
7 -char help[]="
8 -Usage: as10k1 [option...] asmfile
9 -
10 -The as10k1 assembler is for the emu10k1 dsp processor
11 -found in Creative Lab's sblive series of sound cards.
12 -
13 -Author: Daniel Bertrand <d.bertrand@ieee.org>
14 -BUGS:   emu10k1-devel mailing list <emu10k1-devel@opensource.creative.com>
15 -URLs:   members.home.com/d-bertrand, opensource.creative.com
16 -
17 -Options:\n
18 -     -l [listfile]         Specify a listing file, default is none.
19 -     -o [binfile]          Specify an output file, default is based input,
20 -                           Substituting .asm fo .bin
21 -     -d [dbg_options...]   Turn on debug messages.
22 -            s              prints all symbols                
23 -            g              prints defined gprs
24 -            t              prints tram usage
25 -            i              prints instructions
26 -
27 -     -n                    no gpr declaration check 
28 -     -h                    Prints this message  
29 -     -v                    Prints version number. 
30 -
31 -This program is distributed under the GPL.
32 -
33 +char help[]="\n\
34 +Usage: as10k1 [option...] asmfile\n\
35 +\n\
36 +The as10k1 assembler is for the emu10k1 dsp processor\n\
37 +found in Creative Lab's sblive series of sound cards.\n\
38 +\n\
39 +Author: Daniel Bertrand <d.bertrand@ieee.org>\n\
40 +BUGS:   emu10k1-devel mailing list <emu10k1-devel@opensource.creative.com>\n\
41 +URLs:   members.home.com/d-bertrand, opensource.creative.com\n\
42 +\n\
43 +Options:\n\n\
44 +     -l [listfile]         Specify a listing file, default is none.\n\
45 +     -o [binfile]          Specify an output file, default is based input,\n\
46 +                           Substituting .asm fo .bin\n\
47 +     -d [dbg_options...]   Turn on debug messages.\n\
48 +            s              prints all symbols\n\
49 +            g              prints defined gprs\n\
50 +            t              prints tram usage\n\
51 +            i              prints instructions\n\
52 +\n\
53 +     -n                    no gpr declaration check\n\
54 +     -h                    Prints this message\n\
55 +     -v                    Prints version number.\n\
56 +\n\
57 +This program is distributed under the GPL.\n\
58 +\n\
59  ";
60  
61  //  cli==Command-Line Interface && !Creative Labs Inc.
62 --- emu-tools-0.9.4/mixer/lib/debug.c.orig      Sun Jan 20 03:00:16 2002
63 +++ emu-tools-0.9.4/mixer/lib/debug.c   Mon Sep  1 11:44:24 2003
64 @@ -325,18 +325,18 @@
65                         k=i;
66         }
67         printf("\
68 -Usage Summary:
69 ---------
70 -Instructions : %d
71 -GPRS:          %d (last used is %d)
72 -
73 -Tram
74 - Internal
75 -   buffers:    %d
76 -   space  :    0x%06x
77 - External
78 -   buffers:    %d
79 -   space  :    0x%06x
80 +Usage Summary:\n\
81 +--------\n\
82 +Instructions : %d\n\
83 +GPRS:          %d (last used is %d)\n\
84 +\n\
85 +Tram\n\
86 + Internal\n\
87 +   buffers:    %d\n\
88 +   space  :    0x%06x\n\
89 + External\n\
90 +   buffers:    %d\n\
91 +   space  :    0x%06x\n\
92  ",
93                mgr->code_free_start/2, j,k,
94                mgr->traml_ifree_start,  mgr->tramb_ifree_start,
95 --- emu-tools-0.9.4/dbgemu/dbgemu.h.orig        Sun Jan 20 03:00:16 2002
96 +++ emu-tools-0.9.4/dbgemu/dbgemu.h     Mon Sep  1 11:46:42 2003
97 @@ -113,98 +113,98 @@
98         "R=log(A), X controls max exponent(2-31), Y controls sign",
99         "R=log(A), X controls max exponent(2-31), Y controls sign",
100         "INTERP R = A + (X * (Y - A) >> 31); overflow: saturation",
101 -       "SKIP R->GPR to store CCR, A -> CCR to use, X-> skip test equation,
102 +       "SKIP R->GPR to store CCR, A -> CCR to use, X-> skip test equation,\n\
103   Y-> gpr containint number of instructions to skip"  
104  };
105  
106  
107  int fd,fd2;
108 -char map[]="memory map:
109 -
110 -GRPS:                  0x100-0x1FF
111 -ITRAM Data Buffer:     0x200-0x27F
112 -XTRAM Data Buffer:     0x280-0x29F
113 -ITRAM Address Buffer:  0x300-0x37F
114 -XTRAM Address Buffer:  0x380-0x39F
115 -Program Memory:        0x400-0x600
116 +char map[]="memory map:\n\
117 +\n\
118 +GRPS:                  0x100-0x1FF\n\
119 +ITRAM Data Buffer:     0x200-0x27F\n\
120 +XTRAM Data Buffer:     0x280-0x29F\n\
121 +ITRAM Address Buffer:  0x300-0x37F\n\
122 +XTRAM Address Buffer:  0x380-0x39F\n\
123 +Program Memory:        0x400-0x600\n\
124  ";
125  
126 -char usage[]="
127 -dbgemu [options]
128 -
129 -All values in hex.
130 -
131 -   -d  dumps registers, sub-options:
132 -
133 -        -a <address>     
134 -            dumps contents of the AC97 register at the given address
135 -
136 -        -r <address>
137 -            dumps contents of the DSP register at the given address.
138 -            valid ranges of register:
139 -              CONFIG REGS            0x000-0x063
140 -              GRPS:                  0x100-0x1FF
141 -              ITRAM Data Buffer:     0x200-0x27F
142 -              XTRAM Data Buffer:     0x280-0x29F
143 -              ITRAM Address Buffer:  0x300-0x37F
144 -              XTRAM Address Buffer:  0x380-0x39F
145 -              Program Memory:        0x400-0x600
146 -        -f <address>
147 -            dumps \"function0\" register space(includes the HCFG register)
148 -        
149 -
150 -   -l  loads values into register, sub-options:
151 -
152 -        -a <address> <value>
153 -             load value into given ac97 register
154 -
155 -        -c <address> <opcode> <R> <A> 
156 -             load formated dsp code
157 -        
158 -        -r <address> <value>
159 -             load value into given dsp register
160 -                
161 -        -f <address> <value>
162 -             load value into given fn0 register
163 -
164 -   -D  [commands]
165 -        If no command is specified, prints current dsp debug state.
166 -       Debug mode commands:
167 -
168 -        step_mode
169 -             turns on step mode
170 -
171 -        step [instruction #]
172 -             executes given instruction, if no instruction is specified,
173 -             esecutes next instruction
174 -
175 -        clear_sat
176 -             clears the \"saturation occured\" bit.
177 -
178 -        step_mode_off
179 -             resumes normal dsp operation.
180 -
181 -   -h     Prints this help message.
182 -   -v     Prints version number.
183 -
184 ----
185 -
186 -Examples:
187 -
188 -To display 10 GPRs starting from 0x100:
189 -
190 -dbgemu -d r  100 10
191 -
192 -To load a value of 1 to 0x100:
193 -
194 -dbgemu -l r 100 1
195 -
196 -To change an instruction:
197 -
198 -dbgemu -l c 400 macs 10 30 100 20
199 -
200 -
201 ----
202 +char usage[]="\n\
203 +dbgemu [options]\n\
204 +\n\
205 +All values in hex.\n\
206 +\n\
207 +   -d  dumps registers, sub-options:\n\
208 +\n\
209 +        -a <address>     \n\
210 +            dumps contents of the AC97 register at the given address\n\
211 +\n\
212 +        -r <address>\n\
213 +            dumps contents of the DSP register at the given address.\n\
214 +            valid ranges of register:\n\
215 +              CONFIG REGS            0x000-0x063\n\
216 +              GRPS:                  0x100-0x1FF\n\
217 +              ITRAM Data Buffer:     0x200-0x27F\n\
218 +              XTRAM Data Buffer:     0x280-0x29F\n\
219 +              ITRAM Address Buffer:  0x300-0x37F\n\
220 +              XTRAM Address Buffer:  0x380-0x39F\n\
221 +              Program Memory:        0x400-0x600\n\
222 +        -f <address>\n\
223 +            dumps \"function0\" register space(includes the HCFG register)\n\
224 +        \n\
225 +\n\
226 +   -l  loads values into register, sub-options:\n\
227 +\n\
228 +        -a <address> <value>\n\
229 +             load value into given ac97 register\n\
230 +\n\
231 +        -c <address> <opcode> <R> <A> \n\
232 +             load formated dsp code\n\
233 +        \n\
234 +        -r <address> <value>\n\
235 +             load value into given dsp register\n\
236 +                \n\
237 +        -f <address> <value>\n\
238 +             load value into given fn0 register\n\
239 +\n\
240 +   -D  [commands]\n\
241 +        If no command is specified, prints current dsp debug state.\n\
242 +       Debug mode commands:\n\
243 +\n\
244 +        step_mode\n\
245 +             turns on step mode\n\
246 +\n\
247 +        step [instruction #]\n\
248 +             executes given instruction, if no instruction is specified,\n\
249 +             esecutes next instruction\n\
250 +\n\
251 +        clear_sat\n\
252 +             clears the \"saturation occured\" bit.\n\
253 +\n\
254 +        step_mode_off\n\
255 +             resumes normal dsp operation.\n\
256 +\n\
257 +   -h     Prints this help message.\n\
258 +   -v     Prints version number.\n\
259 +\n\
260 +---\n\
261 +\n\
262 +Examples:\n\
263 +\n\
264 +To display 10 GPRs starting from 0x100:\n\
265 +\n\
266 +dbgemu -d r  100 10\n\
267 +\n\
268 +To load a value of 1 to 0x100:\n\
269 +\n\
270 +dbgemu -l r 100 1\n\
271 +\n\
272 +To change an instruction:\n\
273 +\n\
274 +dbgemu -l c 400 macs 10 30 100 20\n\
275 +\n\
276 +\n\
277 +---\n\
278  ";
279  int foo=0;
280  char version[]="dbgemu, version 0.3";
281 --- emu-tools-0.9.4/dbgemu/dbgemu.c.orig        Sun Jan 20 03:00:16 2002
282 +++ emu-tools-0.9.4/dbgemu/dbgemu.c     Mon Sep  1 11:47:18 2003
283 @@ -265,12 +265,12 @@
284         step_mode_on=(val&DBG_SINGLE_STEP)>>15 ;
285         if(step_mode_on){
286                 
287 -       printf("----------------------------------------------------------------------------
288 -|Emu10k1 Status                |  Debug register 0x%08x                  |
289 -|----------------------------------------------------------------------------|
290 -| single step mode: \e[1;31mON\e[0m              Saturation: %s\e[0m; Last addr: 0x%03x (0x%03x) |
291 -| program pointer: 0x%03x (0x%03x)  Condition code: 0x%02x -> %s\e[0m %s\e[0m %s\e[0m %s\e[0m %s\e[0m          |
292 - -----------------------------------------------------------------------------
293 +       printf("----------------------------------------------------------------------------\n\
294 +|Emu10k1 Status                |  Debug register 0x%08x                  |\n\
295 +|----------------------------------------------------------------------------|\n\
296 +| single step mode: \e[1;31mON\e[0m              Saturation: %s\e[0m; Last addr: 0x%03x (0x%03x) |\n\
297 +| program pointer: 0x%03x (0x%03x)  Condition code: 0x%02x -> %s\e[0m %s\e[0m %s\e[0m %s\e[0m %s\e[0m          |\n\
298 + -----------------------------------------------------------------------------\n\
299  ",
300                val,
301  
302 @@ -292,12 +292,12 @@
303  
304         }
305         else
306 -               printf("-----------------------------------------------------------------------------
307 -|Emu10k1 Status                |  Debug register 0x%08x                  |
308 -|----------------------------------------------------------------------------|
309 -| single step mode: off                  Saturation: %s\e[0m; Last addr: 0x%03x (0x%03x) |
310 -|                                                                            |
311 - ----------------------------------------------------------------------------
312 +               printf("-----------------------------------------------------------------------------\n\
313 +|Emu10k1 Status                |  Debug register 0x%08x                  |\n\
314 +|----------------------------------------------------------------------------|\n\
315 +| single step mode: off                  Saturation: %s\e[0m; Last addr: 0x%03x (0x%03x) |\n\
316 +|                                                                            |\n\
317 + ----------------------------------------------------------------------------\n\
318  ", val, ((val&DBG_SATURATION_OCCURED)>>25)?"\e[1;31mYes ":"None",
319                (val&DBG_SATURATION_ADDR)>>16,
320                        ((val&DBG_SATURATION_ADDR)>>16)*2+0x400    
321 --- emu-tools-0.9.4/epache-0.1.4/emudsp.c.orig  Wed Aug 22 23:04:21 2001
322 +++ emu-tools-0.9.4/epache-0.1.4/emudsp.c       Mon Sep  1 11:49:24 2003
323 @@ -6,24 +6,18 @@
324  
325  
326  
327 -char *dsp_in_name[NUM_INPUTS] = { "Pcm L", "Pcm R", "Pcm1 L", "Pcm1 R", "fx4
328 -", "fx5", "fx6", "fx7", "fx8",
329 +char *dsp_in_name[NUM_INPUTS] = { "Pcm L", "Pcm R", "Pcm1 L", "Pcm1 R", "fx4", "fx5", "fx6", "fx7", "fx8",
330          "fx9", "fx10", "fx11", "fx12", "fx13", "fx14", "fx15",
331 -        "Analog L", "Analog R", "CD-Spdif L", "CD-Spdif R", "in2l", "in2r", "Opt
332 -. Spdif L", "Opt. Spdif R",
333 +        "Analog L", "Analog R", "CD-Spdif L", "CD-Spdif R", "in2l", "in2r", "Opt. Spdif L", "Opt. Spdif R",
334          "RCA Aux L", "RCA Aux R", "RCA Spdif L", "RCA Spdif R", "Line2/Mic2 L",
335  "Line2/Mic2 R", "in7l", "in7r"
336  };
337  
338  char *dsp_out_name[NUM_OUTPUTS] =
339 -    { "Front L", "Front R", "Digital L", "Digital R", "out2l", "out2r", "Phones
340 -L", "Phones R",
341 -        "Rear L", "Rear R", "ADC Rec L", "ADC Rec R", "Mic Rec", "out6r", "out7l
342 -", "out7r",
343 -        "out8l", "out8r", "out9l", "out9r", "out10l", "out10r", "out11l", "out11
344 -r",
345 -        "out12l", "out12r", "out13l", "out13r", "out14l", "out14r", "out15l", "o
346 -ut15r"
347 +    { "Front L", "Front R", "Digital L", "Digital R", "out2l", "out2r", "Phones L", "Phones R",
348 +        "Rear L", "Rear R", "ADC Rec L", "ADC Rec R", "Mic Rec", "out6r", "out7l", "out7r",
349 +        "out8l", "out8r", "out9l", "out9r", "out10l", "out10r", "out11l", "out11r",
350 +        "out12l", "out12r", "out13l", "out13r", "out14l", "out14r", "out15l", "out15r"
351  };
352  
353  
354 --- emu-tools-0.9.4/epache-0.1.4/gtk.c.orig     Wed Oct 24 06:49:01 2001
355 +++ emu-tools-0.9.4/epache-0.1.4/gtk.c  Mon Sep  1 11:52:05 2003
356 @@ -204,15 +204,15 @@
357    gtk_window_set_title(&GTK_DIALOG(about)->window,"about");
358    
359  
360 -  text=g_strdup_printf("epache\n
361 -                       a simple tool for emu10k1 based sound cards
362 -                        \n
363 -                        version %s
364 -                        licensed under the GNU GPL
365 -                        author:
366 -                        Hubert Sokolowski  <hsokolow2001@yahoo.com>
367 -                        web address:
368 -                        http://www.yahoo.com/hsokolow2001/epache",VERSION);
369 +  text=g_strdup_printf("epache\n"
370 +                      "a simple tool for emu10k1 based sound cards\n"
371 +                      "\n"
372 +                      "version %s\n"
373 +                      "licensed under the GNU GPL\n"
374 +                      "author:\n"
375 +                      "Hubert Sokolowski  <hsokolow2001@yahoo.com>\n"
376 +                      "web address:\n"
377 +                      "http://www.yahoo.com/hsokolow2001/epache",VERSION);
378    label = gtk_label_new (text);
379    g_free(text);
380    gtk_box_pack_start (GTK_BOX (GTK_DIALOG (about)->vbox),
This page took 0.05458 seconds and 3 git commands to generate.