Hi!
Got it working with asm multiply!
the working inline asm (for cris):
# define MAD_F_MLX(hi, lo, x, y) \ asm ("muls.d %2, %3\n\t" \ "move $mof, %1"\ : "=r" (lo), "=r" (hi)\ : "%r" (x), "0" (y) \ : "1")
some tests i run trough:
1. this will output to somewhere.. (no audio hw.. yet) [root@nz /var/tmp/koe/axis/devboard_lx/apps/mad-0.13.0b]528# ./madplay m.mp3 -t100 MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie sec: 947085366 usec: 328802 Title: Chasing Sheep Is Best Left To Artist: Michael Nyman Album: The Essential Michael Nyman Ba Genre: Soul Year: 1992 Comment: Catalonia is an opresed nation 3829 frames decoded (0:01:40.0), -764.6 dB peak amplitude, 0 clipped samples sec: 947085463 usec 330781 elapsed: 97.001979
2. /dev/null [root@nz /var/tmp/koe/axis/devboard_lx/apps/mad-0.13.0b]528# ./madplay m.mp3 -t100 -o /dev/n ull MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie sec: 947085621 usec: 802448 Title: Chasing Sheep Is Best Left To Artist: Michael Nyman Album: The Essential Michael Nyman Ba Genre: Soul Year: 1992 Comment: Catalonia is an opresed nation 3829 frames decoded (0:01:40.0), -764.6 dB peak amplitude, 0 clipped samples sec: 947085716 usec 323177 elapsed: 94.520729
3. /dev/null (2nd run.. ) [root@nz /var/tmp/koe/axis/devboard_lx/apps/mad-0.13.0b]528# ./madplay m.mp3 -t100 -o /dev/n ull MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie sec: 947085820 usec: 582448 Title: Chasing Sheep Is Best Left To Artist: Michael Nyman Album: The Essential Michael Nyman Ba Genre: Soul Year: 1992 Comment: Catalonia is an opresed nation 3829 frames decoded (0:01:40.0), -764.6 dB peak amplitude, 0 clipped samples sec: 947085915 usec 102500 elapsed: 94.520052
4. -o k.wav (in and out files are on a nfs mount... slightly slower.. network delays and heavy driver (?) [root@nz /var/tmp/koe/axis/devboard_lx/apps/mad-0.13.0b]528# ./madplay m.mp3 -t100 -o k.wav MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie sec: 947085998 usec: 353854 Title: Chasing Sheep Is Best Left To Artist: Michael Nyman Album: The Essential Michael Nyman Ba Genre: Soul Year: 1992 Comment: Catalonia is an opresed nation 3829 frames decoded (0:01:40.0), +0.1 dB peak amplitude, 1 clipped samples sec: 947086106 usec 609479 elapsed: 108.255625
5. same as previouse, but with -v. [root@nz /var/tmp/koe/axis/devboard_lx/apps/mad-0.13.0b]572# ./madplay m.mp3 -t100 -o k.wav -v MPEG Audio Decoder 0.13.0 (beta) - Copyright (C) 2000-2001 Robert Leslie sec: 947088534 usec: 87292 Title: Chasing Sheep Is Best Left To Artist: Michael Nyman Album: The Essential Michael Nyman Ba Genre: Soul Year: 1992 Comment: Catalonia is an opresed nation 00:01:40 Layer III, 192 kbps, 44100 Hz, joint stereo (MS), no CRC 3829 frames decoded (0:01:40.0), +0.1 dB peak amplitude, 1 clipped samples sec: 947088648 usec 638646 elapsed: 114.551354
The results show that some amount of time is spent by the nfs transfers. I'm not sure if the /dev/null realtime reuslts are good enough that I should start implementing the D/A hardware...
/a