USB Audio Device - Stm32f4Discovery

ChibiOS public support forum for all topics not covered by a specific support forum.

Moderators: RoccoMarco, lbednarz, tfAteba

jbrandmeyer
Posts: 5
Joined: Thu Oct 09, 2014 3:34 pm

Re: USB Audio Device - Stm32f4Discovery

Post by jbrandmeyer »

Any change re: isochronous endpoint support, or USB Audio Device class support? I'll note that the STM32F4Discovery and other boards have both digital PDM microphones and headphone jacks for testing purposes. I can contribute Apache-licensed PDM->PCM decimation code for the digital microphone if it'll help move this along.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: USB Audio Device - Stm32f4Discovery

Post by Giovanni »

Hi,

The driver still does not support isochronous endpoints, I am not sure about the amount of work required in order to introduce support.

There is an attached example application in this thread, it could be worth trying to understand where it fails after porting the descriptors in the newest ChibiOS.

Giovanni
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: USB Audio Device - Stm32f4Discovery

Post by Giovanni »

I studied the documentation a bit, what is missing in the driver is the even/odd frames handling for OUT endpoints, the driver must set a flag manually depending on the frame number, this mean that the information about the last frame must be stored somewhere in the endpoint context.

Giovanni
User avatar
Spider
Posts: 25
Joined: Tue Nov 27, 2012 10:05 am
Been thanked: 1 time

Re: USB Audio Device - Stm32f4Discovery

Post by Spider »

Hello, Giovanni!

Any change re: isochronous endpoint support, or USB Audio Device class support?
I'm trying to make USB Microphone on STM32F103, but my device don't Configured my USB bus. Seem like usbInitEndpointI(usbp, AUDIO_STREAM_EPNUM, &epAudioconfig); have no effect.
User avatar
Giovanni
Site Admin
Posts: 14893
Joined: Wed May 27, 2009 8:48 am
Has thanked: 1202 times
Been thanked: 996 times

Re: USB Audio Device - Stm32f4Discovery

Post by Giovanni »

I merged the proposed patch with no testing, please look at the demo posted at beginning

Giovanni
Post Reply