16kHZ UAC For Linux: Improper Audio

Tip / Sign in to post questions, reply, level up, and achieve exciting badges. Know more

cross mob
Anonymous
Not applicable

Hi,

   

I want your USB audio class example working for Linux platform (esp. Android phone) with the parameters below

   

a) 16kHZ Sampling Frequency

   

b) 16 bit per sample

   

c) Stereo mode

   

As per the last few questions posted, I have made the changes Cypress team asked to do me. Surprisingly, the audio streamed was  not correct. The recorded audio when played back had breaking, looking like duplicated audio samples which made the actual sound content elongated.

   

Please help to sort out this issue. If this issue is reproduced at your end or is it just me getting this problem? I am really confused.

   

Below are the changes you asked me to do in the original UAC source

   

1) sampling frequency in audio format descriptor :     0x80, 0x3E, 0x00, 

   

2) Transaction size in Endpoint descriptor for ISO streaming Audio data 0x20, 0x00,

   

3) Bytes per interval in  Super speed endpoint companion descriptor:   0x20, 0x00, 

   

4) in the cyfxuac.c file, change the macro definition to: CY_FX3_ISO_XFER_LEN                             (32)

   

NOTE:- SPI flash contains audio file flashed of same parameters aforementioned.

0 Likes
2 Replies
YangyangC_06
Employee
Employee
750 replies posted 500 replies posted 250 replies posted

Hi priyanob_203175,

   

Could you please share us the firmware which you are using? We will be able to try to reproduce the issue.

0 Likes
Anonymous
Not applicable

Hi yyca,

   

I have mentioned the changes which I made on the original UAC example.

0 Likes