default snd-usb-audio alsa buffer too low (causes pops and clicks)

Bug #129887 reported by Wit Wilinski
2
Affects Status Importance Assigned to Milestone
linux (Ubuntu)
Won't Fix
Undecided
Unassigned

Bug Description

Default sound buffer set by ALSA for USB soundcards (in my case 0d8c:0006 C-Media Electronics, Inc. with CM-106 chipset, usb-audio driver,
/proc/asound/cards says:
 0 [Audio ]: USB-Audio - USB Audio
                      USB Audio at usb-0000:00:1d.0-2, full speed
) is too low for ordinary, 2-channel playback. Sound skips from time to time regardless of the system load and I/O usage. Seems the latency of PCI/USB bus is higher than the default buffer size set by ALSA. The configuration which resolves the problem looks like this (/etc/asound.conf):

defaults.ctl.card 0
defaults.pcm.card 0

pcm.card0 {
  type hw
  card 0
}

pcm.dmixer {
  type dmix
  ipc_key 1025
  slave {
    pcm "hw:0,0"
    period_time 0
    period_size 2048
    buffer_size 32768
    rate 48000
  }
  bindings {
    0 0
    1 1
  }
}
pcm.skype {
  type asym

  playback.pcm "dmixer"
  capture.pcm "card0"
}

pcm.!default {
  type plug
  slave.pcm "skype"
}

The buffer_size used here might be too large, but I haven't encountered any problems since using that configuration.

Daniel T Chen (crimsun)
Changed in alsa-driver:
status: New → Won't Fix
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.