← Back to team overview

touch-packages team mailing list archive

[Bug 1315212]

 

Interesting. I've converted that file to 44100 Hz and now it reveals a
strange behavior. When I play it with buffer size of 64 it sounds like
the pitch is lower than it should be (even if it doesn't overrun though
it does from time to time). When the size is 128 it sounds fine.

# aplay -D plughw:CARD=CA0106 -v --buffer-size=64 /tmp/kde44100.wav
Playing WAVE '/tmp/kde44100.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Converter: libspeex (builtin)
Protocol version: 10002
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 58
  period_size  : 14
  period_time  : 333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 14
  period_event : 0
  start_threshold  : 58
  stop_threshold   : 58
  silence_threshold: 0
  silence_size : 0
  boundary     : 4179340454199820288
Slave: Hardware PCM card 0 'CA0106' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 64
  period_size  : 16
  period_time  : 333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 16
  period_event : 0
  start_threshold  : 64
  stop_threshold   : 64
  silence_threshold: 0
  silence_size : 0
  boundary     : 4611686018427387904
  appl_ptr     : 0
  hw_ptr       : 0
underrun!!! (at least 0.116 ms long)
Status:
  state       : XRUN
  trigger_time: 301642.243139271
  tstamp      : 301642.243254519
  delay       : 2
  avail       : 56
  avail_max   : 56

# aplay -D plughw:CARD=CA0106 -v --buffer-size=128 /tmp/kde44100.wav             
Playing WAVE '/tmp/kde44100.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Converter: libspeex (builtin)
Protocol version: 10002
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 117
  period_size  : 29
  period_time  : 666
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 29
  period_event : 0
  start_threshold  : 117
  stop_threshold   : 117
  silence_threshold: 0
  silence_size : 0
  boundary     : 4215369251218784256
Slave: Hardware PCM card 0 'CA0106' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 128
  period_size  : 32
  period_time  : 666
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 32
  period_event : 0
  start_threshold  : 128
  stop_threshold   : 128
  silence_threshold: 0
  silence_size : 0
  boundary     : 4611686018427387904
  appl_ptr     : 0
  hw_ptr       : 0

This pitch (or maybe speed?) weirdness occurs only on playing stereo
files with rate of 44100. I've tried playing music and it indeed sounds
a bit transposed. Bufsize of 128 frames also seems to produce underruns
after some time, my testing clip was too small to reveal it. So it
required bufsize 512 to be played completely without underruns:

# aplay -D plughw:CARD=CA0106 -v --buffer-size=512 /tmp/ksp44100.wav
Playing WAVE '/tmp/ksp44100.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
Plug PCM: Rate conversion PCM (48000, sformat=S16_LE)
Converter: libspeex (builtin)
Protocol version: 10002
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 44100
  exact rate   : 44100 (44100/1)
  msbits       : 16
  buffer_size  : 529
  period_size  : 132
  period_time  : 3000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 132
  period_event : 0
  start_threshold  : 529
  stop_threshold   : 529
  silence_threshold: 0
  silence_size : 0
  boundary     : 4764808405757984768
Slave: Hardware PCM card 0 'CA0106' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : MMAP_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 576
  period_size  : 144
  period_time  : 3000
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 144
  period_event : 0
  start_threshold  : 576
  stop_threshold   : 576
  silence_threshold: 0
  silence_size : 0
  boundary     : 5188146770730811392
  appl_ptr     : 0
  hw_ptr       : 0

The same song converted to 48000 Hz plays without underruns with buffer
size of 256 frames:

Playing WAVE '/tmp/ksp48000.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
Plug PCM: Hardware PCM card 0 'CA0106' device 0 subdevice 0
Its setup is:
  stream       : PLAYBACK
  access       : RW_INTERLEAVED
  format       : S16_LE
  subformat    : STD
  channels     : 2
  rate         : 48000
  exact rate   : 48000 (48000/1)
  msbits       : 16
  buffer_size  : 256
  period_size  : 64
  period_time  : 1333
  tstamp_mode  : NONE
  period_step  : 1
  avail_min    : 64
  period_event : 0
  start_threshold  : 256
  stop_threshold   : 256
  silence_threshold: 0
  silence_size : 0
  boundary     : 4611686018427387904
  appl_ptr     : 0
  hw_ptr       : 0

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1315212

Title:
  [CA0106 - CA0106, playback] Playback problem - Surround dies, no valid
  output

Status in ALSA driver:
  Confirmed
Status in alsa-driver package in Ubuntu:
  Incomplete

Bug description:
  This is tested against a Creative Labs Sounblaster live! (sb0410) card
  and a SoundBlaster Audigy se (sb0570). Both of them behave strangely,
  output coming through some, but not all speakers, etc. This was
  working in 13.10 under the sb0410. the ca0106 driver is the same for
  both cards.

  ProblemType: Bug
  DistroRelease: Ubuntu 14.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu4
  ProcVersionSignature: Ubuntu 3.13.0-24.46-generic 3.13.9
  Uname: Linux 3.13.0-24-generic i686
  ApportVersion: 2.14.1-0ubuntu3
  Architecture: i386
  AudioDevicesInUse:
   USER        PID ACCESS COMMAND
   /dev/snd/controlC1:  joshp     30385 F.... pulseaudio
   /dev/snd/controlC0:  joshp     30385 F.... pulseaudio
  CurrentDesktop: Unity
  Date: Thu May  1 21:37:12 2014
  InstallationDate: Installed on 2014-04-28 (3 days ago)
  InstallationMedia: Ubuntu 14.04 LTS "Trusty Tahr" - Release i386 (20140417)
  PackageArchitecture: all
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:CA0106 failed
  Symptom_Card: Built-in Audio - Intel ICH6
  Symptom_Type: None of the above
  Title: [CA0106 - CA0106, playback] Playback problem
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 03/03/2006
  dmi.bios.vendor: Dell Inc.
  dmi.bios.version: A08
  dmi.board.name: 0G8310
  dmi.board.vendor: Dell Inc.
  dmi.chassis.type: 3
  dmi.chassis.vendor: Dell Inc.
  dmi.modalias: dmi:bvnDellInc.:bvrA08:bd03/03/2006:svnDellInc.:pnOptiPlexGX280:pvr:rvnDellInc.:rn0G8310:rvr:cvnDellInc.:ct3:cvr:
  dmi.product.name: OptiPlex GX280
  dmi.sys.vendor: Dell Inc.

To manage notifications about this bug go to:
https://bugs.launchpad.net/alsa-driver/+bug/1315212/+subscriptions