This is just my ignorance I imagine. I have ALSA installed as part of my kernel 2.6.15.4, ALSA is 1.0.10rc3. Machine is an EPIA mini-ITX MII6000E (VIA8233) (slackware 10.2):

When I play something with mpg321 -o alsa, or even without the "-o alsa" I get the underruns message and the sound is choppy. So I searched on Google and came up with this to put in the asound.conf:

pcm.anyshit {
       type dmix
       ipc_key 1234
       slave {
               pcm ?hw:0,0?
               #period_time 0
               #period_size 1024
## ? vR ? 2005-02-13 : lowered this from 4096 to 1024 to get rid of
               ## skipping and ?ALSA: underrun, at least 0ms.? errors
               #buffer_size 4096 # buffer size < 6653, but pow(x, 2)
               #buffer_time 84000
               #rate 44100 # we want to play CDs only
       }
}


That's wrong your thinking, it should have " where it has ? and indeed when I run mpg321 I get

ALSA lib conf.c:1578:(snd_config_load1) _toplevel_:15:0:Unexpected char
ALSA lib conf.c:2823:(snd_config_hook_load) /etc/asound.conf may be old or corrupted: consider to remove or fix it ALSA lib conf.c:2686:(snd_config_hooks_call) function snd_config_hook_load returned error: Invalid argument ALSA lib conf.c:3052:(snd_config_update_r) hooks failed, removing configuration

But it plays perfectly. If Ichange the ? to " in the pcm ?hw:0,0? line, then the errors go away but the sound is choppy again.
I have not modified any of the stuff in /usr/share/alsa.  Any ideas?

Other stuff that might be of interest:

lspci:
00:00.0 Host bridge: VIA Technologies, Inc. VT8623 [Apollo CLE266]
00:01.0 PCI bridge: VIA Technologies, Inc. VT8633 [Apollo Pro266 AGP]
00:0a.0 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
00:0a.1 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev 80)
00:0d.0 FireWire (IEEE 1394): VIA Technologies, Inc. IEEE 1394 Host Controller (rev 80) 00:10.0 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) 00:10.1 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80) 00:10.2 USB Controller: VIA Technologies, Inc. VT82xxxxx UHCI USB 1.1 Controller (rev 80)
00:10.3 USB Controller: VIA Technologies, Inc. USB 2.0 (rev 82)
00:11.0 ISA bridge: VIA Technologies, Inc. VT8235 ISA Bridge
00:11.1 IDE interface: VIA Technologies, Inc. VT82C586A/B/VT82C686/A/B/VT823x/A/C PIPC Bus Master IDE (rev 06) 00:11.5 Multimedia audio controller: VIA Technologies, Inc. VT8233/A/8235/8237 AC97 Audio Controller (rev 50) 00:12.0 Ethernet controller: VIA Technologies, Inc. VT6102 [Rhine-II] (rev 74) 01:00.0 VGA compatible controller: VIA Technologies, Inc. VT8623 [Apollo CLE266] integrated CastleRock graphics (rev 03)

lsmod:
snd_pcm_oss            47072  0
snd_mixer_oss          15680  1 snd_pcm_oss
yenta_socket           23916  4
rsrc_nonstatic          9376  1 yenta_socket
ehci_hcd               28904  0
i2c_viapro              7412  0
snd_via82xx            21748  0
snd_ac97_codec         85856  1 snd_via82xx
snd_ac97_bus            1888  1 snd_ac97_codec
snd_pcm                77320  3 snd_pcm_oss,snd_via82xx,snd_ac97_codec
snd_timer              20484  1 snd_pcm
snd_page_alloc          8200  2 snd_via82xx,snd_pcm
snd_mpu401_uart         5952  1 snd_via82xx
snd_rawmidi            20192  1 snd_mpu401_uart
snd_seq_device          6732  1 snd_rawmidi
snd 46628 9 snd_pcm_oss,snd_mixer_oss,snd_via82xx,snd_ac97_codec,snd_pcm,snd_timer,snd_mpu401_uart,snd_rawmidi,snd_seq_device
soundcore               7520  1 snd
via_rhine              19684  0
atmel_cs                6756  1
pcmcia                 24488  1 atmel_cs
pcmcia_core            35408  3 yenta_socket,rsrc_nonstatic,pcmcia
vt1211                 20024  0
hwmon_vid               2176  1 vt1211
hwmon                   2196  1 vt1211
i2c_isa                 3456  1 vt1211
i2c_core               16976  3 i2c_viapro,vt1211,i2c_isa





-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Alsa-user mailing list
Alsa-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to