Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 49146 - alsa 'aplay file.wav' on amd64 and via82xx sound card produces repeated sampling output
Summary: alsa 'aplay file.wav' on amd64 and via82xx sound card produces repeated sampl...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: AMD64 Linux
: Normal normal
Assignee: AMD64 Project
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-04-27 04:11 UTC by Roger Hill-Cottingham
Modified: 2004-05-07 05:24 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Roger Hill-Cottingham 2004-04-27 04:11:41 UTC
Playing a wav file through alsa pcm device generates a quadruply repeated short sample (about 0.25 seconds), so instead of the data being output 1234... I get 1111222233334444... if you see what I mean. Reducing the value of the --buffer-size= option to aplay can shorten the sample time, but not the repeat effect.

Hardware: Acer Aspire 1501LMi laptop, 512M Ram, 1.8GHz cpu. (Athlon64 3000+)

Kernel 2.6.5-gentoo-r1, although it also did the same on kernel 2.6.3-gentoo-r2

Playing sound direct from a CD is correct (this does not use the pcm input).

$ lsmod
Module                  Size  Used by
cpufreq_userspace       5152  0 
snd_pcm_oss            58340  0 
snd_mixer_oss          18816  1 snd_pcm_oss
snd_via82xx            23296  0 
snd_pcm                97100  2 snd_pcm_oss,snd_via82xx
snd_timer              22216  1 snd_pcm
snd_ac97_codec         64900  1 snd_via82xx
snd_page_alloc         10632  2 snd_via82xx,snd_pcm
snd_mpu401_uart         6592  1 snd_via82xx
snd_rawmidi            21472  1 snd_mpu401_uart
snd                    49192  8 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_pcm,snd_timer,snd_ac97_codec,snd_mpu401_uart,snd_rawmidi
sg                     25328  0 
ide_scsi               14724  0 
radeon                110048  0 
yenta_socket           15360  0 
ide_cd                 38536  0 
sr_mod                 13540  0 
cdrom                  37160  2 ide_cd,sr_mod

Removing snd-oss-pcm module has no effect.

I have tried adding
options snd-via82xx dxs_support=2 
to /etc/modules.d/alsa to no avail.

Booting to a 32-bit installation running 2.4.23 kernel works correctly.
Comment 1 Danny van Dyk (RETIRED) gentoo-dev 2004-04-29 09:57:33 UTC
odd. I use via82xx as well, but i had no problems throughout 2.6 series starting from 2.6.0-test9.

Please provide output of
grep SND /usr/src/linux/.config | grep -v "#"
Comment 2 Roger Hill-Cottingham 2004-04-30 11:43:50 UTC
OK:
$ grep SND /usr/src/linux/.config | grep -v "#"
CONFIG_SND=m
CONFIG_SND_BIT32_EMUL=m
CONFIG_SND_TIMER=m
CONFIG_SND_PCM=m
CONFIG_SND_HWDEP=m
CONFIG_SND_RAWMIDI=m
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=m
CONFIG_SND_PCM_OSS=m
CONFIG_SND_RTCTIMER=m
CONFIG_SND_DEBUG=y
CONFIG_SND_DEBUG_DETECT=y
CONFIG_SND_MPU401_UART=m
CONFIG_SND_OPL3_LIB=m
CONFIG_SND_MTPAV=m
CONFIG_SND_SERIAL_U16550=m
CONFIG_SND_MPU401=m
CONFIG_SND_AC97_CODEC=m
CONFIG_SND_BT87X=m
CONFIG_SND_EMU10K1=m
CONFIG_SND_ENS1370=m
CONFIG_SND_ENS1371=m
CONFIG_SND_ES1938=m
CONFIG_SND_ES1968=m
CONFIG_SND_MAESTRO3=m
CONFIG_SND_INTEL8X0M=m
CONFIG_SND_VIA82XX=m


Roger.
Comment 3 Danny van Dyk (RETIRED) gentoo-dev 2004-05-06 14:33:34 UTC
try my config:
phi dvandyk # grep SND /usr/src/linux/.config | grep -v "#"
CONFIG_SND=y
CONFIG_SND_BIT32_EMUL=y
CONFIG_SND_TIMER=y
CONFIG_SND_PCM=y
CONFIG_SND_RAWMIDI=y
CONFIG_SND_OSSEMUL=y
CONFIG_SND_MIXER_OSS=y
CONFIG_SND_PCM_OSS=y
CONFIG_SND_RTCTIMER=y
CONFIG_SND_MPU401_UART=y
CONFIG_SND_AC97_CODEC=y
CONFIG_SND_VIA82XX=y

Probably problems with auto module loading, or you forgot to load some modules manually. Compile in the above and it should work for you flawlessly...
Good luck !

If it works, please tell us here, so that we can close this Bug. ;-)
Comment 4 Roger Hill-Cottingham 2004-05-07 05:24:15 UTC
Sorry, using the sound drivers hardwired into the kernel makes no difference.

Roger.