[Pkg-alsa-devel] Bug#430677: libasound2-plugins: "plug" plugin does not handle FLOAT_LE

Lars Luthman lars.luthman at gmail.com
Tue Jun 26 14:16:42 UTC 2007


Package: libasound2-plugins
Version: 1.0.14-1
Severity: important


The "plug" plugin doesn't seem to be able to convert any other sample
formats to FLOAT_LE. I tried to set up a PCM device on top of JACK,
using the following .asoundrc:


pcm.jack {
    type jack
        playback_ports {
            0 alsa_pcm:playback_1
            1 alsa_pcm:playback_2
        }
    }
			     
			      
pcm.jackplug {
    type plug
    slave { pcm "jack" }
}
				      
			       
ctl.jackplug {
    type hw
    card 0
}


This does not work. I get the following error:

[ll at box ~]$ aplay -D jackplug ~/tmp/acid.wav
JACK tmpdir identified as [/tmp]
Playing WAVE '/home/ll/tmp/acid.wav' : Signed 16 bit Little Endian,
Rate 48000 Hz, Mono
aplay: set_params:904: Sample format non available

I then tried inserting a "rate" plugin in the chain, to see if that
would change anything, using the following .asoundrc:


pcm.jack {
    type jack
    playback_ports {
        0 alsa_pcm:playback_1
        1 alsa_pcm:playback_2
    }
}
			     
			      
pcm.jack2 {
    type plug
    slave { pcm "jack" }
}
				      
				       
pcm.jackplug {
    type rate
    slave {
        pcm "jack2"
        rate 48000
    }
    converter "samplerate"
}
				 
				 
ctl.jackplug {
    type hw
    card 0
}


This gave the more verbose error:

[ll at box ~]$ aplay -D jackplug ~/tmp/acid.wav
JACK tmpdir identified as [/tmp]
Playing WAVE '/home/ll/tmp/acid.wav' : Signed 16 bit Little Endian,
Rate 48000 Hz, Mono
ALSA lib pcm_plug.c:746:(snd_pcm_plug_hw_refine_schange) Unable to
find an usable slave format for 'jack2'
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S8
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U8
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S16_LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S16_BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U16_LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U16_BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S24_LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S24_BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U24_LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U24_BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S32_LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S32_BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U32_LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U32_BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S24_3LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S24_3BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U24_3LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U24_3BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S20_3LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S20_3BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U20_3LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U20_3BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S18_3LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: S18_3BE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U18_3LE
ALSA lib pcm_plug.c:750:(snd_pcm_plug_hw_refine_schange) Format: U18_3BE
ALSA lib pcm_plug.c:755:(snd_pcm_plug_hw_refine_schange) Slave format:
FLOAT_LE
ALSA lib pcm_plug.c:840:(snd_pcm_plug_hw_refine_cchange) Unable to
find an usable client format
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S8
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U8
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S16_LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S16_BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U16_LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U16_BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S32_LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S32_BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U32_LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U32_BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_3LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S24_3BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_3LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U24_3BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S20_3LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S20_3BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U20_3LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U20_3BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S18_3LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: S18_3BE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U18_3LE
ALSA lib pcm_plug.c:844:(snd_pcm_plug_hw_refine_cchange) Format: U18_3BE
ALSA lib pcm_plug.c:849:(snd_pcm_plug_hw_refine_cchange) Slave format:
FLOAT_LE
aplay: set_params:882: Broken configuration for this PCM: no
configurations available


So it looks like the "plug" plugin doesn't know what to do with
FLOAT_LE streams, which are the only type of streams that JACK
handles. This means that the "plug" plugin can not be used on top of
the JACK plugin.

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (900, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.20-rc5-rt7 (SMP w/1 CPU core; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages libasound2-plugins depends on:
ii  libasound2               1.0.14a-1       ALSA library
ii  libavcodec1d             0.cvs20070307-5 ffmpeg codec library
ii  libc6                    2.5-9+b1        GNU C Library: Shared
libraries
ii  libdbus-1-3              1.0.2-1         simple interprocess
messaging syst
ii  libjack0                 0.103.0-6       JACK Audio Connection Kit
(librari
ii  libpulse0                0.9.5-7         PulseAudio client libraries
ii  libsamplerate0           0.1.2-5         audio rate conversion
library

libasound2-plugins recommends no packages.

-- no debconf information

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : http://lists.alioth.debian.org/pipermail/pkg-alsa-devel/attachments/20070626/8b154263/attachment.pgp 


More information about the Pkg-alsa-devel mailing list