hi,
I'm finally moving towards the alsa drivers and got the latest (0.9.0beta9) release, aplay and amixer work fine, oss emulation is also ok but pd when started with the -alsa flag gives me :
. .
opened 0 MIDI input device(s) and 0 MIDI output device(s). audio buffer set to 40 opening sound input... snd_pcm_hw_params_set_access (input): Invalid argument Sample width set to 2 bytes opening sound output... input channels = 2, output channels = 2 port 5401 TCL_LIBRARY=./tcl/library TK_LIBRARY=./tk/library ./bin/pd-gui 5401 priority 96 scheduling enabled. memory locking enabled. Waiting for connection request... priority 98 scheduling enabled. memory locking enabled. ./bin/pd-watchdog ... connected pd: pcm.c:472: snd_pcm_readi: Assertion `pcm->access == SND_PCM_ACCESS_RW_INTERLEAVED' failed. Pd: signal 6 ALSA lib pcm_hw.c:145:(snd_pcm_hw_hw_free) SNDRV_PCM_IOCTL_HW_FREE failed: File descriptor in bad state snd_pcm_close (input): File descriptor in bad state test:/home/x/audio/sw/pd/pd-0.34-4# stdout: Broken pipe
could well be a bug in libasound, I was just wondering if anyone else already messed around with that,
if I use -noadc OTOH (since the above is a read access problem) everything works fine ...
card is ESS maestro 2e with snd-card-es1968 driver
BTW, I had to make the following changes to s_linux.c:
#ifdef ALSA01 #include <alsa/asoundlib.h> /* The include file path changed .... */ #endif #ifdef ALSA99 #include <sys/asoundlib.h> /* honestly ... */ #endif
regards,
x
Well...to me it sounds that once again a new ALSA release has some incompatibility with the previous one.... I dont have 0.9.0b9 installed so it is just a guess based on previous experiences...:-(
Did you try an __older__ version such as 0.9.0beta7 or beta8 ?
marco
On Tuesday, 27 November 2001 21:53:13 CK wrote:
hi, I'm finally moving towards the alsa drivers and got the latest (0.9.0beta9) release, aplay and amixer work fine, oss emulation is also ok but pd when started with the -alsa flag gives me : . .
opened 0 MIDI input device(s) and 0 MIDI output device(s). audio buffer set to 40 opening sound input... snd_pcm_hw_params_set_access (input): Invalid argument Sample width set to 2 bytes opening sound output... input channels = 2, output channels = 2 port 5401 TCL_LIBRARY=./tcl/library TK_LIBRARY=./tk/library ./bin/pd-gui 5401 priority 96 scheduling enabled. memory locking enabled. Waiting for connection request... priority 98 scheduling enabled. memory locking enabled. ./bin/pd-watchdog ... connected pd: pcm.c:472: snd_pcm_readi: Assertion `pcm->access ==
SND_PCM_ACCESS_RW_INTERLEAVED' failed.
Pd: signal 6 ALSA lib pcm_hw.c:145:(snd_pcm_hw_hw_free) SNDRV_PCM_IOCTL_HW_FREE
failed: File descriptor in bad state
snd_pcm_close (input): File descriptor in bad state test:/home/x/audio/sw/pd/pd-0.34-4# stdout: Broken pipe
could well be a bug in libasound, I was just wondering if anyone else
already messed around with that, if I use -noadc OTOH (since the above is a read access problem) everything works fine ... card is ESS maestro 2e with snd-card-es1968 driver BTW, I had to make the following changes to s_linux.c: #ifdef ALSA01 #include <alsa/asoundlib.h> /* The include file path changed .... */ #endif #ifdef ALSA99 #include <sys/asoundlib.h> /* honestly ... */ #endif regards, x -- chris@lo-res.org Postmodernism is german romanticism with better http://pilot.fm/ special effects. (Jeff Keuss / via ctheory.com)
*-------------------------------------------------------------------*
marco trevisani (to get the real email address take out "__")
email________________: m__arco@ccrma.sta__nford.edu
Web________________: http://trevisani.mine.nu DeMuDi -- Debian
Multimedia Distribution demudi email_________:
m__arco@dem__udi.org demudi web__________:
http://www.demudi.org Digital Arts Festivals. Calls and
reports <--NEW!!
D-Festival Web______: http://festivals.webhop.org
*-------------------------------------------------------------------*
hi,
CK wrote: ...
could well be a bug in libasound, I was just wondering if anyone else already messed around with that,
...
just recently I have attempted to use beta9 of alsa with Pd driving a hammerfall card, but after little tweaking in s_linux.c gave up. After all any fix will probably be obsolete with next alsa beta.
If there is someone brave enough (and not as braindead as myself) willing to patch s_linux.c, I will be happy to help such a hero with testing.
I have not kept log of my changes, but remember replacing start/xrun_mode() with start/stop_threshold() to get rid of compilation time warning. I mention this, because there is a bug in #if-ed out code for output -- it uses input handles.
Btw. you do not _have_ to change #include path to asoundlib.h, since the sys/ one simply #includes alsa/ one now.
Oss emulation works fine with Pd out of the beta9 box.
Krzysztof