[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Lost sound capabilities (/dev/dsp: No such device)



------
Arnt Karlsen said:

..arnt@a45:~$ ll /dev/dsp 
crw-rw----    1 root     audio     14,   3 Mar 14  2002 /dev/dsp

...is missing on your box, mknod it. 
------

No, /dev/dsp exists with proper permissions (see further below in my posting).  
Rather, it seems that the ad1848 sound module is not being given the correct 
io and irq parameters by isapnp, and I can't figure out how to pass it the 
correct ones. (see my original message below)

(Apologies for the top-posting, I filled up the email account that was 
receiving debian-user so I had nothing to reply to.)


-------------------------
My original message:
-------------------------

I had my YMH0800:OPL3-SA3 Sound Board working with the ad1848 driver, isapnp 
etc under Woody.

Then somewhere in the course of installing a stock non-installation kernel, 
adding second ethernet card, and loading the IP masquerading and iptables 
modules, the sound stopped working.  The symptoms are given below.  The Sound 
HOWTO only recommends for such cases to go "pnpdump > /etc/isapnp.conf", 
uncomment the correct lines in isapnp.conf, run "isapnp /etc/isapnp.conf", 
reload the modules, and enjoy.  However I have no idea which lines of the 
*long* isapnp.conf to uncomment - it is quite non-obvious to me, and I'm not 
even sure this is on the right track.  Any tips?

Here is the output showing the symptoms and troubleshooting I've tried.  The 
output of pnpdump is at the end, since it's so long.


retro:/music# mpg123 "The Twigs - The Turning.mp3"
High Performance MPEG 1.0/2.0/2.5 Audio Player for Layer 1, 2, and 3.
Version 0.59q (2002/03/23). Written and copyrights by Joe Drew.
Uses code from various people. See 'README' for more!
THIS SOFTWARE COMES WITH ABSOLUTELY NO WARRANTY! USE AT YOUR OWN RISK!
Title  : The Turning                     Artist: The Twigs
Album  :                                 Year  :
Comment:                                 Genre :

Playing MPEG stream from The Twigs - The Turning.mp3 ...
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Can't find a suitable libao driver. (Is device in use?)


retro:/etc# cat /usr/share/sounds/irmp3/off.au > /dev/dsp
bash: /dev/dsp: No such device


retro:/etc# dd bs=8k count=4 </dev/audio > /tmp/sample.au
bash: /dev/audio: No such device


retro:/etc# ls -al /dev/dsp
crw-rw----    1 root     audio     14,   3 Mar 14  2002 /dev/dsp


retro:/etc# less /var/log/messages
Sep 17 12:16:57 retro kernel: isapnp: Scanning for PnP cards...
Sep 17 12:16:57 retro kernel: isapnp: Card 'OPL3-SA3 Sound Board'
Sep 17 12:16:57 retro kernel: isapnp: 1 Plug & Play card detected total
Sep 17 12:16:57 retro kernel: ad1848/cs4248 codec driver Copyright (C) by 
Hannu Savolainen 1993-1996
Sep 17 12:16:57 retro kernel: ad1848: No ISAPnP cards found, trying standard 
ones...


retro:/etc# cat /proc/interrupts
           CPU0
  0:   21468604          XT-PIC  timer
  1:          2          XT-PIC  keyboard
  2:          0          XT-PIC  cascade
  8:          3          XT-PIC  rtc
 10:     178022          XT-PIC  eth1
 12:     106590          XT-PIC  eth0
 14:     121560          XT-PIC  ide0
 15:          0          XT-PIC  ide1
NMI:          0
ERR:          0


retro:/etc# cat /proc/isapnp
Card 1 'YMH0800:OPL3-SA3 Sound Board' PnP version 1.0
  Logical device 0 'YMH0021:Unknown'
    Device is not active
    Active DMA 0,0
    Resources 0
      Priority preferred
      Port 0x220-0x220, align 0xf, size 0x10, 16-bit address decoding
      Port 0x530-0x530, align 0x7, size 0x8, 16-bit address decoding
      Port 0x388-0x388, align 0x7, size 0x8, 16-bit address decoding
      Port 0x330-0x330, align 0x1, size 0x2, 16-bit address decoding
      Port 0x370-0x370, align 0x1, size 0x2, 16-bit address decoding
      IRQ 5 High-Edge
      DMA 0 8-bit byte-count type-A
      DMA 1 8-bit byte-count type-A
      Alternate resources 0:1
        Priority acceptable
        Port 0x240-0x240, align 0xf, size 0x10, 16-bit address decoding
        Port 0xe80-0xe80, align 0x7, size 0x8, 16-bit address decoding
        Port 0x388-0x388, align 0x7, size 0x8, 16-bit address decoding
        Port 0x300-0x300, align 0x1, size 0x2, 16-bit address decoding
        Port 0x100-0xffe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 5,7,2/9,10,11 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
        DMA 0,1,3 8-bit byte-count type-A
      Alternate resources 0:2
        Priority functional
        Port 0x220-0x280, align 0xf, size 0x10, 16-bit address decoding
        Port 0x530-0xf48, align 0x7, size 0x8, 16-bit address decoding
        Port 0x388-0x3f8, align 0x7, size 0x8, 16-bit address decoding
        Port 0x300-0x334, align 0x1, size 0x2, 16-bit address decoding
        Port 0x100-0xffe, align 0x1, size 0x2, 16-bit address decoding
        IRQ 3,5,7,2/9,10,11 High-Edge
        DMA 0,1,3 8-bit byte-count type-A
        DMA 0,1,3 8-bit byte-count type-A
  Logical device 1 'YMH0022:Unknown'
    Compatible device PNPb02f
    Device is not active
    Active DMA 0,0
    Resources 0
      Priority preferred
      Port 0x201-0x201, align 0x0, size 0x1, 16-bit address decoding
      Alternate resources 0:1
        Priority acceptable
        Port 0x202-0x202, align 0x0, size 0x1, 16-bit address decoding
      Alternate resources 0:2
        Priority acceptable
        Port 0x203-0x203, align 0x0, size 0x1, 16-bit address decoding
      Alternate resources 0:3
        Priority acceptable
        Port 0x204-0x20f, align 0x0, size 0x1, 16-bit address decoding


retro:/etc# lsmod    (potentially relevant parts only)
Module                  Size  Used by    Tainted: P
ad1848                 20768   0  (unused)
mpu401                 18816   0  (unused)
isa-pnp                27752   0  [ad1848]
sound                  53836   0  [ad1848 mpu401]
soundcore               3556   2  [sound]


retro:/etc# pnpdump
# $Id: pnpdump_main.c,v 1.27 2001/04/30 21:54:53 fox Exp $
# Release isapnptools-1.26
#
# This is free software, see the sources for details.
# This software has NO WARRANTY, use at your OWN RISK
#
# For details of the output file format, see isapnp.conf(5)
#
# For latest information and FAQ on isapnp and pnpdump see:
# http://www.roestock.demon.co.uk/isapnptools/
#
# Compiler flags:  -DREALTIME -DHAVE_PROC -DENABLE_PCI 
-DHAVE_SCHED_SETSCHEDULER -DHAVE_NANOSLEEP -DWANT_TO_VALIDATE
#
# Trying port address 0273
# Board 1 has serial identifieOPL3-SA3r 0f ff ff ff ff 00 08 a8 65

# (DEBUG)
(READPORT 0x0273)
(ISOLATE PRESERVE)
(IDENTIFY *)
(VERBOSITY 2)
(CONFLICT (IO FATAL)(IRQ FATAL)(DMA FATAL)(MEM FATAL)) # or WARNING

# Card 1: (serial identifier 0f ff ff ff ff 00 08 a8 65)
# Vendor Id YMH0800, No Serial Number (-1), checksum 0x0F.
# Version 1.0, Vendor version 0.0
# ANSI string -->OPL3-SA3 Sound Board<--
#
# Logical device id YMH0021
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if 
required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE YMH0800/-1 (LD 0

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0220
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0530
#             Maximum IO base address 0x0530
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 1 (SIZE 8) (BASE 0x0530))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x0388
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 2 (SIZE 8) (BASE 0x0388))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0330
#             Maximum IO base address 0x0330
#             IO base alignment 2 bytes
#             Number of IO addresses required: 2
# (IO 3 (SIZE 2) (BASE 0x0330))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0370
#             Maximum IO base address 0x0370
#             IO base alignment 2 bytes
#             Number of IO addresses required: 2
# (IO 4 (SIZE 2) (BASE 0x0370))
#       IRQ 5.
#             High true, edge sensitive interrupt
# (INT 0 (IRQ 5 (MODE +E)))
#       First DMA channel 0.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       Next DMA channel 1.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 1))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0240
#             Maximum IO base address 0x0240
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0240))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0e80
#             Maximum IO base address 0x0e80
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 1 (SIZE 8) (BASE 0x0e80))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x0388
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 2 (SIZE 8) (BASE 0x0388))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0300
#             Maximum IO base address 0x0300
#             IO base alignment 2 bytes
#             Number of IO addresses required: 2
# (IO 3 (SIZE 2) (BASE 0x0300))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x0ffe
#             IO base alignment 2 bytes
#             Number of IO addresses required: 2
# (IO 4 (SIZE 2) (BASE 0x0100))
#       IRQ 5, 7, 9, 10 or 11.
#             High true, edge sensitive interrupt
# (INT 0 (IRQ 5 (MODE +E)))
#       First DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       Next DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 0))

#       Start dependent functions: priority functional
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0220
#             Maximum IO base address 0x0280
#             IO base alignment 16 bytes
#             Number of IO addresses required: 16
# (IO 0 (SIZE 16) (BASE 0x0220))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0530
#             Maximum IO base address 0x0f48
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 1 (SIZE 8) (BASE 0x0530))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0388
#             Maximum IO base address 0x03f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 2 (SIZE 8) (BASE 0x0388))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0300
#             Maximum IO base address 0x0334
#             IO base alignment 2 bytes
#             Number of IO addresses required: 2
# (IO 3 (SIZE 2) (BASE 0x0300))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x0ffe
#             IO base alignment 2 bytes
#             Number of IO addresses required: 2
# (IO 4 (SIZE 2) (BASE 0x0100))
#       IRQ 3, 5, 7, 9, 10 or 11.
#             High true, edge sensitive interrupt
# (INT 0 (IRQ 3 (MODE +E)))
#       First DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 0 (CHANNEL 0))
#       Next DMA channel 0, 1 or 3.
#             8 bit DMA only
#             Logical device is not a bus master
#             DMA may execute in count by byte mode
#             DMA may not execute in count by word mode
#             DMA channel speed type F
# (DMA 1 (CHANNEL 0))

#     End dependent functions
 (NAME "YMH0800/-1[0]{OPL3-SA3 Sound Board}")
# (ACT Y)
))
#
# Logical device id YMH0022
#
# Edit the entries below to uncomment out the configuration required.
# Note that only the first value of any range is given, this may be changed if 
required
# Don't forget to uncomment the activate (ACT Y) when happy

(CONFIGURE YMH0800/-1 (LD 1
#     Compatible device id PNPb02f

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0201
#             Maximum IO base address 0x0201
#             IO base alignment 1 bytes
#             Number of IO addresses required: 1
# (IO 0 (SIZE 1) (BASE 0x0201))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0202
#             Maximum IO base address 0x0202
#             IO base alignment 1 bytes
#             Number of IO addresses required: 1
# (IO 0 (SIZE 1) (BASE 0x0202))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0203
#             Maximum IO base address 0x0203
#             IO base alignment 1 bytes
#             Number of IO addresses required: 1
# (IO 0 (SIZE 1) (BASE 0x0203))

#       Start dependent functions: priority acceptable
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0204
#             Maximum IO base address 0x020f
#             IO base alignment 1 bytes
#             Number of IO addresses required: 1
# (IO 0 (SIZE 1) (BASE 0x0204))

#     End dependent functions
 (NAME "YMH0800/-1[1]{OPL3-SA3 Sound Board}")
# (ACT Y)
))
# End tag... Checksum 0x00 (OK)

# Returns all cards to the "Wait for Key" state
(WAITFORKEY)



Reply to: