[alsa-devel] [Bug?] alsa-lib: Plug fails to convert float mono to float stereo

Sergey sergemp at mail.ru
Sun Jun 8 21:02:23 CEST 2014


Plug fails to convert float mono to float stereo,
which is required when plug is used for float-only slaves
like "jack" or "ladspa".

Steps to reproduce:
#~/.asoundrc
pcm.!default {
  type plug
  slave.pcm { type null }
  slave.channels 2
  slave.format FLOAT_LE
}
# aplay -f FLOAT_LE /dev/zero

A possible workaround is to use two plugs:
pcm.!default {
  type plug
  slave.pcm {
    type plug
    slave.pcm { type null }
    slave.channels 2
    slave.format FLOAT_LE
  }
  slave.format S32_LE
}

But shouldn't "plug" do that automatically?

PS: the workaround makes `aplay -fFLOAT_LE /dev/zero` freeze on Ctrl+C,
but that's a different alsa 1.0.27 regression that I have not tracked yet.

-- 
  Sergey


More information about the Alsa-devel mailing list