From: David Flater <vger@flaterco.com>
To: alsa-devel@alsa-project.org
Subject: [bug] sbawe: the PnP won't stop
Date: Sat, 23 Mar 2013 22:25:18 -0400 [thread overview]
Message-ID: <514E640E.4060502@flaterco.com> (raw)
I've got an ISA PnP SB AWE type card in a system with a non-working DMA 5.
Without intervention, the Sound Blaster always gets the broken DMA. I have
no BIOS options to control the allocation of DMAs, and the PnP configuration
done within ALSA ignores /etc/isapnp.conf [*]. DMA 6 works fine if I can get
sbawe to stop re-initializing the PnP and just use it.
# Use setup from isapnp with dma16 moved to 6.
modprobe snd-sbawe isapnp=0 port=0x220 mpu_port=0x330 fm_port=0x388 awe_port=0x620 irq=5 dma8=1 dma16=6
modprobe snd-emu8000-synth
Problem is, regardless whether isapnp is 0 or 1, sbawe always PnPs the card
and puts it back on broken DMA 5. If I have already got the card correctly
configured with /sbin/isapnp beforehand, sbawe leaves the original resources
tied up as a ghost card and allocates again (/proc/dma):
1: SoundBlaster - 8bit
2: floppy
3: SoundBlaster - 8bit
4: cascade
5: SoundBlaster - 16bit
6: SoundBlaster - 16bit
To get it working I ripped the following lines of code out of kernel 3.8.4,
blocking PnP completely. As for a proper nondestructive fix, I'm not sure
whether the intent was (A) you were only supposed to get one of the two
registrations, or (B) the PnP registration was not supposed to reinit
everything if it was already set up.
--- sound/isa/sb/sb16.c~ 2013-03-14 14:27:14.000000000 -0400
+++ sound/isa/sb/sb16.c 2013-03-23 20:18:50.137987332 -0400
@@ -674,13 +674,6 @@
#ifdef CONFIG_PNP
if (!err)
isa_registered = 1;
-
- err = pnp_register_card_driver(&sb16_pnpc_driver);
- if (!err)
- pnp_registered = 1;
-
- if (isa_registered)
- err = 0;
#endif
return err;
}
[*] So is there a different config file for PnP within ALSA?
-- DWF
next reply other threads:[~2013-03-24 2:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-03-24 2:25 David Flater [this message]
2013-03-26 1:04 ` [bug] sbawe: the PnP won't stop David Flater
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=514E640E.4060502@flaterco.com \
--to=vger@flaterco.com \
--cc=alsa-devel@alsa-project.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.