PSoC6 USB Audio

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

cross mob
lock attach
Attachments are accessible only for community members.
taas_3144281
Level 5
Level 5
Distributor - Marubun (Japan)
25 sign-ins 50 replies posted 25 replies posted

Hi.

I operation "CE225786-PSoC 6 MCU USB Audio Recorder" in ModusToolbox1.1.

But, this code does not operation properly on MacOS.

"CE225786 USB Audio Recorder"

https://japan.cypress.com/documentation/code-examples/ce225786-psoc-6-mcu-usb-audio-recorder

This sample code is ModusToolbox1.0.

I ported to ModusToolbox1.1 in this way. ”Porting an Application from ModusToolbox 1.0 to version 1.1 - KBA226484

This sample code operations properly on Windows PC.

But, recorded audio is interrupted on MacOS.

App is 'Voice memo'.

Could someone teach me what is there a way to record properly on a Mac?

asanuma

1 Solution
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I studied your code (or Cypress's code?)

Device_Descriptor.JPG

Then noticed that the EP2 is IN and Transfer Type is Isochronous but the Synchronization Type is  "Asynchronous"

According to the USB Audio specification

USB_Audio_Sync.JPG

So I changed it to "Synchronous" and rebuilt the project.

USB_Configure_190912.JPG

As far as I tested, it seems to be working with both Windows 10 and Mac OSX 10.14.2.

moto

View solution in original post

7 Replies
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello Asanuma,

Can you please tell how is the audio getting interrupted (like clicks, distortion, etc.) when using MacOs and what is the duration of interruption (milliseconds or microseconds)? Also can you please send the interrupted audio file. This will help us in recreating the issue at our side.

Best Regards

Ekta

0 Likes
taas_3144281
Level 5
Level 5
Distributor - Marubun (Japan)
25 sign-ins 50 replies posted 25 replies posted

Dear Ekta-San

The attachment file is the sound and project.

sound(Mac_audio_recorde.zip)

project(CE225786_USB_AudioRecorder.zip)

The sound is continuously interrupted every 100 milliseconds.

Best Regards,

asanuma

0 Likes
Ekta_N
Moderator
Moderator
Moderator
750 replies posted First like given 250 solutions authored

Hello Asanuma,

Can you please confirm if you are getting the same issue in the project- CE225786-PSoC 6 MCU USB Audio Recorder, when using ModusToolbox 1.0 in MacOs?

Are you getting droupouts for both Modustoolbox 1.0 and Modustoolbox 1.1 projects in MacOs?

Best Regards

Ekta

0 Likes
taas_3144281
Level 5
Level 5
Distributor - Marubun (Japan)
25 sign-ins 50 replies posted 25 replies posted

Dear Ekta-San

I confirmed ”CE225786-PSoC 6 MCU USB Audio” with ModusToolbox 1.0, but the same issue occurred.

Modustoolbox 1.0 and Modustoolbox 1.1 getting dropouts in MacOs.

Best Regards,

asanuma

0 Likes
MotooTanaka
Level 9
Level 9
Distributor - Marubun (Japan)
First comment on blog Beta tester First comment on KBA

Hi,

I studied your code (or Cypress's code?)

Device_Descriptor.JPG

Then noticed that the EP2 is IN and Transfer Type is Isochronous but the Synchronization Type is  "Asynchronous"

According to the USB Audio specification

USB_Audio_Sync.JPG

So I changed it to "Synchronous" and rebuilt the project.

USB_Configure_190912.JPG

As far as I tested, it seems to be working with both Windows 10 and Mac OSX 10.14.2.

moto

taas_3144281
Level 5
Level 5
Distributor - Marubun (Japan)
25 sign-ins 50 replies posted 25 replies posted

Dear Motoo-san

Thank you for your answer.

I am able to Audio record with MacOS in this way without any issue.

I am glad that I do not have to worry about those for PSoC6.

Best Regards,

asanuma

Hi all,

I'm sorry for the late reply. I was aware about this issue, but just now we were able to find the root cause and get this fixed.

You should not change the audio descriptor to synchronous. The firmware was designed to be asynchronous. The problem is a misconfiguration in the audio descriptor. The bInterval for Feedback endpoint was incorrectly set. That some how affected MacOS only.

There is a new version of this code example with the fix. Please refer to the Audio Device descriptor from this example:

GitHub - cypresssemiconductorco/mtb-example-psoc6-usb-audio-device-freertos: This example demonstrat...