UAC1.0 single channel

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.
wyw
Level 3
Level 3
25 replies posted 25 sign-ins 10 replies posted

I use single-channel microphones in the uac1.0 specification with part of descriptors as attachments. When I constructed some PCM data myself and sent it to the host computer, my recording software said the microphone didn't work properly.

After the USB device is inserted into the host, the host can correctly identify the UAC device and display the device in the device manager.

Please give me some help and guidance.

0 Likes
1 Solution
lock attach
Attachments are accessible only for community members.
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

I'm able to play the audio from this device by using the project that you shared and following the steps below:

1. Go to sound control panel -> Recording:

JayakrishnaT_76_0-1644392556005.png

2. Double click on FX3 to open properties:

JayakrishnaT_76_1-1644392588731.png

3. Go to Listen Tab and Click Listen to this device as shown below:

JayakrishnaT_76_2-1644392623772.png

I am also able to play the audio using the application Audacity.

Please let me know if you are also able to hear the audio or not.

You can also refer to the attached example project which is a modification of the SDK UAC example project. This project was developed by using the following KBA as reference:

https://community.infineon.com/t5/Knowledge-Base-Articles/Modifications-Required-in-UAC-Example-Proj...

You can use this project as a reference or build your application on top of this project. I have tested the project in USB3 and USB2 mode and it works fine at my end.

Best Regards,
Jayakrishna

View solution in original post

0 Likes
6 Replies
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Please elaborate the issue seen at your end.

Based on our understanding, you are able to enumerate the device properly. But, when you are trying to stream data from the device to host, the host application gives error. Please correct me if my understanding is wrong.

Please let us know which host application is used for testing. Also, please elaborate the following line in your problem description:

"When I constructed some PCM data myself and sent it to the host computer"

Best Regards,
Jayakrishna
0 Likes

Your understanding is correct.Host application is the program is windows10 with a recorder.

"When I constructed some PCM data myself and sent it to the host computer" is construct an array to store PCM data,as follow,

const int16_t pcm_source_data[] __attribute__ ((aligned (32))) = {
0, 4277, 8481, 12539, 16384, 19947, 23170, 25996, 28377, 30273, 31650, 32487, 32767,
32487, 31650, 30273, 28377, 25996, 23170, 19947, 16384, 12539, 8481, 4277, 0, -4277,
-8481, -12539, -16384, -19947, -23170, -25996, -28377, -30273, -31650, -32487, -32767,
-32487, -31650, -30273, -28377, -25996, -23170, -19947, -16384, -12539, -8481, -4277
}

It has 48x16 bits of signed data.

 

0 Likes
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

Is it possible for you to share the complete source file for debugging?

Best Regards,
Jayakrishna
0 Likes
lock attach
Attachments are accessible only for community members.

Attached is my project.Please check it for me.

0 Likes
lock attach
Attachments are accessible only for community members.
JayakrishnaT_76
Moderator
Moderator
Moderator
First question asked 1000 replies posted 750 replies posted

Hello,

I'm able to play the audio from this device by using the project that you shared and following the steps below:

1. Go to sound control panel -> Recording:

JayakrishnaT_76_0-1644392556005.png

2. Double click on FX3 to open properties:

JayakrishnaT_76_1-1644392588731.png

3. Go to Listen Tab and Click Listen to this device as shown below:

JayakrishnaT_76_2-1644392623772.png

I am also able to play the audio using the application Audacity.

Please let me know if you are also able to hear the audio or not.

You can also refer to the attached example project which is a modification of the SDK UAC example project. This project was developed by using the following KBA as reference:

https://community.infineon.com/t5/Knowledge-Base-Articles/Modifications-Required-in-UAC-Example-Proj...

You can use this project as a reference or build your application on top of this project. I have tested the project in USB3 and USB2 mode and it works fine at my end.

Best Regards,
Jayakrishna
0 Likes

Thank you for your support,it is 'Standard device descriptor for USB 3.0' in my cyfxdscr.c,'Product ID' is changed to '0x22, 0x49',it ok.

0 Likes