Rockbox

Tasklist

FS#8853 - eigima's sound/dsp work for mr500

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Sunday, 06 April 2008, 01:45 GMT
Last edited by Karl Kurbjun (kkurbjun) - Thursday, 26 February 2009, 22:01 GMT
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Operating System Another
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

You'll need a file in the
root directory called "rover.raw" that's 4 MB and stereo 16-bit raw
PCM. It'll loop that file.

Note also that it's a bootloader build that does all this..

you also need the TI toolchain
This task depends upon

Closed by  Karl Kurbjun (kkurbjun)
Thursday, 26 February 2009, 22:01 GMT
Reason for closing:  Accepted
Comment by Catalin Patulea (Catalin Patulea) - Monday, 07 April 2008, 00:04 GMT
Yeah, so this is how I got real sound out of my m:robe for the first time. It's painfully primitive, but at least we know it's possible ;)
Comment by Jonathan Gordon (jdgordon) - Wednesday, 09 April 2008, 12:59 GMT
file missing from patch
   ipc.h (1.2 KiB)
Comment by Catalin Patulea (Catalin Patulea) - Thursday, 10 April 2008, 03:15 GMT Comment by Maurus Cuelenaere (mcuelenaere) - Sunday, 04 May 2008, 15:58 GMT
This the same patch adjusted to the ZVM and the m:Robe 500.
It doesn't work yet on the ZVM though.
Could a m:Robe 500-owner or Catalin/jdgordon test if this breaks m:Robe 500 compatibility?
   zvm.diff (49.7 KiB)
Comment by Jonathan Gordon (jdgordon) - Sunday, 04 May 2008, 23:21 GMT
if I get a chance tonight ill check
Comment by Jonathan Gordon (jdgordon) - Monday, 05 May 2008, 08:30 GMT
sorry, dont really have enough time for this.. but....
compile breaks...

target/arm/tms320dm320/dsp-dm320.c:30:1: warning: "DEBUGF" redefined
In file included from target/arm/tms320dm320/dsp-dm320.c:22:
export/debug.h:45:1: warning: this is the location of the previous definition
target/arm/tms320dm320/dsp-dm320.c:40:23: error: dsp-image.h: No such file or directory
target/arm/tms320dm320/dsp-dm320.c: In function ‘dsp_dbg_item’:
target/arm/tms320dm320/dsp-dm320.c:55: warning: implicit declaration of function ‘snprintf’
target/arm/tms320dm320/dsp-dm320.c:63: error: ‘_status’ undeclared (first use in this function)
target/arm/tms320dm320/dsp-dm320.c:63: error: (Each undeclared identifier is reported only once
target/arm/tms320dm320/dsp-dm320.c:63: error: for each function it appears in.)
target/arm/tms320dm320/dsp-dm320.c:63: error: ‘_acked’ undeclared (first use in this function)
target/arm/tms320dm320/dsp-dm320.c: At top level:
target/arm/tms320dm320/dsp-dm320.c:49: warning: unused parameter ‘data’
target/arm/tms320dm320/dsp-dm320.c: In function ‘dsp_load’:
target/arm/tms320dm320/dsp-dm320.c:138: warning: implicit declaration of function ‘logf’
target/arm/tms320dm320/dsp-dm320.c: In function ‘dsp_init’:
target/arm/tms320dm320/dsp-dm320.c:190: error: ‘dsp_image’ undeclared (first use in this function)
target/arm/tms320dm320/dsp-dm320.c:196: error: ‘_sdem_addrl’ undeclared (first use in this function)
target/arm/tms320dm320/dsp-dm320.c:197: error: ‘_sdem_addrh’ undeclared (first use in this function)
target/arm/tms320dm320/dsp-dm320.c: In function ‘DSPHINT’:
target/arm/tms320dm320/dsp-dm320.c:240: error: ‘_status’ undeclared (first use in this function)
target/arm/tms320dm320/dsp-dm320.c:236: warning: unused variable ‘pcm_topbottom_end’
target/arm/tms320dm320/dsp-dm320.c:234: warning: unused variable ‘level’
make[1]: *** [/home/jonno/rockbox-temp/mr500/firmware/target/arm/tms320dm320/dsp-dm320.o] Error 1
make[1]: *** Waiting for unfinished jobs....
make: *** [build] Error 2


dunno if they are related to your changes or not though...
Comment by Maurus Cuelenaere (mcuelenaere) - Monday, 05 May 2008, 16:11 GMT
Could be, here's a fresh version.

Should apply cleanly to a clean SVN tree.
   zvm.diff (50.1 KiB)
Comment by Maurus Cuelenaere (mcuelenaere) - Saturday, 17 May 2008, 11:42 GMT
I committed some part of this into SVN yesterday..
Comment by Karl Kurbjun (kkurbjun) - Thursday, 26 February 2009, 22:01 GMT
I committed the rest of the code to SVN today and it is now working with some minor modifications. To test it I created a test.raw file with audacity per Cat's suggestion (PCM, 16 bits signed, RAW header) and placed it in the root directory. The test can be run by going into debug_ports in the debug menu. This will start playing audio. I modified the dsp build process to be independent of the rockbox build since we will not be able to integrate the DSP compiler. TI only releases Linux binaries for the compilation tools. I am closing this ticket since it is working in SVN.

Loading...