On Wed, 2008-01-09 at 17:29 +0100, Takashi Iwai wrote:
To be sure: you are using 32bit version, right? For 64bit, the library path might be /usr/lib64, instead of /usr/lib (depending on distro).
Yes. 32 bit. find / -name "*64*" < nothing found > My gentoo /etc/make.conf contains CHOST="i686-pc-linux-gnu" CFLAGS="-march=i686 -mmmx -msse -msse2 -O2 -pipe -fomit-frame-pointer"
So far so good.
IEC958 shows ┌──┐ │MM│ L└──┘R CAPTUR
Yay!
Attach the generated file via "alsactl -f somefile store" instead of ascii art. This contains the all mixer information.
Sorry. alsactl -f /etc/asound.state store asound.state file attached.
It's a user error :) The usage below, -D plug:spdif, is correct, though.
arecord -D plug:spdif -d 10 -f dat -t wav |aplay
ALSA lib dlmisc.c:118:(snd_dlsym_verify) unable to verify version for symbol _snd_pcm_hook_ctl_elems_install
OK, this is a bug in the recent alsa-lib. I fixed it now on HG tree. Please update your alsa-lib repo (maybe better from hg.alsa-project.org).
I re-pulled alsa-lib, and now:
arecord -D plug:spdif -d 10 -f dat -t wav |aplay And arecord -D cards.pcm.iec958 -d 10 -f dat -t wav |aplay
In both cases, I hear nothing, and they end with the same output:
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo arecord: pcm_read:1324: read error: Input/output error
I re-pulled alsa-lib, built successfully, and retry record, with same error:
rm -rf alsa-lib hg clone http://hg.alsa-project.org/alsa-lib alsa-lib pushd alsa-lib ./hgcompile && make install popd arecord -D plug:spdif -d 10 -f dat -t wav |aplay
At this point, should I pull from your daily builds?
I retried arecord with verbose mode on:
arecord -v -D plug:spdif -d 10 -f dat -t wav |aplay
Recording WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo Plug PCM: Hooks PCM Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 16 buffer_size : 16384 period_size : 4096 period_time : 85333 tstamp_mode : NONE period_step : 1 avail_min : 4096 start_threshold : 1 stop_threshold : 16384 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Slave: Hardware PCM card 0 'HDA VIA VT82xx' device 1 subdevice 0 Its setup is: stream : CAPTURE access : RW_INTERLEAVED format : S16_LE subformat : STD channels : 2 rate : 48000 exact rate : 48000 (48000/1) msbits : 16 buffer_size : 16384 period_size : 4096 period_time : 85333 tstamp_mode : NONE period_step : 1 avail_min : 4096 start_threshold : 1 stop_threshold : 16384 silence_threshold: 0 silence_size : 0 boundary : 1073741824 Playing WAVE 'stdin' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo arecord: pcm_read:1324: read error: Input/output error