В Пнд, 20/04/2009 в 10:55 +0200, Takashi Iwai пишет:
At Fri, 17 Apr 2009 23:01:46 +0600, Ivan Mironov wrote:
В Птн, 17/04/2009 в 18:23 +0200, Takashi Iwai пишет:
OK, let's check first what the driver gets wrong. For example, try the patch below. It'll give some debug prints.
ALSA /home/ivan/stuff/alsa-driver/acore/pcm_native.c:1942: CHANNELS minmax error ALSA /home/ivan/stuff/alsa-driver/acore/pcm_native.c:2062: snd_pcm_hw_constraints_complete failed
Thanks. I guess I fixed this problem now. Try the very latest alsa-driver snapshot again. ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/snapshot/alsa-driver-snapshot.tar.gz
Takashi
The old error disappeared, but soundcard still doesn't play sound.
If I run speaker test with an odd number of channels (-c 1, -c 3, etc.), it works without any errors (and without any sound =)):
---------------------------------------------------- $ speaker-test -D plughw:1,0
speaker-test 1.0.19
Playback device is plughw:1,0 Stream parameters are 48000Hz, S16_LE, 1 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 64 to 16384 Period size range from 32 to 8192 Using max buffer size 16384 Periods = 4 was set period_size = 4096 was set buffer_size = 16384 0 - Front Left ^C ----------------------------------------------------
But if I run it with even number of channels (-c 2, -c 4, etc.), it exits with an error in a while (about five seconds):
---------------------------------------------------- $ speaker-test -c 4 -D plughw:1,0
speaker-test 1.0.19
Playback device is plughw:1,0 Stream parameters are 48000Hz, S16_LE, 4 channels Using 16 octaves of pink noise Rate set to 48000Hz (requested 48000Hz) Buffer size range from 32 to 8192 Period size range from 16 to 4096 Using max buffer size 8192 Periods = 4 was set period_size = 2048 was set buffer_size = 8192 0 - Front Left Write error: -5,Input/output error xrun_recovery failed: -5,Input/output error Transfer failed: Operation not permitted ----------------------------------------------------
At this time in dmesg writes the following error:
---------------------------------------------------- ALSA /home/ivan/stuff/alsa-driver/acore/../alsa-kernel/core/pcm_lib.c:1628: playback write error (DMA or IRQ trouble?) ----------------------------------------------------