write error: Input/output error : mixer settings

Moderator: flatmax

Post Reply
flatmax
Posts: 604
Joined: Sat Jul 23, 2016 11:39 pm

write error: Input/output error : mixer settings

Post by flatmax » Mon Aug 01, 2016 10:33 am

When I try to play a test sound, I get "write error: Input/output error".

pi@raspberrypi:~ $ aplay test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
aplay: pcm_write:1939: write error: Input/output error

I did a manual setup of the sound card and/or made some changes to the mixer settings.
My alsamixer for playback looks like so :
noOutputMixer.png
alsamixer with no "Output Mixer HiFi" enabled
noOutputMixer.png (29.19 KiB) Viewed 5574 times
Last edited by flatmax on Mon Aug 01, 2016 1:21 pm, edited 1 time in total.
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

flatmax
Posts: 604
Joined: Sat Jul 23, 2016 11:39 pm

Re: write error: Input/output error : mixer settings

Post by flatmax » Mon Aug 01, 2016 10:37 am

In this case, as "Output Mixer HiFi" is not enabled, ALSA will not playback and has a write error.
To fix, open alsamixer from the command line and use the right/left arrows to highlight the "Output Mixer HiFi" control. Once highlighted press "m" to mute or enable this control. Your mixer will now look like so (press escape to exit) :
workingOutputMixer.png
alsamixer with "Output Mixer HiFi" enabled
workingOutputMixer.png (28.82 KiB) Viewed 5573 times
You will now be able to play without error :
pi@raspberrypi:~ $ aplay test.wav
Playing WAVE 'test.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Stereo
pi@raspberrypi:~ $
Checkout the next kickstarter campaign - the Ultra 2 : https://kck.st/2xwM3DL
Please review the Zero sound card on Amazon USA : https://www.amazon.com/dp/B075V1VNDD
---
Check out our new forum on github : https://github.com/Audio-Injector

Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests