I have an application on an embedded device.  It was all happily
working with a usb-storage device, a pl2303-based gps device and a
usb-audio device plugged into a usb2 hub.  Now I've added a usb mouse
and when I open the associated /dev/event0, I start seeing the
messages below when I try to play audio to the usb-audio device.

  cannot submit datapipe for urb 0, error -28: not enough bandwidth
  output: ioctl(SNDCTL_DSP_SYNC): Broken pipe
  cannot submit datapipe for urb 0, error -28: not enough bandwidth
  cannot submit datapipe for urb 0, error -28: not enough bandwidth
  output: ioctl(SNDCTL_DSP_SYNC): Broken pipe
  cannot submit datapipe for urb 0, error -28: not enough bandwidth             
                                             

(I've cleaned the messages up a bit from what shows on the console,
the second "cannot submit [...]" typically lands in the middle of the
"output: ioctl [...]" message).

With gpsd running (opening /dev/ttyUSB0), with "cat < /dev/event0 > /dev/null", 
then "/usr/bin/madplay -Q -a -10 --no-tty-control random.mp3" seems to
screw me.  Without the /dev/event0 open, I don't have the problem.  

Am I screwed, or is there something I can tweak?

  $ cat /proc/cpuinfo 
  system type             : Broadcom BCM47xx
  processor               : 0
  cpu model               : Broadcom BCM3302 V0.7
  BogoMIPS                : 197.12
  wait instruction        : yes
  microsecond timers      : yes
  tlb_entries             : 32
  extra interrupt vector  : no
  hardware watchpoint     : no
  ASEs implemented        :
  VCED exceptions         : not available
  VCEI exceptions         : not available

  $ uname -a
  Linux OpenWrt 2.6.23.1 #2 Fri Nov 23 04:56:20 PST 2007 mips unknown

  $ cat /proc/bus/usb/devices 

  T:  Bus=03 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=480 MxCh= 2
  B:  Alloc=  3/800 us ( 0%), #Int=  2, #Iso=  8
  D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
  P:  Vendor=0000 ProdID=0000 Rev= 2.06
  S:  Manufacturer=Linux 2.6.23.1 ehci_hcd
  S:  Product=EHCI Host Controller
  S:  SerialNumber=0000:00:02.2
  C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
  I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
  E:  Ad=81(I) Atr=03(Int.) MxPS=   4 Ivl=256ms

  T:  Bus=03 Lev=01 Prnt=01 Port=00 Cnt=01 Dev#=  2 Spd=480 MxCh= 4
  D:  Ver= 2.00 Cls=09(hub  ) Sub=00 Prot=01 MxPS=64 #Cfgs=  1
  P:  Vendor=05e3 ProdID=0660 Rev= 5.07
  S:  Product=USB2.0 Hub
  C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=100mA
  I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
  E:  Ad=81(I) Atr=03(Int.) MxPS=   1 Ivl=256ms

  T:  Bus=03 Lev=02 Prnt=02 Port=00 Cnt=01 Dev#=  3 Spd=1.5 MxCh= 0
  D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
  P:  Vendor=046d ProdID=c001 Rev= 4.00
  S:  Manufacturer=Logitech
  S:  Product=USB Mouse
  C:* #Ifs= 1 Cfg#= 1 Atr=a0 MxPwr= 50mA
  I:* If#= 0 Alt= 0 #EPs= 1 Cls=03(HID  ) Sub=01 Prot=02 Driver=usbhid
  E:  Ad=81(I) Atr=03(Int.) MxPS=   8 Ivl=10ms

  T:  Bus=03 Lev=02 Prnt=02 Port=01 Cnt=02 Dev#=  4 Spd=12  MxCh= 0
  D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
  P:  Vendor=067b ProdID=2303 Rev= 3.00
  S:  Manufacturer=Prolific Technology Inc.
  S:  Product=USB-Serial Controller
  C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=100mA
  I:* If#= 0 Alt= 0 #EPs= 3 Cls=ff(vend.) Sub=00 Prot=00 Driver=pl2303
  E:  Ad=81(I) Atr=03(Int.) MxPS=  10 Ivl=1ms
  E:  Ad=02(O) Atr=02(Bulk) MxPS=  64 Ivl=0ms
  E:  Ad=83(I) Atr=02(Bulk) MxPS=  64 Ivl=0ms

  T:  Bus=03 Lev=02 Prnt=02 Port=02 Cnt=03 Dev#=  5 Spd=12  MxCh= 0
  D:  Ver= 1.10 Cls=00(>ifc ) Sub=00 Prot=00 MxPS= 8 #Cfgs=  1
  P:  Vendor=0d8c ProdID=0103 Rev= 0.10
  S:  Manufacturer=C-Media INC.
  S:  Product=C-Media USB Audio       
  C:* #Ifs= 2 Cfg#= 1 Atr=80 MxPwr=500mA
  I:* If#= 0 Alt= 0 #EPs= 0 Cls=01(audio) Sub=01 Prot=00 Driver=snd-usb-audio
  I:  If#= 1 Alt= 0 #EPs= 0 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
  I:* If#= 1 Alt= 1 #EPs= 1 Cls=01(audio) Sub=02 Prot=00 Driver=snd-usb-audio
  E:  Ad=06(O) Atr=09(Isoc) MxPS= 192 Ivl=1ms

  T:  Bus=03 Lev=02 Prnt=02 Port=03 Cnt=04 Dev#=  6 Spd=480 MxCh= 0
  D:  Ver= 2.00 Cls=00(>ifc ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
  P:  Vendor=0781 ProdID=5151 Rev= 0.10
  S:  Manufacturer=SanDisk Corporation
  S:  Product=Cruzer Micro
  S:  SerialNumber=20052243530A7360A9A6
  C:* #Ifs= 1 Cfg#= 1 Atr=80 MxPwr=200mA
  I:* If#= 0 Alt= 0 #EPs= 2 Cls=08(stor.) Sub=06 Prot=50 Driver=usb-storage
  E:  Ad=81(I) Atr=02(Bulk) MxPS= 512 Ivl=0ms
  E:  Ad=01(O) Atr=02(Bulk) MxPS= 512 Ivl=125us

  T:  Bus=02 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
  B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
  D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
  P:  Vendor=0000 ProdID=0000 Rev= 2.06
  S:  Manufacturer=Linux 2.6.23.1 ohci_hcd
  S:  Product=OHCI Host Controller
  S:  SerialNumber=0000:00:02.1
  C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
  I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
  E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

  T:  Bus=01 Lev=00 Prnt=00 Port=00 Cnt=00 Dev#=  1 Spd=12  MxCh= 1
  B:  Alloc=  0/900 us ( 0%), #Int=  0, #Iso=  0
  D:  Ver= 1.10 Cls=09(hub  ) Sub=00 Prot=00 MxPS=64 #Cfgs=  1
  P:  Vendor=0000 ProdID=0000 Rev= 2.06
  S:  Manufacturer=Linux 2.6.23.1 ohci_hcd
  S:  Product=OHCI Host Controller
  S:  SerialNumber=0000:00:02.0
  C:* #Ifs= 1 Cfg#= 1 Atr=e0 MxPwr=  0mA
  I:* If#= 0 Alt= 0 #EPs= 1 Cls=09(hub  ) Sub=00 Prot=00 Driver=hub
  E:  Ad=81(I) Atr=03(Int.) MxPS=   2 Ivl=255ms

These modules are loaded:

  $ lsmod
  Module                  Size  Used by    Not tainted
  usbhid                 26160  0 
  hid                    73552  1 usbhid
  evdev                   6016  2 
  input_core             18992  6 usbhid,hid,evdev
  pl2303                 15312  1 
  usb_storage            27680  1 
  usbserial              24448  3 pl2303
  snd_usb_audio          57088  0 
  snd_usb_lib            11904  1 snd_usb_audio
  ehci_hcd               28560  0 
  ohci_hcd               15088  0 
  sd_mod                 18512  2 
  nf_nat_tftp              480  0 
  nf_conntrack_tftp       2480  1 nf_nat_tftp
  nf_nat_irc               960  0 
  nf_conntrack_irc        2832  1 nf_nat_irc
  nf_nat_ftp              1472  0 
  nf_conntrack_ftp        5152  1 nf_nat_ftp
  snd_pcm_oss            40032  0 
  snd_mixer_oss          13728  1 snd_pcm_oss
  snd_pcm                57056  2 snd_usb_audio,snd_pcm_oss
  snd_timer              16144  1 snd_pcm
  snd_rawmidi            15936  1 snd_usb_lib
  snd_hwdep               4784  1 snd_usb_audio
  snd_page_alloc          5168  1 snd_pcm
  snd                    35280  7 
snd_usb_audio,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_rawmidi,snd_hwdep
  soundcore               3664  1 snd
  vfat                    8576  1 
  fat                    42480  1 vfat
  nls_iso8859_1           2880  1 
  nls_cp437               4416  1 
  usbcore               106224  9 
usbhid,pl2303,usb_storage,usbserial,snd_usb_audio,snd_usb_lib,ehci_hcd,ohci_hcd
  scsi_mod               71584  2 usb_storage,sd_mod
  nls_base                4416  4 vfat,fat,nls_iso8859_1,nls_cp437
  switch_robo             4048  0 
  switch_core             5056  1 switch_robo
  diag                    8272  0 



-- 
Russell Senior         ``I have nine fingers; you have ten.''
[EMAIL PROTECTED]
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to