View previous topic :: View next topic |
Author |
Message |
Gªutama n00b
Joined: 08 Jun 2003 Posts: 32 Location: Tokyo, Japan
|
Posted: Wed Jan 28, 2004 10:59 am Post subject: alsa pcm write error |
|
|
I have a very frustrating alsa error.
I have all the alsa stuff compiled into the kernel. That is:
Code: |
x x <*> Advanced Linux Sound Architecture x x
x x <*> Sequencer support x x
x x < > Sequencer dummy client x x
x x [*] OSS API emulation x x
x x <*> OSS Mixer API x x
x x <*> OSS PCM (digital audio) API x x
x x [*] OSS Sequencer API x x
x x <M> RTC Timer support |
My sound card is a Maestro3 and is compiled as a module. The card is loaded into the kernel.
I get no errors iether when I boot or when I start alsa with:
Code: |
/etc/init.d/alsasound start
|
So everything should work fine (right?)
I have unmuted Master and PCM. However I do not think I would get this error anyhow.
But when I try with to aplay a wav file I get
Code: | aplay /usr/lib/MozillaFirebird/res/samples/test.wav
Playing WAVE '/usr/lib/MozillaFirebird/res/samples/test.wav' : Unsigned 8 bit, Rate 22050 Hz, Mono
aplay: pcm_write:1083: write error: Input/output error
|
Have any one experienced similar problems or do any one have a solution to this, hint? _________________ scars look better than tatoos |
|
Back to top |
|
|
Gªutama n00b
Joined: 08 Jun 2003 Posts: 32 Location: Tokyo, Japan
|
Posted: Fri Jan 30, 2004 2:16 pm Post subject: |
|
|
*bump* _________________ scars look better than tatoos |
|
Back to top |
|
|
Woody Guru
Joined: 30 Nov 2002 Posts: 592 Location: Milwaukee
|
Posted: Fri Jan 30, 2004 4:50 pm Post subject: |
|
|
My only suggestion would be to try to recompile alsa-lib. Its a shot in the
dark, sorry. |
|
Back to top |
|
|
Gªutama n00b
Joined: 08 Jun 2003 Posts: 32 Location: Tokyo, Japan
|
Posted: Mon Feb 02, 2004 9:13 am Post subject: |
|
|
Woody wrote: | My only suggestion would be to try to recompile alsa-lib. Its a shot in the
dark, sorry. |
I thought alsa-lib wasn't needed with the 2.6 kernel. Am I way off here?
EDIT: yes I was way off!! STUPID me I had the blind idea that all I needed was alsa-utils.
*trying to hit my head against the wall really hard. To make it work better.*
It works cheers!
EDIT2: Now It stoped working 'again'. _________________ scars look better than tatoos |
|
Back to top |
|
|
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Fri Feb 13, 2004 2:21 pm Post subject: |
|
|
Have you had any luck? I had the sound working on my machine then it stopped. I get the same error with aplay. My card is an onboard via chipset. |
|
Back to top |
|
|
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Fri Feb 13, 2004 5:59 pm Post subject: |
|
|
Found my solution searching through some other threads. Apparently the newer ALSA drivers added some mixer settings that actually control the read write to the device. So I used alsamixer to turn on those settings and then did a after that everything worked fine.
ADDED NOTE: If you run KDE and have the sound server coming up it will reset the mixer settings and not let you turn on the needed features. I turned the sound server off completely but you may be able to just not let it load mixer settings.
Good Luck |
|
Back to top |
|
|
Gªutama n00b
Joined: 08 Jun 2003 Posts: 32 Location: Tokyo, Japan
|
Posted: Sun Feb 15, 2004 7:03 pm Post subject: |
|
|
I acctually gave up and compiled a OSS kernel. So now the sound works. But I would defenitley like to give ALSA a new shot.
Do you think you could post the output of amixer?
So I can compare with mine. _________________ scars look better than tatoos |
|
Back to top |
|
|
tuxwatcher Tux's lil' helper
Joined: 05 Jun 2003 Posts: 121 Location: USA
|
Posted: Mon Feb 16, 2004 2:56 pm Post subject: |
|
|
Per your request
Code: | Simple mixer control 'Master',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [off]
Front Right: Playback 0 [0%] [off]
Simple mixer control 'Master Mono',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 17 [55%] [on]
Simple mixer control '3D Control - Center',0
Capabilities: volume volume-joined
Playback channels: Mono
Limits: 0 - 15
Mono: 9 [60%]
Simple mixer control '3D Control - Depth',0
Capabilities: volume volume-joined
Playback channels: Mono
Limits: 0 - 15
Mono: 9 [60%]
Simple mixer control '3D Control - Switch',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'PCM',0
Capabilities: pvolume pswitch pswitch-joined
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 31 [100%] [on]
Front Right: Playback 31 [100%] [on]
Simple mixer control 'Surround',0
Capabilities: pvolume pswitch
Playback channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 18 [58%] [on]
Front Right: Playback 18 [58%] [on]
Simple mixer control 'Surround Down Mix',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Center',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Simple mixer control 'Center/LFE Down Mix',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'LFE',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Simple mixer control 'Line',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 19 [61%] [on] Capture [off]
Front Right: Playback 19 [61%] [on] Capture [off]
Simple mixer control 'Line-In As Surround',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'CD',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 22 [71%] [on] Capture [off]
Front Right: Playback 22 [71%] [on] Capture [off]
Simple mixer control 'Mic',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Mic As Center/LFE',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Mic Boost (+20dB)',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Mic Select',0
Capabilities:
Mono:
Simple mixer control 'Video',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [on] Capture [off]
Front Right: Playback 0 [0%] [on] Capture [off]
Simple mixer control 'Phone',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Mono
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Mono: Playback 0 [0%] [on]
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'IEC958',0
Capabilities: pswitch pswitch-joined cswitch cswitch-joined
Playback channels: Mono
Capture channels: Mono
Mono: Playback [on] Capture [off]
Simple mixer control 'IEC958 Input Monitor',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'IEC958 Playback AC97-SPSA',0
Capabilities: volume volume-joined
Playback channels: Mono
Limits: 0 - 3
Mono: 0 [0%]
Simple mixer control 'PC Speaker',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined
Playback channels: Mono
Limits: Playback 0 - 15
Mono: Playback 0 [0%] [on]
Simple mixer control 'Aux',0
Capabilities: pvolume pswitch pswitch-joined cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Playback channels: Front Left - Front Right
Capture channels: Front Left - Front Right
Limits: Playback 0 - 31
Front Left: Playback 0 [0%] [on] Capture [off]
Front Right: Playback 31 [100%] [on] Capture [off]
Simple mixer control 'Mono Output Select',0
Capabilities:
Mono:
Simple mixer control 'Capture',0
Capabilities: cvolume cswitch cswitch-joined
Capture channels: Front Left - Front Right
Limits: Capture 0 - 15
Front Left: Capture 0 [0%] [on]
Front Right: Capture 0 [0%] [on]
Simple mixer control 'Mix',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [on]
Front Right: Capture [on]
Simple mixer control 'Mix Mono',0
Capabilities: cswitch cswitch-joined cswitch-exclusive
Capture exclusive group: 0
Capture channels: Front Left - Front Right
Front Left: Capture [off]
Front Right: Capture [off]
Simple mixer control 'Analog to IEC958 Output',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Duplicate Front',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Exchange Center/LFE',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'External Amplifier Power Down',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'Input Source Select',0
Capabilities:
Mono:
Simple mixer control 'Input Source Select',1
Capabilities:
Mono:
Simple mixer control 'Swap Surround Slot',0
Capabilities: pswitch pswitch-joined
Playback channels: Mono
Mono: Playback [on]
Simple mixer control 'VIA DXS',0
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Front Left: Playback 255 [100%]
Front Right: Playback 255 [100%]
Simple mixer control 'VIA DXS',1
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Front Left: Playback 255 [100%]
Front Right: Playback 255 [100%]
Simple mixer control 'VIA DXS',2
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Front Left: Playback 255 [100%]
Front Right: Playback 255 [100%]
Simple mixer control 'VIA DXS',3
Capabilities: pvolume
Playback channels: Front Left - Front Right
Limits: Playback 0 - 255
Front Left: Playback 255 [100%]
Front Right: Playback 255 [100%]
|
The last 4 controls listed where the ones causing the problem. |
|
Back to top |
|
|
Gªutama n00b
Joined: 08 Jun 2003 Posts: 32 Location: Tokyo, Japan
|
Posted: Wed Feb 18, 2004 9:29 am Post subject: |
|
|
Ahh sweet.
now ALSA works. even after a reboot. I updated to the 2.6.2-r1 kernel and now it works. Sweet
Thanks.
I am now a very happy ALSA user. _________________ scars look better than tatoos |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|