Bug 54170 - for NeoMagic, sndconfig says: Can't open output file '/dev/dsp'
Summary: for NeoMagic, sndconfig says: Can't open output file '/dev/dsp'
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
(Show other bugs)
Version: 7.1
Hardware: i386 Linux
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: David Lawrence
Depends On:
TreeView+ depends on / blocked
Reported: 2001-09-30 03:57 UTC by Bob Rintel
Modified: 2007-04-18 16:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2003-06-07 18:21:13 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Bob Rintel 2001-09-30 03:57:17 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.76 [en] (X11; U; Linux 2.4.3-12 i686)

Description of problem:
I have an IBM Thinkpad 390 running RedHat 7.1 with all the errata-updates. 
When I run sndconfig, it correctly identifies the "NeoMagic 256 AV" but,
when it tries to play the sample, it says:

The following error occurred playing the sample:
sox: Can't open output file '/dev/dsp': No such device

Version-Release number of selected component (if applicable):

How reproducible:

Steps to Reproduce:
1. sndconfig

Actual Results:  The following error occurred playing the sample:
sox: Can't open output file '/dev/dsp': No such device

Expected Results:  [the sound sample playing]

Additional info:

Every time the system boots, it displays the following message:
Note: /etc/modules.conf is more recent than

What can I do to fix that?

Also, you gave Neomagic 256AV a 100% perfect score on your hardware
compatibility list.

Comment 1 Bob Rintel 2001-10-04 05:00:35 UTC
Here's more information:

Without the errata updates, RedHat 7.1's sndconfig says:
modprobe error
The following error occurred running the modprobe program:
init_module: No such device
/lib/modules/2.4.2-2/kernel/drivers/sound/nm256_audio.o: insmod
/lib/modules/2.4.2-2/kernel/drivers/sound/nm256_audio.o failed
/lib/modules/2.4.2-2/kernel/drivers/sound/nm256_audio.o: insmod
sound-slot-0 failed

And, with the new 2.4.3-12 kernel & the other errata/security updates, sndconfig
flashes this message:

NM256: This doesn't look to me like the AC97-compatible version.
       You can force the driver to load by passing in the module
              force_ac97 = 1
       More likely, you should be using the appropriate SB-16 or
       CS4232 driver instead.  (If your BIOS has settings for
       IRQ and/or DMA for the sound card, this is *not* the correct
       driver to use.)

and then it says:

The following error occurred playing the sample:
sox: Can't open output file '/dev/dsp': No such device.

From your hardware compatibility list, it should work.  Perhaps it worked in
previous RedHat versions (maybe 7.0).  Is there a workaround for this now?  Will
someone fix the driver?

Comment 2 Bob Rintel 2001-10-12 13:45:36 UTC
Combining suggestions from bugs #27509 and #28510, and then changing the numbers
to match my BIOS settings, I got it to work by having /etc/modules.conf contain:

alias sound-slot-0 opl3sa2
post-install sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -L >/dev/null 2>&\
1 || :
pre-remove sound-slot-0 /bin/aumix-minimal -f /etc/.aumixrc -S >/dev/null 2>&1 \
|| :
options sound dmabuf=1
alias synth0 opl3
options opl3 io=0x388
options opl3sa2 mss_io=0x530 irq=5 dma=0 dma2=1 mpu_io=0x300 io=0x120 isapnp=0

Note that sndconfig doesn't let you choose IO=0x120 for the opl3sa2 card: it
insists on 370 or 380.  But setting it manually in modules.conf worked.

Note You need to log in before you can comment on or make changes to this bug.