hey miller.
yeah on raspbian i got rid of the "invalid card" nag. no way to test stuff at moment via gui. all done via ssh on headless rpi.
my guess is it has nothing to do with pd. usb cards have to be set to default.
$ nano /etc/asound.conf
pcm.!default { type hw card 0 }
ctl.!default { type hw card 0 }
$nano /etc/modprobe.d/alsa-base.conf change line: # Keep snd-usb-audio from beeing loaded as first soundcard options snd-usb-audio index=-2
to: # Keep snd-usb-audio from beeing loaded as first soundcard options snd-usb-audio index=0
m
On Sat, Sep 1, 2012 at 7:13 PM, Miller Puckette msp@ucsd.edu wrote:
Hmm - no matter what I try over here I can't get Pd to complain 'Invalid value for card' - a lame guess would be that either the input or output only does mono and Pd is asking for 2 channels or something like that.
I suppose all works fine when you open Pd with a GUI, right?
Thanks for your patience... M
On Sat, Sep 01, 2012 at 06:33:37PM -0400, m.e.grimm wrote:
hey miller,
You can type "pd -nogui -audiodev 1" (1 is the default anyway) to get
yeah that's what i meant. "pd -nogui -audiodev 1", "pd -nogui -audiodev 2", etc etc.... All giving me the same error.
ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card snd_pcm_open (input): No such file or directory ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card snd_pcm_open (output): No such file or directory
m
On Sat, Sep 1, 2012 at 2:17 PM, Miller Puckette msp@ucsd.edu wrote:
You can type "pd -nogui -audiodev 1" (1 is the default anyway) to get the "hardware" device or "pd -nogui -audiodev 2" to get the "plughw" device. The "device numbers" in the Pd argument agree with the numbering that "-listdev" prints out.
cheers Miller
On Sat, Sep 01, 2012 at 12:11:42PM -0400, m.e.grimm wrote:
My audio card is listed as:
pi@raspberrypi ~ $ lsusb Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub Bus 001 Device 002: ID 0424:9512 Standard Microsystems Corp. Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. Bus 001 Device 004: ID 7392:7811 Edimax Technology Co., Ltd EW-7811Un 802.11n Wireless Adapter [Realtek RTL8188CUS] Bus 001 Device 008: ID 0d8c:000e C-Media Electronics, Inc. Audio Adapter (Planet UP-100, Genius G-Talk)
pi@raspberrypi ~ $ aplay -l **** List of PLAYBACK Hardware Devices **** card 1: Device [Generic USB Audio Device], device 0: USB Audio [USB Audio] Subdevices: 1/1 Subdevice #0: subdevice #0
When i do:
pi@raspberrypi ~ $speaker-test -Dplughw:1,0 -t sine -f 800
I get a test tone from the output. Then I do:
pi@raspberrypi ~ $ sudo pd -nogui -listdev audio input devices:
- Generic USB Audio Device (hardware)
- Generic USB Audio Device (plug-in)
audio output devices:
- Generic USB Audio Device (hardware)
- Generic USB Audio Device (plug-in)
API number 1
pi@raspberrypi ~ $ pd -nogui -alsa -nomidi -audiodev 1,1 ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card snd_pcm_open (input): No such file or directory ALSA lib pcm_hw.c:1401:(_snd_pcm_hw_open) Invalid value for card snd_pcm_open (output): No such file or directory
hmmmm... am i doing something silly wrong here? what am i missing with my flags that giving me "Invalid value for card"?
thanks! m
-- ____________________ m.e.grimm | m.f.a | ed.m. megrimm@gmail.com _________________________________
Pd-list@iem.at mailing list UNSUBSCRIBE and account-management -> http://lists.puredata.info/listinfo/pd-list
-- ____________________ m.e.grimm | m.f.a | ed.m. megrimm@gmail.com _________________________________