Rockbox

This is the bug/patch tracker for Rockbox. Click here for more information.

Quick links: Bugs · Patches · Rockbox frontpage

Tasklist

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

Attached to Project: Rockbox
Opened by Jonathan Gordon (jdgordon) - Sunday, 06 April 2008, 03:45 GMT+2
Last edited by Karl Kurbjun (kkurbjun) - Thursday, 26 February 2009, 23:01 GMT+2
Task Type Patches
Category Drivers
Status Closed
Assigned To No-one
Player Type Another
Severity Low
Priority Normal
Reported Version Daily build (which?)
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
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
   rockbox-tms320dm320-dsp.diff (39.4 KiB)
 tools/xml2h.py                                         |  175 +++++++++++
 tools/configure                                        |    2 
 bootloader/mrobe500.c                                  |  266 +----------------
 firmware/debug.c                                       |   67 ++++
 firmware/Makefile                                      |    5 
 firmware/target/arm/tms320dm320/dsp/arm.c              |   30 +
 firmware/target/arm/tms320dm320/dsp/vectors.asm        |  143 +++++++++
 firmware/target/arm/tms320dm320/dsp/main.c             |  162 ++++++++++
 firmware/target/arm/tms320dm320/dsp/arm.h              |   13 
 firmware/target/arm/tms320dm320/dsp/linker.cmd         |   29 +
 firmware/target/arm/tms320dm320/dsp/Makefile           |   39 ++
 firmware/target/arm/tms320dm320/dsp/registers.h        |   70 ++++
 firmware/target/arm/tms320dm320/dsp-dm320.c            |  183 ++++++++++-
 firmware/target/arm/tms320dm320/dsp_image_helloworld.h |   31 -
 14 files changed, 932 insertions(+), 283 deletions(-)

This task depends upon

Closed by  Karl Kurbjun (kkurbjun)
Thursday, 26 February 2009, 23:01 GMT+2
Reason for closing:  Accepted
Comment by Catalin Patulea (Catalin Patulea) - Monday, 07 April 2008, 02:04 GMT+2
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, 14:59 GMT+2
file missing from patch
   ipc.h (1.2 KiB)
Comment by Catalin Patulea (Catalin Patulea) - Thursday, 10 April 2008, 05:15 GMT+2 Comment by Maurus Cuelenaere (mcuelenaere) - Sunday, 04 May 2008, 17:58 GMT+2
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)
 tools/configure                                        |    2 
 tools/xml2h.py                                         |  175 +++++++++++
 apps/debug_menu.c                                      |   28 +
 firmware/Makefile                                      |    6 
 firmware/target/arm/tms320dm320/dsp/arm.c              |   49 +++
 firmware/target/arm/tms320dm320/dsp/ipc.h              |   69 ++++
 firmware/target/arm/tms320dm320/dsp/aic23.c            |   52 +++
 firmware/target/arm/tms320dm320/dsp/dma.c              |   87 +++++
 firmware/target/arm/tms320dm320/dsp/vectors.asm        |  143 +++++++++
 firmware/target/arm/tms320dm320/dsp/main.c             |  119 +++++++
 firmware/target/arm/tms320dm320/dsp/arm.h              |   32 ++
 firmware/target/arm/tms320dm320/dsp/linker.cmd         |   29 +
 firmware/target/arm/tms320dm320/dsp/audio.h            |   25 +
 firmware/target/arm/tms320dm320/dsp/dma.h              |   28 +
 firmware/target/arm/tms320dm320/dsp/Makefile           |   55 +++
 firmware/target/arm/tms320dm320/dsp/registers.h        |   93 +++++
 firmware/target/arm/tms320dm320/dsp/tsc2100.c          |   34 ++
 firmware/target/arm/tms320dm320/dsp-dm320.c            |  264 +++++++++++++----
 firmware/target/arm/tms320dm320/dsp_image_helloworld.h |   31 -
 19 files changed, 1235 insertions(+), 86 deletions(-)

Comment by Jonathan Gordon (jdgordon) - Monday, 05 May 2008, 01:21 GMT+2
if I get a chance tonight ill check
Comment by Jonathan Gordon (jdgordon) - Monday, 05 May 2008, 10:30 GMT+2
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, 18:11 GMT+2
Could be, here's a fresh version.

Should apply cleanly to a clean SVN tree.
   zvm.diff (50.1 KiB)
 tools/configure                                        |    2 
 tools/xml2h.py                                         |  175 +++++++++++
 apps/debug_menu.c                                      |   27 +
 firmware/Makefile                                      |    6 
 firmware/target/arm/tms320dm320/dsp/arm.c              |   49 +++
 firmware/target/arm/tms320dm320/dsp/ipc.h              |   69 ++++
 firmware/target/arm/tms320dm320/dsp/aic23.c            |   52 +++
 firmware/target/arm/tms320dm320/dsp/dma.c              |   87 +++++
 firmware/target/arm/tms320dm320/dsp/vectors.asm        |  143 +++++++++
 firmware/target/arm/tms320dm320/dsp/main.c             |  143 +++++++++
 firmware/target/arm/tms320dm320/dsp/arm.h              |   32 ++
 firmware/target/arm/tms320dm320/dsp/linker.cmd         |   29 +
 firmware/target/arm/tms320dm320/dsp/audio.h            |   25 +
 firmware/target/arm/tms320dm320/dsp/dma.h              |   28 +
 firmware/target/arm/tms320dm320/dsp/Makefile           |   55 +++
 firmware/target/arm/tms320dm320/dsp/registers.h        |   93 +++++
 firmware/target/arm/tms320dm320/dsp/tsc2100.c          |   34 ++
 firmware/target/arm/tms320dm320/dsp-dm320.c            |  264 +++++++++++++----
 firmware/target/arm/tms320dm320/dsp_image_helloworld.h |   31 -
 19 files changed, 1258 insertions(+), 86 deletions(-)

Comment by Maurus Cuelenaere (mcuelenaere) - Saturday, 17 May 2008, 13:42 GMT+2
I committed some part of this into SVN yesterday..
Comment by Karl Kurbjun (kkurbjun) - Thursday, 26 February 2009, 23:01 GMT+2
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...