Hello everyone,
I am still trying to use PD with the HDSP 9632 audio card in linux. Everytime I started PD with the card in linux it would not open. I kept getting an audio I/O stuck message when trying to start PD in linux. As suggested I tried it with ALSA and jack with the commands:
pd -alsa pd-jack
The error read as follows: using non-interleaved audio input Sample width set to 4 bytes ALSA: set input channels to 4 snd_pcm_hw_params_set_access (output): Invalid argument using non-interleaved audio alsa: set output channels to 4 audio I/O stuck... closing audio
The alsa drivers seem to be loaded correctly during the boot. When given the command: alsasound.start I get a message that the drivers are loaded.
[lspmc@d68h203 lspmc]$ /etc/rc.d/init.d/alsasound start ALSA driver already running Sound driver snd-hdsp is already loaded
I also tried to open both in KDE and the Arts sound server is disabled or unchecked. I am not sure what should be checked in the gnome session equivalent to that of the arts sound. At this point I do not know what else I should check. I also removed `loaded drivers:
[lspmc@d68h203 lspmc]$ pd -oss pd: exiting pd: exiting [lspmc@d68h203 lspmc]$ /sbin/lsmod Module Size Used by Not tainted snd-hdsp 48076 0 snd-pcm 87264 0 [snd-hdsp] snd-page-alloc 9876 0 [snd-hdsp snd-pcm] snd-hwdep 7104 0 [snd-hdsp] i810_audio 29048 0 ac97_codec 17224 0 [i810_audio] i830 74816 1 agpgart 56836 11 (autoclean) parport_pc 19172 1 (autoclean) lp 9060 0 (autoclean) parport 37792 1 (autoclean) [parport_pc lp] snd-seq-midi 5280 0 (unused) snd-seq-midi-event 6272 0 [snd-seq-midi] snd-seq 49456 0 [snd-seq-midi snd-seq-midi-event] snd-rawmidi 19424 0 [snd-hdsp snd-seq-midi] snd-seq-device 6204 0 [snd-seq-midi snd-seq snd-rawmidi] snd-timer 20772 0 [snd-pcm snd-seq] snd 46980 0 [snd-hdsp snd-pcm snd-hwdep snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-timer] soundcore 6660 6 [i810_audio snd] autofs 13652 0 (autoclean) (unused) e100 58020 1 ipt_REJECT 4344 6 (autoclean) iptable_filter 2444 1 (autoclean) ip_tables 15808 2 [ipt_REJECT iptable_filter] sg 37804 0 (autoclean) sr_mod 18168 0 (autoclean) ide-scsi 12240 0 scsi_mod 109716 3 [sg sr_mod ide-scsi] ide-cd 36128 0 cdrom 34048 0 [sr_mod ide-cd] nls_iso8859-1 3516 1 (autoclean) nls_cp437 5148 1 (autoclean) vfat 13132 1 (autoclean) fat 39704 0 (autoclean) [vfat] keybdev 2976 0 (unused) mousedev 5620 1 hid 24708 0 (unused) input 5856 0 [keybdev mousedev hid] usb-uhci 27372 0 (unused) ehci-hcd 20808 0 (unused) usbcore 81152 1 [hid usb-uhci ehci-hcd] ext3 73444 2 jbd 54228 2 [ext3]
Any help would be appreciated.
Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! http://login.mail.lycos.com/r/referral?aid=27005
I am still trying to use PD with the HDSP 9632 audio card in linux. Everytime I started PD with the card in linux it would not open. I kept getting an audio I/O stuck message when trying to start PD in linux. As suggested I tried it with ALSA and jack with the commands:
pd -alsa pd -jack
Did you start jack before? If you are using the Planet CCRMA kernels (or another kernel with capabilities enabled) then you should be able to do something like this:
jackstart -R -d alsa -d hw -r 44100
(or 48000, that will start jack with the default of two buffers of 1024 frames each). That should start the jack server (you can also use the qjackctl gui for that).
After jack is up and running try: pd -jack
[lspmc@d68h203 lspmc]$ /sbin/lsmod Module Size Used by Not tainted snd-hdsp 48076 0 snd-pcm 87264 0 [snd-hdsp] snd-page-alloc 9876 0 [snd-hdsp snd-pcm] snd-hwdep 7104 0 [snd-hdsp]
These two modules:
i810_audio 29048 0 ac97_codec 17224 0 [i810_audio]
are part of OSS, not ALSA, so probably you still have your OSS configuration in /etc/modules.conf in addition to your ALSA config. Could you post your /etc/modules.conf?
-- Fernando
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Melissa Corso wrote: | Hello everyone, | | I am still trying to use PD with the HDSP 9632 audio card in linux. Everytime I started PD with the card in linux it would not open. I kept getting an audio I/O stuck message when trying to start PD in linux. As suggested I tried it with ALSA and jack with the commands: | | pd -alsa | pd-jack | | The error read as follows: using non-interleaved audio input | Sample width set to 4 bytes | ALSA: set input channels to 4 | snd_pcm_hw_params_set_access (output): Invalid argument | using non-interleaved audio | alsa: set output channels to 4 | audio I/O stuck... closing audio
I've got a similar error also with a kernel 2.6, posted a few days ago but no one here was able to help... let's see how we do this time.
My error was a little different though, my audio I/O doesn't become because I don't get that far, your pd seems to decide he should use *non-interleaved audio*, mine asserts he cannot continue due to not being able to use *interleaved audio*. Here's my output
<snip> $ pd -alsa -nogui snd_pcm_hw_params_set_access (input): Invalid argument Sample width set to 2 bytes pd: pcm.c:1101: snd_pcm_readi: Assertion `pcm->access == SND_PCM_ACCESS_RW_INTERLEAVED' failed. Pd: signal 6 Aborted </snip>
What's your PD version? And ALSA version? Does OSS work for you if tou load compatibility modules? Has _anyone_ been able to use PD with a 2.6 kernel yet?
| | The alsa drivers seem to be loaded correctly during the boot. When given the command: alsasound.start I get a message that the drivers are loaded.
do you see any alsa related errors in the output of dmesg? can you 'aplay $sound_file'? That would give you a soundsystem basic test...
| | [lspmc@d68h203 lspmc]$ /etc/rc.d/init.d/alsasound start | ALSA driver already running | Sound driver snd-hdsp is already loaded | | I also tried to open both in KDE and the Arts sound server is disabled or unchecked. I am not sure what should be checked in the gnome session equivalent to that of the arts sound. At this point I do not know what else I should check. I also removed `loaded drivers: | | [lspmc@d68h203 lspmc]$ pd -oss | pd: exiting | pd: exiting | [lspmc@d68h203 lspmc]$ /sbin/lsmod | Module Size Used by Not tainted | snd-hdsp 48076 0 | snd-pcm 87264 0 [snd-hdsp] | snd-page-alloc 9876 0 [snd-hdsp snd-pcm] | snd-hwdep 7104 0 [snd-hdsp] | i810_audio 29048 0 | ac97_codec 17224 0 [i810_audio] | i830 74816 1 | agpgart 56836 11 (autoclean) | parport_pc 19172 1 (autoclean) | lp 9060 0 (autoclean) | parport 37792 1 (autoclean) [parport_pc lp] | snd-seq-midi 5280 0 (unused) | snd-seq-midi-event 6272 0 [snd-seq-midi] | snd-seq 49456 0 [snd-seq-midi snd-seq-midi-event] | snd-rawmidi 19424 0 [snd-hdsp snd-seq-midi] | snd-seq-device 6204 0 [snd-seq-midi snd-seq snd-rawmidi] | snd-timer 20772 0 [snd-pcm snd-seq] | snd 46980 0 [snd-hdsp snd-pcm snd-hwdep snd-seq-midi snd-seq-midi-event snd-seq snd-rawmidi snd-seq-device snd-timer] | soundcore 6660 6 [i810_audio snd] | autofs 13652 0 (autoclean) (unused) | e100 58020 1 | ipt_REJECT 4344 6 (autoclean) | iptable_filter 2444 1 (autoclean) | ip_tables 15808 2 [ipt_REJECT iptable_filter] | sg 37804 0 (autoclean) | sr_mod 18168 0 (autoclean) | ide-scsi 12240 0 | scsi_mod 109716 3 [sg sr_mod ide-scsi] | ide-cd 36128 0 | cdrom 34048 0 [sr_mod ide-cd] | nls_iso8859-1 3516 1 (autoclean) | nls_cp437 5148 1 (autoclean) | vfat 13132 1 (autoclean) | fat 39704 0 (autoclean) [vfat] | keybdev 2976 0 (unused) | mousedev 5620 1 | hid 24708 0 (unused) | input 5856 0 [keybdev mousedev hid] | usb-uhci 27372 0 (unused) | ehci-hcd 20808 0 (unused) | usbcore 81152 1 [hid usb-uhci ehci-hcd] | ext3 73444 2 | jbd 54228 2 [ext3] | | Any help would be appreciated. | | | ____________________________________________________________ | Get advanced SPAM filtering on Webmail or POP Mail ... Get Lycos Mail! | http://login.mail.lycos.com/r/referral?aid=27005 | | _______________________________________________ | PD-list mailing list | PD-list@iem.at | http://iem.at/cgi-bin/mailman/listinfo/pd-list | |
"¢@æ^
| I am still trying to use PD with the HDSP 9632 audio card in linux. Everytime I started PD with the card in linux it would not open. I kept getting an audio I/O stuck message when trying to start PD in linux. As suggested I tried it with ALSA and jack with the commands: | | pd -alsa | pd-jack | | The error read as follows: using non-interleaved audio input | Sample width set to 4 bytes | ALSA: set input channels to 4 | snd_pcm_hw_params_set_access (output): Invalid argument | using non-interleaved audio | alsa: set output channels to 4 | audio I/O stuck... closing audio
I've got a similar error also with a kernel 2.6, posted a few days ago but no one here was able to help... let's see how we do this time.
My error was a little different though, my audio I/O doesn't become because I don't get that far, your pd seems to decide he should use *non-interleaved audio*,
That is because the RME card only works in non-interleaved mode.
mine asserts he cannot continue due to not being able to use *interleaved audio*. Here's my output
<snip> $ pd -alsa -nogui snd_pcm_hw_params_set_access (input): Invalid argument Sample width set to 2 bytes pd: pcm.c:1101: snd_pcm_readi: Assertion `pcm->access == SND_PCM_ACCESS_RW_INTERLEAVED' failed. Pd: signal 6 Aborted </snip>
That looks like a bug in alsa itself for your particular soundcard... or for the way that pd is trying to access it. What hardware do you have? Are you using the alsa kernel modules that come with 2.6.1? Those are a little out of date (I think)...
-- Fernando
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Fernando Pablo Lopez-Lezcano wrote: |>| I am still trying to use PD with the HDSP 9632 audio card in |>linux. Everytime I started PD with the card in linux it would not open. |>I kept getting an audio I/O stuck message when trying to start PD in |>linux. As suggested I tried it with ALSA and jack with the commands: |>| |>| pd -alsa |>| pd-jack |>| |>| The error read as follows: using non-interleaved audio input |>| Sample width set to 4 bytes |>| ALSA: set input channels to 4 |>| snd_pcm_hw_params_set_access (output): Invalid argument |>| using non-interleaved audio |>| alsa: set output channels to 4 |>| audio I/O stuck... closing audio |> |>I've got a similar error also with a kernel 2.6, posted a few days ago |>but no one here was able to help... let's see how we do this time. |> |>My error was a little different though, my audio I/O doesn't become |>because I don't get that far, your pd seems to decide he should use |>*non-interleaved audio*, | | | That is because the RME card only works in non-interleaved mode.
Well, that's something didn't know. So a newbie question comes to mind now: how can I tell ALSA and/or PD to use my card in non-interleaved mode? maybe something in .asoundrc? I'll try to check that...
| | |>mine asserts he cannot continue due to not |>being able to use *interleaved audio*. Here's my output |> |><snip> |>$ pd -alsa -nogui |>snd_pcm_hw_params_set_access (input): Invalid argument |>Sample width set to 2 bytes |>pd: pcm.c:1101: snd_pcm_readi: Assertion `pcm->access == |>SND_PCM_ACCESS_RW_INTERLEAVED' failed. |>Pd: signal 6 |>Aborted |></snip> | | | That looks like a bug in alsa itself for your particular soundcard... | or for the way that pd is trying to access it. What hardware do you | have? Are you using the alsa kernel modules that come with 2.6.1? Those | are a little out of date (I think)...
I have a es1968 (Maestro 2E). Debian testing/unstable with 2.6.0-test11 and userspace ALSA 0.9.8 (alsa-base is 1.0.1) | | -- Fernando | | | |
"¢@æ^
|>mine asserts he cannot continue due to not |>being able to use *interleaved audio*. Here's my output |> |><snip> |>$ pd -alsa -nogui |>snd_pcm_hw_params_set_access (input): Invalid argument |>Sample width set to 2 bytes |>pd: pcm.c:1101: snd_pcm_readi: Assertion `pcm->access == |>SND_PCM_ACCESS_RW_INTERLEAVED' failed. |>Pd: signal 6 |>Aborted |></snip> | | That looks like a bug in alsa itself for your particular soundcard... | or for the way that pd is trying to access it. What hardware do you | have? Are you using the alsa kernel modules that come with 2.6.1? Those | are a little out of date (I think)...
I have a es1968 (Maestro 2E). Debian testing/unstable with 2.6.0-test11 and userspace ALSA 0.9.8 (alsa-base is 1.0.1)
I think I know what may be happening. There _are_ some cards out there (and I think that some of the Maestros do that) that have interleaved output and non-interleaved input. Go figure. It's the way the hardware is (mis?)designed. So pd probably queries for the output parameters and uses those for input as well (or viceversa) and the configuration fails because the input and output streams have different interleave - anyway, there is a bug in alsa because you are getting an assertion failure and not a "wrong parameter" at configuration time. Just guessing, of course. You could try using the alsa plug interface which can do format conversions (including interleaving and de-interleaving), but I seem to remember that the current pd alsa code does not let you use generic alsa device names but just card numbers which correspond to the hardware interface (I may be wrong here).
Another option would be to use jack, but jack may also be unhappy about the hardware you have.
-- Fernando
Hallo, Fernando Pablo Lopez-Lezcano hat gesagt: // Fernando Pablo Lopez-Lezcano wrote:
You could try using the alsa plug interface which can do format conversions (including interleaving and de-interleaving), but I seem to remember that the current pd alsa code does not let you use generic alsa device names but just card numbers which correspond to the hardware interface (I may be wrong here).
Fortunately you're wrong at last: the latest Pd from Miller's site, pd-0.37-1test6, supports setting the alsa device as a string again by using the new "-alsaadd" option. So this:
$ pd -alsa -alsaadd plughw:1
should work. It thus is possible to define arbitrary alsa devices in ~/.asoundrc to use in Pd like these:
pcm.pdhw { type hw card 1 }
ctl.pdhw { type hw card 1 }
pcm.pdplug { type plug slave.pcm "pdhw" }
Then play with -alsaadd:
$ pd -alsa -alsaadd pdhw $ pd -alsa -alsaadd pdplug
Of course a lot more device definitions are open to Pd now. The RME surely will need some fiddling to get it to work in Pd.
Here's some links for setting up a decent asoundrc for the RME cards (I don't own one):
http://www.alsa-project.org/alsa-doc/alsa-lib/pcm_plugins.html#pcm_plugins http://alsa.opensrc.org/index.php?page=.asoundrc http://alsa.opensrc.org/index.php?page=RME+Hammerfall+.asoundrc
Frank Barknecht _ ______footils.org__
You could try using the alsa plug interface which can do format conversions (including interleaving and de-interleaving), but I seem to remember that the current pd alsa code does not let you use generic alsa device names but just card numbers which correspond to the hardware interface (I may be wrong here).
Fortunately you're wrong at last:
Good to be wrong! :-)
the latest Pd from Miller's site, pd-0.37-1test6, supports setting the alsa device as a string again by using the new "-alsaadd" option.
Sounds great... I have to upgrade to the latest and greatest... -- Fernando