Cypress Perform

Home > Design Support > Cypress Developer CommunityTM > Cypress Forums > USB Controllers > USB Audio Device

Bookmark and Share
Cypress Developer CommunityTM
Forums | Videos | Blogs | Training | Rewards Program | Community Components



USB Audio Device
Moderator:
RSKV

Post Reply
Follow this topic



USB Audio Device

beandigital posted on 26 Feb 2013 6:12 AM PST
Top Contributor
37 Forum Posts

 I have a FX2LP design with a set of descriptors to create a USB audio device. The device implements a speaker, so I have a USB streaming input and a speaker output. The device is recognised by Windows as a USB audio device. However when I open media player and play an mp3 I dont get any data coming out of the FX2LP. I should mention that the FX2 is connected to an FPGA. I have a program monitoring the data coming into the FPGA, but nothing happens. Does anyone have any thoughts? I have attached the file if anyone can see any problems.

Thanks

Jon




Re: USB Audio Device

Gayathri posted on 26 Feb 2013 09:34 AM PST
Cypress Employee
428 Forum Posts

 Attachment missing..



Re: USB Audio Device

beandigital posted on 26 Feb 2013 10:17 AM PST
Top Contributor
37 Forum Posts

 Sorry about the attachement. I have some more info. If I use some software to look at the USB traffic in Windows, I can see that media player tries to send an isochronous transfer. I get the following error. Does anyone know what would cause this error. I can only believe that the descriptor must have a problem.

URB Isoch Transfer failed

Device Object 87C1B3B8h

Driver Object hhdusbh32

URB Function URB_FUNCTION_ISOCH_TRANSFER

URB Status USBD_STATUS_INVALID_PARAMETER

Endpoint 02h 2 Out, Isochronous

Number of Packets 10



Re: USB Audio Device

beandigital posted on 26 Feb 2013 10:19 AM PST
Top Contributor
37 Forum Posts

 It still hasnt attached the file. I keep adding it but it doesnt appear in the thread.



Re: USB Audio Device

beandigital posted on 26 Feb 2013 10:34 AM PST
Top Contributor
37 Forum Posts

 I will try renaming the file to see if that helps.



Re: USB Audio Device

beandigital posted on 26 Feb 2013 10:58 AM PST
Top Contributor
37 Forum Posts

 Problem solved. As I am using high speed USB the value of bInterval has to be set to 4 to give 1ms.

2 ^ 4-1 = 8

8 x 125us = 1 ms



Re: USB Audio Device

Gayathri posted on 27 Feb 2013 06:22 AM PST
Cypress Employee
428 Forum Posts

 






ALL CONTENT AND MATERIALS ON THIS SITE ARE PROVIDED "AS IS". CYPRESS SEMICONDUCTOR AND ITS RESPECTIVE SUPPLIERS MAKE NO REPRESENTATIONS ABOUT THE SUITABILITY OF THESE MATERIALS FOR ANY PURPOSE AND DISCLAIM ALL WARRANTIES AND CONDITIONS WITH REGARD TO THESE MATERIALS, INCLUDING BUT NOT LIMITED TO, ALL IMPLIED WARRANTIES AND CONDITIONS OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE, TITLE AND NON-INFRINGEMENT OF ANY THIRD PARTY INTELLECTUAL PROPERTY RIGHT. NO LICENSE, EITHER EXPRESS OR IMPLIED, BY ESTOPPEL OR OTHERWISE, IS GRANTED BY CYPRESS SEMICONDUCTOR. USE OF THE INFORMATION ON THIS SITE MAY REQUIRE A LICENSE FROM A THIRD PARTY, OR A LICENSE FROM CYPRESS SEMICONDUCTOR.

Content on this site may contain or be subject to specific guidelines or limitations on use. All postings and use of the content on this site are subject to the Terms and Conditions of the site; third parties using this content agree to abide by any limitations or guidelines and to comply with the Terms and Conditions of this site. Cypress Semiconductor and its suppliers reserve the right to make corrections, deletions, modifications, enhancements, improvements and other changes to the content and materials, its products, programs and services at any time or to move or discontinue any content, products, programs, or services without notice.

Spec No: None; Sunset Owner: GRAA; Secondary Owner: RAIK; Sunset Date: 01/01/20