VS1010 usb audio stream to I2S

Designing hardware and software for systems that use the VS1010 MP3 Audio DSP Microcontroller.
max_1536
Senior User
Posts: 84
Joined: Thu 2015-02-12 20:16
Contact:

Re: VS1010 usb audio stream to I2S

Post by max_1536 »

Hi Hannu,

In this case, could I implement multiple volume controls within a single control interface?
This way I would only have one channel, but control the volume of the 5 amplifiers like I am doing on our actual product.
I have written some USB audio devices, some descriptor tools and always ended up rewriting everything by hand because some requirement doesn't fit to particular design. So no fancy USB generators :(
What code example or library does vlsi has available for this kind of project?

Thanks for your help,
Max
Hannu
VLSI Staff
Posts: 561
Joined: Mon 2016-05-30 11:54
Location: Finland
Contact:

Re: VS1010 usb audio stream to I2S

Post by Hannu »

Hi,

Actually there are no usable tools because writing a generic generator tool is between hard and impossible.

Usually I just write some throw away code which checks something and hand craft the descriptors. This is non-optimal situation but best that there is. However it isn't that hard on pc to write the descriptor structs or borrow from somewhere and fill them and print them so that it gets "\x34\x12" format. For example wTotalLength field (2 bytes little-endian) and the value was 0x1234. and then it goes to some const __mem_y myConfigDesc[] = { "\p"
/* the descriptor lines */
};

As you can see if you take a look at USB programs around the forum.
Post Reply