<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    thanks for fast and precise answer<br>
    editing /lib/modprobe.d/aliases.conf <br>
    and changing: <br>
    options snd-usb-audio index=-2<br>
    to<br>
    options snd-usb-audio index=0<br>
    make the card number to 0 and works in pd with alsa.<br>
    n<br>
    <pre class="moz-signature" cols="72"><a class="moz-txt-link-freetext" href="http://www.nimon.org">http://www.nimon.org</a>
</pre>
    <div class="moz-cite-prefix">Le 06/12/2016 à 10:24, IOhannes m
      zmoelnig a écrit :<br>
    </div>
    <blockquote cite="mid:29f64060-ba43-3723-ee9c-b2896109dba2@iem.at"
      type="cite">
      <pre wrap="">On 2016-12-06 10:13, Nicolas Montgermont via Pd-list wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">I can't manage to make it work in pd,
it appears in the menu, but when I launch dsp, it shows:
ALSA lib pcm_hw.c:1667:(_snd_pcm_hw_open) Invalid value for card
ALSA input error (snd_pcm_open): No such file or directory
... same for output
what should I do to use it in pd?
</pre>
      </blockquote>
      <pre wrap="">
iirc, there's a problem if the cards are not in consecuritve order,
starting with 0.

e.g. my devices are
$ cat /proc/asound/cards
 0 [DSP            ]: H-DSP - Hammerfall DSP
                      RME Hammerfall HDSP 9652 at 0xf3100000, irq 22
 1 [MID            ]: HDA-Intel - HDA Intel MID
                      HDA Intel MID at 0xf3420000 irq 33
 2 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf3000000 irq 17
$
which means i have 3 devices with ids 0,1&2.

if however, you have something like
$ cat /proc/asound/cards
 1 [NVidia         ]: HDA-Intel - HDA NVidia
                      HDA NVidia at 0xf3000000 irq 17
$

then you are missing the device #0, and Pd gets into trouble.


a couple of workarounds:
- use jack to talk with the soundcard, so Pd doesn't need to know
- make sure that the card numbers start with 0 (and are consecutive, in
case you want to access a not-first card); this most likely involves
tweaking some kernel module parameters (for the soundcards to be
loaded), and maybe some udev rules.

fgjmasdr
IOhannes

</pre>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
<a class="moz-txt-link-abbreviated" href="mailto:Pd-list@lists.iem.at">Pd-list@lists.iem.at</a> mailing list
UNSUBSCRIBE and account-management -> <a class="moz-txt-link-freetext" href="https://lists.puredata.info/listinfo/pd-list">https://lists.puredata.info/listinfo/pd-list</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>