XMOS mic array gain control by USB host Topic is solved

If you have a simple question and just want an answer.
shaileshwankhede
Experienced Member
Posts: 65
Joined: Fri Dec 02, 2016 1:30 pm

XMOS mic array gain control by USB host

Post by shaileshwankhede »

Hi,

Is it possible to control mic gain from USB host using the same USB port over which audio is streamed?
My application has Android OS on system and its USB port I am connecting to XMOS for MIC and audio purpose.
Now how can I control Mic gain from Android OS side? Probably I need to open Bulk endpoint to send some commands to XMOS and XMOS USB device will check for that command to change gain? Is there sample USB device example using bulk control?

One immediate solution I can think of is controlling push button IOs on XMOS mic array from SBC where android is flashed.

Thanks,
Shailesh
View Solution
User avatar
larry
Respected Member
Posts: 275
Joined: Fri Mar 12, 2010 6:03 pm

Post by larry »

The XVSM-2000 demo does not have any control over USB

You could add it using the device control library

https://github.com/xmos/lib_device_control

It has a USB mode which uses vendor specific requests. It includes an example (AN01034) that adds handling code in the endpoint0 task on the device and uses libusb on the host.
shaileshwankhede
Experienced Member
Posts: 65
Joined: Fri Dec 02, 2016 1:30 pm

Post by shaileshwankhede »

larry wrote:The XVSM-2000 demo does not have any control over USB

You could add it using the device control library

https://github.com/xmos/lib_device_control

It has a USB mode which uses vendor specific requests. It includes an example (AN01034) that adds handling code in the endpoint0 task on the device and uses libusb on the host.

Yes This is What I was looking for!
Thank you.