Prosíme přihlašte se nebo zaregistrujte.

Přihlašte se svým uživatelským jménem a heslem.
Vaše pomoc je stále potřeba!

Autor Téma: Nejde zvuk- Yamaha OPL3-SAx  (Přečteno 3494 krát)

SalaWierLord

  • Návštěvník
  • Příspěvků: 18
Nejde zvuk- Yamaha OPL3-SAx
« kdy: 08 Září 2006, 18:20:13 »
Na svůj PC(192RAM, Pentium667Mhz) jsem si nainstalil Xubuntu 6.06 a nejde zvuk. V nastavení mixéru je nic(žádný zvukový zařízení). Podotýkám, že jsem začátečník. Pokud se pokusím z konsole spustit alsamixer tak:

Kód: [Vybrat]
alsamixer: function snd_ctl_open failed for default: No such deviceVlastním starou zvukovou kartu ve slotu ISA. Je to typ Yamaha OPL3-SAx.
Tady dávám pár řádků s z výpisu dmesg:
Kód: [Vybrat]
[4294671.260000] Activating ISA DMA hang workarounds.
[4294671.261000] isapnp: Scanning for PnP cards...
[4294671.363000] isapnp: Card 'OPL3-SAX Sound Board'
[4294671.363000] isapnp: 1 Plug & Play card detected total
Toto je část výpisu z lsmod:
Kód: [Vybrat]
snd_opl3_lib           10624  0
snd_hwdep               9376  1 snd_opl3_lib
snd_cs4231_lib         26752  0
snd_mpu401_uart         7808  0
i2c_voodoo3             4996  0
snd_rawmidi            25504  1 snd_mpu401_uart
snd_seq_device          8716  2 snd_opl3_lib,snd_rawmidi
snd_pcm_oss            53664  0
snd_mixer_oss          18688  1 snd_pcm_oss
analog                 12320  0
snd_pcm                89864  2 snd_cs4231_lib,snd_pcm_oss
snd_timer              25220  3 snd_opl3_lib,snd_cs4231_lib,snd_pcm
ns558                   5636  0
gameport               15496  3 analog,ns558
snd                    55268  10 snd_opl3_lib,snd_hwdep,snd_cs4231_lib,snd_mpu401_uart,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer
soundcore              10208  1 snd
snd_page_alloc         10632  2 snd_cs4231_lib,snd_pcm
Našel jsem toto howto: https://help.ubuntu.com/community/HowToSetupSoundCards podle kterýho jsem doufal, že pomůže příkaz sudo modprobe snd-opl3sa2
Ale výsledek byl jenom:
Kód: [Vybrat]
FATAL: Error inserting snd_opl3sa2 (/lib/modules/2.6.15-23-386/kernel/sound/isa/snd-opl3sa2.ko): No such deviceSoubor /lib/modules/2.6.15-23-386/kernel/sound/isa/snd-opl3sa2.ko přitom existuje.

Dále jsem našel toto http://ubuntuforums.org/showthread.php?t=4111 ,kde byl stejný problém vyřešen na starší verzi ubuntu. Nevím, kde je v mým Xubuntu 6.06 soubor "/etc/modules.conf". Dále nevím jak správně zjistit hodnoty jako dma, irq, port.... V biosu jsem to nenašel.

Prosím nějaký nápady na můj problém?
« Poslední změna: 13 Prosince 2007, 22:07:13 od Anna Taliánová »

sandrick

  • Aktivní člen
  • *
  • Příspěvků: 299
Nejde zvuk_Yamaha OPL3-SAx
« Odpověď #1 kdy: 17 Září 2006, 16:07:04 »
Nedávno jsem řešil stejný problém, byť s jinou ISA zvukovkou. Takže bych možná mohl pomoct. Zkoušel jsi použít balík isapnp (či tak nějak). Pokud ne tak si to stáhni (např. z packages.ubuntu.com) a pak se ozvi.

SalaWierLord

  • Návštěvník
  • Příspěvků: 18
Nejde zvuk_Yamaha OPL3-SAx
« Odpověď #2 kdy: 07 Října 2006, 23:01:09 »
Tak jsem se snažil najít balíček isapnp, ale marně. Můžeš prosím upřesnit název nebo sem hodit přímej odkaz?

sandrick

  • Aktivní člen
  • *
  • Příspěvků: 299
Nejde zvuk_Yamaha OPL3-SAx
« Odpověď #3 kdy: 14 Listopadu 2006, 15:01:51 »
No, už jsem myslel, že ses na Ubuntu vykašlal. Máme takovou extenzivní komunikaci :)
Balík můžeš stáhnout např.

http://packages.ubuntu.com/cgi-bin/download.pl?arch=i386&file=pool%2Funiverse%2Fi%2Fisapnptools%2Fisapnptools_1.26-5_i386.deb&md5sum=9a373dad7abe0596917d6dca12922a70&arch=i386&type=main

Následující postup je pak již celkem jednoduchý. Balík nainstaluješ a jeho možností využiješ následovně:

Code:
sudo -i
pnpdump -c -o /etc/isapnp.conf
isapnp /etc/isapnp.conf
modprobe jmeno_ovladace

Příkaz pnpdump automaticky najde přijatelnou konfiguraci karty, isapnp ji (zřejmě) zviditelní pro systém, modprobem zavedeš příslušný ovladač pro svou kartu.
Pak už by měl zvuk bez problémů běžet. Kdybys měl ještě nějaké problémy, tak se ozvi, já se sem občas kouknu. Mě tenhle postup funguje bezvadně, tak hodně štěstí.

SalaWierLord

  • Návštěvník
  • Příspěvků: 18
Nejde zvuk_Yamaha OPL3-SAx
« Odpověď #4 kdy: 17 Listopadu 2006, 20:57:52 »
Tak jsem zkusil onen postup:

příkaz pnpdump -c -o /etc/isapnp.conf asi po minutě vytvořil soubor /etc/isapnp.conf s tímto obsahem:

Kód: [Vybrat]
# $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 identifier 81 ff ff ff ff 20 00 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 81 ff ff ff ff 20 00 a8 65)
# Vendor Id YMH0020, No Serial Number (-1), checksum 0x81.
# Version 1.0, Vendor version 0.0
# ANSI string -->OPL3-SAX 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 YMH0020/-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 4 bytes
#             Number of IO addresses required: 4
# (IO 2 (SIZE 4) (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: 4
# (IO 2 (SIZE 4) (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: 4
  (IO 2 (SIZE 4) (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 1))

#     End dependent functions
 (NAME "YMH0020/-1[0]{OPL3-SAX 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 YMH0020/-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 functional
#       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 "YMH0020/-1[1]{OPL3-SAX Sound Board}")
  (ACT Y)
))
#
# Logical device id YMH002f
#
# 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 YMH0020/-1 (LD 2

# Multiple choice time, choose one only !

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

#     End dependent functions
 (NAME "YMH0020/-1[2]{OPL3-SAX Sound Board}")
  (ACT Y)
))
#
# Logical device id YMH0024
#
# 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 YMH0020/-1 (LD 3
#     Compatible device id PNP0600

# Multiple choice time, choose one only !

#     Start dependent functions: priority preferred
#       IRQ 11.
#             High true, edge sensitive interrupt
  (INT 0 (IRQ 11 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x01e8
#             Maximum IO base address 0x01e8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
  (IO 0 (SIZE 8) (BASE 0x01e8))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x03ee
#             Maximum IO base address 0x03ee
#             IO base alignment 1 bytes
#             Number of IO addresses required: 1
  (IO 1 (SIZE 1) (BASE 0x03ee))

#       Start dependent functions: priority acceptable
#       IRQ 10.
#             High true, edge sensitive interrupt
# (INT 0 (IRQ 10 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0168
#             Maximum IO base address 0x0168
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (SIZE 8) (BASE 0x0168))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x036e
#             Maximum IO base address 0x036e
#             IO base alignment 1 bytes
#             Number of IO addresses required: 1
# (IO 1 (SIZE 1) (BASE 0x036e))

#       Start dependent functions: priority functional
#       IRQ 9, 10 or 11.
#             High true, edge sensitive interrupt
# (INT 0 (IRQ 9 (MODE +E)))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0100
#             Maximum IO base address 0x01f8
#             IO base alignment 8 bytes
#             Number of IO addresses required: 8
# (IO 0 (SIZE 8) (BASE 0x0100))
#       Logical device decodes 16 bit IO address lines
#             Minimum IO base address 0x0306
#             Maximum IO base address 0x03f6
#             IO base alignment 8 bytes
#             Number of IO addresses required: 1
# (IO 1 (SIZE 1) (BASE 0x0306))

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

# Returns all cards to the "Wait for Key" state
(WAITFORKEY)
Po napsání příkazu ispapnp /etc/isapnp.conf je výstup tento:
Kód: [Vybrat]
Board 1 has Identity 81 ff ff ff ff 20 00 a8 65:  YMH0020 Serial No -1 [checksum 81]
YMH0020/-1[0]{OPL3-SAX Sound Board}: Ports 0x220 0x530 0x388 0x300 0x100; IRQ3 DMA0 DMA1 --- Enabled OK
YMH0020/-1[1]{OPL3-SAX Sound Board}: Port 0x202; --- Enabled OK
YMH0020/-1[2]{OPL3-SAX Sound Board}: Port 0x108; --- Enabled OK
YMH0020/-1[3]{OPL3-SAX Sound Board}: Ports 0x1E8 0x3EE; IRQ11 --- Enabled OK
Zdálo se, jakoby vše proběhlo ok, ale při modprobe snd-opl3sa2 nastal stejný error jako předtím. :-(

Dám sem ještě výpis z cat /dev/sndstat
Kód: [Vybrat]
Sound Driver:3.8.1a-980706 (ALSA v1.0.10rc3 emulation code)
Kernel: Linux maselek-desktop 2.6.15-23-386 #1 PREEMPT Tue May 23 13:49:40 UTC 2006 i686
Config options: 0

Installed drivers:
Type 10: ALSA emulation

Card config:
--- no soundcards ---

Audio devices: NOT ENABLED IN CONFIG

Synth devices: NOT ENABLED IN CONFIG

Midi devices: NOT ENABLED IN CONFIG

Timers:
7: system timer

Mixers: NOT ENABLED IN CONFIG

sandrick

  • Aktivní člen
  • *
  • Příspěvků: 299
Nejde zvuk_Yamaha OPL3-SAx
« Odpověď #5 kdy: 19 Listopadu 2006, 14:50:15 »
Jo, no. Tohle je věc, se kterou přímo nijak zvlášť nepomůžu. Pravda je taková, že sám mám kartu ESS 1869, na níž ovšem musím používat ovladač pro jiný čip od ESS. Zkus prostě experimentovat s ostatními ovladači. ISAPNP kartu nakonfiguroval, určitě poběží.
Zkus další drivery např. odsud:
http://www.alsa-project.org/alsa-doc/index.php?vendor=vendor-Yamaha

sandrick

  • Aktivní člen
  • *
  • Příspěvků: 299
Nejde zvuk_Yamaha OPL3-SAx
« Odpověď #6 kdy: 19 Listopadu 2006, 14:55:09 »
Jinak mě ještě napadá, jestli by nepomohlo zkusit skript alsaconf (jak mi tu kdosi kdysi doporučoval), což by mohlo v téhle situaci již mít nějaké výsledky. Nemusel bys pak experimentovat s různými ovladači.
Ten skript můžeš stáhnout třeba:
http://public.www.planetmirror.com/pub/alsa/driver/alsaconf/?fl=

Hodně štěstí a dej kdyžtak vědět, jestli Ti to už běhá.

 

Provoz zaštiťuje spolek OpenAlt.