~ubuntu-branches/debian/sid/mame/sid

« back to all changes in this revision

Viewing changes to src/emu/sound/tms5110r.c

  • Committer: Bazaar Package Importer
  • Author(s): Jordi Mallach, Emmanuel Kasper, Félix Arreola Rodríguez, Jordi Mallach
  • Date: 2011-05-11 21:06:50 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20110511210650-jizvh8a6x117y9hr
Tags: 0.142-1
[ Emmanuel Kasper ]
* New upstream release
* Set NOWERROR=1 to allow compiling with gcc-4.6
* Remove fix_powerpc_build.patch, as upstream has taken it in this release
* Add gnome-video-arcade front end as a suggested package

[ Félix Arreola Rodríguez ]
* Add kfreebsd-build.patch to quilt series, to fix build on kfreebsd

[ Jordi Mallach ]
* Remove unneeded and bogus addition of --with-quilt to the dh invocation.
* Add Cesare Falco (long time Ubuntu maintainer) to Uploaders, and wrap
  them into multiple lines.

Show diffs side-by-side

added added

removed removed

Lines of Context:
24
24
 * (remember, 1 is the FIRST entry!)
25
25
 *
26
26
 * Instead,  { 1, 8, 8, 8, 4, 4, 4, 2 }
27
 
 * will calculate those coefficients and this has been used below.
28
 
 * LN:
29
 
 * The real chip uses shifters and not true division to achieve those factors,
30
 
 * so they have been replaced by the shifting coefficients:
31
 
 * { 0, 3, 3, 3, 2, 2, 2, 1 }
 
27
 * will calculate those coefficients.
 
28
 * Howeever, after simulating the actual circuit from the patent in pspice,
 
29
 * the { 1, 8, 8, 8, 4, 4, 2, 2 } pattern is revealed as the correct one.
 
30
 * Since the real chip uses shifters and not true division to achieve those
 
31
 * factors, they have been replaced by the shifting coefficients:
 
32
 * { 0, 3, 3, 3, 2, 2, 1, 1 }
32
33
 */
33
34
 
34
35
 /* quick note on derivative analysis:
124
125
            1,  0,    0,  0,   0,  0,  0,  0,
125
126
            0,  0,    0,  0 },
126
127
        /* interpolation coefficients */
127
 
        { 3, 3, 3, 2, 2, 2, 1, 0 }
 
128
        { 3, 3, 3, 2, 2, 1, 1, 0 }
128
129
};
129
130
 
130
131
/* The following CD2802 coefficients come from US Patents 4,403,965 and 4,946,391; They have not yet been verified using derivatives. The M58817 seems to work best with these coefficients, so its possible the engineers of that chip copied them from the TI patents.
188
189
            1,  0,    0,  0,  0,  0,  0,  0,
189
190
            0,  0,    0,  0 },
190
191
        /* interpolation coefficients */
191
 
        { 3, 3, 3, 2, 2, 2, 1, 0 }
 
192
        { 3, 3, 3, 2, 2, 1, 1, 0 }
192
193
};
193
194
 
194
195
/* The following TMS5110A LPC coefficients were directly read from an actual TMS5110A chip by Jarek Burczynski using the PROMOUT pin, and can be regarded as established fact. However, the chirp table and the interpolation coefficients still come from the patents as there doesn't seem to be an easy way to read those out from the chip without decapping it.
251
252
            1,  0,    0,  0,   0,  0,  0,  0,
252
253
            0,  0,    0,  0 },
253
254
        /* interpolation coefficients */
254
 
        { 3, 3, 3, 2, 2, 2, 1, 0 }
 
255
        { 3, 3, 3, 2, 2, 1, 1, 0 }
255
256
};
256
257
 
257
258
/* The following coefficients come from US Patent 4,335,277 and 4,581,757. However, the K10 row of coefficients are entirely missing from both of those patents.
320
321
            1,  0,    0,  0,   0,  0,  0,  0,
321
322
            0,  0,    0,  0 },
322
323
        /* interpolation coefficients */
323
 
        { 3, 3, 3, 2, 2, 2, 1, 0 }
 
324
        { 3, 3, 3, 2, 2, 1, 1, 0 }
324
325
};
325
326
 
326
327
/* The following TMS5200/TMC0285 coefficients were directly read from an actual TMS5200 chip by Lord Nightmare using the PROMOUT pin, and can be regarded as established fact. However, the chirp table and the interpolation coefficients still come from the patents as there doesn't seem to be an easy way to read those out from the chip without decapping it.
388
389
            1,  0,    0,  0,   0,  0,  0,  0,
389
390
            0,  0,    0,  0 },
390
391
        /* interpolation coefficients */
391
 
        { 0, 3, 3, 3, 2, 2, 2, 1 }
 
392
        { 0, 3, 3, 3, 2, 2, 1, 1 }
392
393
};
393
394
 
394
395
/* The following TMS5220 coefficients were directly read from an actual TMS5220 chip by Lord Nightmare using the PROMOUT pin, and can be regarded as established fact. However, the chirp table and the interpolation coefficients still come from the patents as there doesn't seem to be an easy way to read those out from the chip without decapping it.
457
458
            1,  0,    0,  0,   0,  0,  0,  0,
458
459
            0,  0,    0,  0 },
459
460
        /* interpolation coefficients */
460
 
        { 0, 3, 3, 3, 2, 2, 2, 1 }
 
461
        { 0, 3, 3, 3, 2, 2, 1, 1 }
461
462
};
462
463
 
463
464
/* The following TMS5220C coefficients come from the tables in QBOXPRO, a program written at least in part by George "Larry" Brantingham of Quadravox, formerly of Texas Instruments, who had laid out the silicon for the TMS5100/TMC0280/CD2801. It is the same as the TMS5220 but has a change in the energy table (is this actually correct? or is this one correct for both 5220s? or is this the wrong table and the TMS5220 one correct for both?)
530
531
            1,  0,    0,  0,   0,  0,  0,  0,
531
532
            0,  0,    0,  0 },
532
533
        /* interpolation coefficients */
533
 
        { 0, 3, 3, 3, 2, 2, 2, 1 }
 
534
        { 0, 3, 3, 3, 2, 2, 1, 1 }
534
535
};