DAC information utility - run this if you have no sound

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
Post Reply
User avatar
Panu
VLSI Staff
Posts: 2585
Joined: Tue 2010-06-22 13:43

DAC information utility - run this if you have no sound

Post by Panu » Fri 2018-08-24 13:28

Dear Members,

Here's a small utility that prints some useful information about the state of the VS1010; interrupts, driver enables, DAC sample rate etc. If you run into a situation where there is no sound playing, try to run this. If you can run this utility, it prints out useful information which can lead to the cause of the sound not playing.

Here's what it should print:
VS1010>dacinfo
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 3af0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x137599, sample rate is about 44100.0 Hz
stdaudioout=0x101b (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 2047, .wr=0x34e8, .rd=0x34e6
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 1547, .wr=0x38d0, .rd=0x34e6
AudioBufFree: 1706, .wr=0x38d0, .rd=0x3624

VS1010>
-Panu
Attachments
arch-dacinfo-2018-08-24-14-25-rc1.zip
Source code, VSIDE solution
(15.05 KiB) Downloaded 15 times
dacinfo.dlx
VS1010 VSOS executable
(6.4 KiB) Downloaded 15 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

User avatar
Panu
VLSI Staff
Posts: 2585
Joined: Tue 2010-06-22 13:43

Re: DAC information utility - run this if you have no sound

Post by Panu » Fri 2018-08-24 15:15

Another test, another bugfix. I modified the utility to start the audio driver if it detects that it's unstarted. Then it prints all the information again. Here's a printout of what it prints when added to CONFIG.TXT:
B#0d1xSPI Nand Flashd
VS1010C VSOS 4.02
Files:6. Buffers:3.
Runlevel 15
SPI Nand Flash
Patch v16 (Nand)

D: SD/SD Card
F: SPI Nand Flash
I: STREAM
R: ROMDISK
S: SD/SD Card

Global interrupts enabled, Int Encount: 0
Enabled interrupts:
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 3800, No analog/drivers enabled [L R GBUF DAC]: 0x0
DAC_SRC: 0x80000000, sample rate is about 0.0 Hz
stdaudioout=0x101b (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 0, .wr=0x0, .rd=0x0
Audio Buffer is not initialized!! Trying to bring it up..

Trying again..
Global interrupts enabled, Int Encount: 0
Enabled interrupts:
DAC 0x20:0x923b, pri 2 -> 0x923b
SP1 0x24:0x8d1b, pri 1 -> 0x8d1b
RX0 0x2d:0x9b94, pri 1 -> 0x9b94
TI2 0x30:0x80e9, pri 1 -> 0x80e9
RX2 0x31:0x9bf8, pri 2 -> 0x9bf8
DAC_VOL: 0000
ANA_CF1: 38f0, All analog/drivers enabled [L R GBUF DAC]: 0xf
DAC_SRC: 0x144000, sample rate is about 48000.0 Hz
stdaudioout=0x101b (972e is ROM default)
Write=0x94c1 (94c1 is AudioWrite)
AudioBufFree: 1799, .wr=0x3000, .rd=0x3e0e
Writing something to the audio buffer, hopefully it's not stuck...
AudioBufFree: 1547, .wr=0x33e8, .rd=0x3ffe
AudioBufFree: 1720, .wr=0x33e8, .rd=0x3158

Orinoco Flow (sample).mp3
-Panu
Attachments
dacinfo.dlx
(6.74 KiB) Downloaded 14 times
arch-dacinfo-2018-08-24-16-13-rc2.zip
(15.28 KiB) Downloaded 16 times
Info: Line In and Line Out, VS1000 User interface, Overlay howto, Latest VSIDE, MCU Howto, Youtube
Panu-Kristian Poiksalo, VLSI Solution Oy

Post Reply