Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6822699
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T21:41:42+00:00 2026-05-26T21:41:42+00:00

I am currently trying to interface with a USB audio device from user land.

  • 0

I am currently trying to interface with a USB audio device from user land. I currently have the device fully enumerated and I’ve set the interface and set the alternative interface to the interface non-zero-bandwidth alternative interface.

Firstly I have to say I can’t use anything like libusb. I ned to do this via Linux’s USB device file system.

So as far as I can tell I’m ready to begin receiving isochronous data. However I can find very little information on how to do an isochronous transfer.

From what I can tell I need to populate a usbdevfs_urb structure but I’m completely unsure of how exactly to fill this structure.

Also, once I have filled this structure am I right in thinking I need to call the following:

int retSubmit   = ioctl( fd, USBDEVFS_SUBMITURB, &usbRequest );

and then once submitted I can wait for the request to complete using

USBDEVFS_REAPURBNDELAY

In the case of REAPURBNDELAY what exactly is the parameter I need to pass?

Am I even barking up the right tree?

Any information would be massively appreciated.

Thanks in advance!

Edit:

I attempt to do the isochronous transfer as follows:

usbdevfs_urb&   urbRequest      = *(usbdevfs_urb*)malloc( 384 );
urbRequest.type                 = USBDEVFS_URB_TYPE_ISO;
urbRequest.endpoint             = mpEndpoint->GetEndpointAddress();//mpEndpoint->GetEndpointIndex();
urbRequest.status               = 0;
urbRequest.flags                = USBDEVFS_URB_ISO_ASAP;
urbRequest.buffer               = pData;
urbRequest.buffer_length        = 0;
urbRequest.actual_length        = 0;
urbRequest.start_frame          = 0;
urbRequest.number_of_packets    = 1;
urbRequest.error_count          = 0;
urbRequest.signr                = 0;
urbRequest.usercontext          = pData;

usbdevfs_iso_packet_desc* pIsoPacketDesc    = &urbRequest.iso_frame_desc[0];
pIsoPacketDesc->length          = 384;
pIsoPacketDesc->actual_length   = 0;
pIsoPacketDesc->status          = 0;

Unfgortunately this gives me an error of -28 (ENOSPC).

<7>[ 3184.243163] usb 1-1: usbfs: usb_submit_urb returned -28

I can’t understand why there wouldn’t be enough usb bus bandwidth. There is only 1 usb port and my device is the only device plugged into it.

Any thoughts?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T21:41:42+00:00Added an answer on May 26, 2026 at 9:41 pm

    Ok so it turns out that the problem is due to the fact that the android OS has placed an HID driver to handle the HID controls. This seems to block up the bandwidth. Detaching these drivers from the HID interfaces releases the bandwidth allowing the isochronous transfer to proceed.

    You detach the kernel driver by doing the following:

    usbdevfs_ioctl command;
    command.ifno        = mpInterface->GetInterfaceNumber();
    command.ioctl_code  = USBDEVFS_DISCONNECT;
    command.data        = NULL;
    
    int ret = ioctl( fd, USBDEVFS_IOCTL, &command );
    

    Otherwise what I have done is correct.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a UITextView that I'm trying to keep hidden from the user, except
I am currently trying to program my first ajax interface using Rails. The application
I'm currently struggling to use UI elements in Interface Builder. I keep trying to
I'm currently trying to upload an image from my Mac application to Facebook. To
I'm trying to talk to a USB device using libusb, but I feel like
I'm currently trying to interface our new intranet (ASP-MVC) with the web front end
i'm currently trying to set up something like this: a server side windows wcf
I am currently trying to load my custom table view cell from its own
I'm currently trying to set up my entity by filling in the required attributes.
Im currently trying to build a Fluent Interface for a ServiceLocator. To ensure that

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.