<html>
    <head>
      <base href="https://bugs.freedesktop.org/" />
    </head>
    <body><table border="1" cellspacing="0" cellpadding="8">
        <tr>
          <th>Priority</th>
          <td>medium
          </td>
        </tr>

        <tr>
          <th>Bug ID</th>
          <td><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW --- - loading alsa-sinks including ladspa-filters fails"
   href="https://bugs.freedesktop.org/show_bug.cgi?id=79280">79280</a>
          </td>
        </tr>

        <tr>
          <th>CC</th>
          <td>lennart@poettering.net
          </td>
        </tr>

        <tr>
          <th>Assignee</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Summary</th>
          <td>loading alsa-sinks including ladspa-filters fails
          </td>
        </tr>

        <tr>
          <th>QA Contact</th>
          <td>pulseaudio-bugs@lists.freedesktop.org
          </td>
        </tr>

        <tr>
          <th>Severity</th>
          <td>normal
          </td>
        </tr>

        <tr>
          <th>Classification</th>
          <td>Unclassified
          </td>
        </tr>

        <tr>
          <th>OS</th>
          <td>Linux (All)
          </td>
        </tr>

        <tr>
          <th>Reporter</th>
          <td>der_papst_623ea@hotmail.com
          </td>
        </tr>

        <tr>
          <th>Hardware</th>
          <td>x86-64 (AMD64)
          </td>
        </tr>

        <tr>
          <th>Status</th>
          <td>NEW
          </td>
        </tr>

        <tr>
          <th>Version</th>
          <td>unspecified
          </td>
        </tr>

        <tr>
          <th>Component</th>
          <td>alsa
          </td>
        </tr>

        <tr>
          <th>Product</th>
          <td>PulseAudio
          </td>
        </tr></table>
      <p>
        <div>
        <pre>Created <span class=""><a href="attachment.cgi?id=99905" name="attach_99905" title="my asoundrc including the rl-crossover">attachment 99905</a> <a href="attachment.cgi?id=99905&action=edit" title="my asoundrc including the rl-crossover">[details]</a></span>
my asoundrc including the rl-crossover

(As requested in the faq, i mention this bug occured on Kubuntu, but it was
reproduced by an user of #alsa on Debian)

I've created a Linkwitz-Riley-crossover (4th order) in .asoundrc for upmixing
2.0->2.1 (see attached .asoundrc). The crossover works great with aplay or with
vlc when selected as alsa output device.

I can load any pcm from .asoundrc as alsa-sink, as long as there's no
ladspa-filter in the signal chain.

But when i do pactl load-module module-alsa-sink device=upmixplug, it fails
with:
I: [pulseaudio] client.c: Created 7 "Native client (UNIX socket client)"
D: [pulseaudio] protocol-native.c: Protocol version: remote 28, local 28
I: [pulseaudio] protocol-native.c: Got credentials: uid=1000 gid=1000 success=1
D: [pulseaudio] protocol-native.c: SHM possible: yes
D: [pulseaudio] protocol-native.c: Negotiated SHM: yes
D: [pulseaudio] module-augment-properties.c: Looking for .desktop file for
pactl
D: [pulseaudio] alsa-util.c: Trying upmixplug with SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open upmixplug
I: [pulseaudio] (alsa-lib)pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying upmixplug without SND_PCM_NO_AUTO_FORMAT
...
D: [pulseaudio] alsa-util.c: Managed to open upmixplug
I: [pulseaudio] (alsa-lib)pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying plug:upmixplug with SND_PCM_NO_AUTO_FORMAT
...
D: [pulseaudio] alsa-util.c: Managed to open plug:upmixplug
I: [pulseaudio] (alsa-lib)pcm_params.c: Slave PCM not usable
I: [pulseaudio] (alsa-lib)pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
D: [pulseaudio] alsa-util.c: Trying plug:upmixplug without
SND_PCM_NO_AUTO_FORMAT ...
D: [pulseaudio] alsa-util.c: Managed to open plug:upmixplug
I: [pulseaudio] (alsa-lib)pcm_params.c: Slave PCM not usable
I: [pulseaudio] (alsa-lib)pcm_params.c: Slave PCM not usable
D: [pulseaudio] alsa-util.c: snd_pcm_hw_params_any() failed: Invalid argument
I: [pulseaudio] alsa-util.c: Failed to set hardware parameters on
plug:upmixplug: Invalid argument
E: [pulseaudio] module.c: Failed to load module "module-alsa-sink" (argument:
"device=upmixplug"): initialization failed.
D: [pulseaudio] module-udev-detect.c: /dev/snd/controlC0 is accessible: yes
I: [pulseaudio] client.c: Freed 7 "pactl"
I: [pulseaudio] protocol-native.c: Connection died.


I get the same result with any other pcm from .asoundrc when a ladspa-filter is
in the signal chain.
Before trying to load a sink, i've always unloaded the soundcard (D2X) from PA
to avoid any chance of a collision.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the QA Contact for the bug.</li>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>