All of lore.kernel.org
 help / color / mirror / Atom feed
* [Bug?] alsa-lib: Plug fails to convert float mono to float stereo
@ 2014-06-08 19:02 Sergey
  0 siblings, 0 replies; only message in thread
From: Sergey @ 2014-06-08 19:02 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-06-08 19:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-06-08 19:02 [Bug?] alsa-lib: Plug fails to convert float mono to float stereo Sergey

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.