Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
BroadcastCommunity.qnx.com will be offline from May 31 6:00pm until June 2 12:00AM for upcoming system upgrades. For more information please go to https://community.qnx.com/sf/discussion/do/listPosts/projects.bazaar/discussion.bazaar.topc28418
Forum Topic - the problem of Audio data receive : (2 Items)
   
the problem of Audio data receive  
Good afternoon!
I'm writing a program about Audio driver(Microphone).
I met some problems:
Audio data :(in Audio data receive end  callback function)
   i use usbd_urb_status()to got the urb's status ,status is  USBD_URB_CMP_ERR,then i got the return of function :5(EIO)
.
i use the isco pipe to receive the data ,after i insertion the device.
i set the urb like this:
usbd_setup_isochronous(micro_info->urb_in,URB_DIR_IN|URB_ISOCH_ASAP|URB_SHORT_XFER_OK,0,rbuf,size);
is there any problem with my parameter or i need some other settings??

by the way:(if device is a multy devide)
usbd_select_config ()is used only once in the first insertion or need use it by every interface insertion .

I'm waiting for your requestion.
Thanks a lot!!!
Re: the problem of Audio data receive  
hi

Did you find any solution for that i am facing same issue now!


> Good afternoon!
> I'm writing a program about Audio driver(Microphone).
> I met some problems:
> Audio data :(in Audio data receive end  callback function)
>    i use usbd_urb_status()to got the urb's status ,status is  USBD_URB_CMP_ERR
> ,then i got the return of function :5(EIO).
> i use the isco pipe to receive the data ,after i insertion the device.
> i set the urb like this:
> usbd_setup_isochronous(micro_info->urb_in,URB_DIR_IN|URB_ISOCH_ASAP|
> URB_SHORT_XFER_OK,0,rbuf,size);
> is there any problem with my parameter or i need some other settings??
> 
> by the way:(if device is a multy devide)
> usbd_select_config ()is used only once in the first insertion or need use it 
> by every interface insertion .
> 
> I'm waiting for your requestion.
> Thanks a lot!!!