* 2.5.4 sound module problem
@ 2002-02-13 3:51 Albert Cranford
2002-02-13 3:10 ` Alan
2002-02-13 4:22 ` David S. Miller
0 siblings, 2 replies; 15+ messages in thread
From: Albert Cranford @ 2002-02-13 3:51 UTC (permalink / raw)
To: alan, Linus Torvalds, Linux Kernel List
Not sure if this was the same message I received. but here
is the patch I used to get around my sound problem in
2.5.4.
Linus, please apply to 2.5.5 pre1
Later,
Albert
--- linux/drivers/sound/dmabuf.c.orig Tue Feb 12 10:12:59 2002
+++ linux/drivers/sound/dmabuf.c Tue Feb 12 10:15:06 2002
@@ -113,7 +113,7 @@
}
}
dmap->raw_buf = start_addr;
- dmap->raw_buf_phys = virt_to_bus(start_addr);
+ dmap->raw_buf_phys = isa_virt_to_bus(start_addr);
for (page = virt_to_page(start_addr); page <= virt_to_page(end_addr); page++)
mem_map_reserve(page);
--
Albert Cranford Deerfield Beach FL USA
ac9410@bellsouth.net
^ permalink raw reply [flat|nested] 15+ messages in thread* Re: 2.5.4 sound module problem
2002-02-13 3:51 2.5.4 sound module problem Albert Cranford
@ 2002-02-13 3:10 ` Alan
2002-02-13 4:22 ` David S. Miller
1 sibling, 0 replies; 15+ messages in thread
From: Alan @ 2002-02-13 3:10 UTC (permalink / raw)
To: Albert Cranford, Linux Kernel List
On Tuesday 12 February 2002 19:51, Albert Cranford wrote:
> Not sure if this was the same message I received. but here
> is the patch I used to get around my sound problem in
> 2.5.4.
Are you sure this is correct? include/asm/io.h seems to indicate that i/o
addresses for PCI may not map correctly. The sound card I am using is PCI,
not ISA.
Documentation/DMA-mapping.txt says that virt_to_bus is completly depreciated
and nothing should be using it. Well, grepping the kernel source shows that
quite a bit still uses it.
What it looks like, on first glance, is that virt_to_bus was changed for pci
devices to give this error message. (Since that symbol goes nowhere.) That
effects a number of things, not just sound. (A whole bunch of cardbus drivers
I would guess...)
When was this change made? It appears as if they missed a few bits.
Comment: 2.5.4 has been more than a bit rough. Rarely do i see more than one
patch needed just to get it to compile. Not trying to be bitchy about it.
Just a wee bit frustrated...
> Linus, please apply to 2.5.5 pre1
> Later,
> Albert
> --- linux/drivers/sound/dmabuf.c.orig Tue Feb 12 10:12:59 2002
> +++ linux/drivers/sound/dmabuf.c Tue Feb 12 10:15:06 2002
> @@ -113,7 +113,7 @@
> }
> }
> dmap->raw_buf = start_addr;
> - dmap->raw_buf_phys = virt_to_bus(start_addr);
> + dmap->raw_buf_phys = isa_virt_to_bus(start_addr);
>
> for (page = virt_to_page(start_addr); page <=
> virt_to_page(end_addr); page++) mem_map_reserve(page);
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 3:51 2.5.4 sound module problem Albert Cranford
2002-02-13 3:10 ` Alan
@ 2002-02-13 4:22 ` David S. Miller
2002-02-13 9:26 ` Alan Cox
1 sibling, 1 reply; 15+ messages in thread
From: David S. Miller @ 2002-02-13 4:22 UTC (permalink / raw)
To: ac9410; +Cc: alan, torvalds, linux-kernel
From: Albert Cranford <ac9410@bellsouth.net>
Date: Tue, 12 Feb 2002 22:51:35 -0500
Not sure if this was the same message I received. but here
is the patch I used to get around my sound problem in
2.5.4.
Linus, please apply to 2.5.5 pre1
Umm, I don't it is safe to assume that only ISA sound drivers end up
making use of this code. I would like you to prove that before
submitting this change.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 4:22 ` David S. Miller
@ 2002-02-13 9:26 ` Alan Cox
2002-02-13 9:36 ` David S. Miller
0 siblings, 1 reply; 15+ messages in thread
From: Alan Cox @ 2002-02-13 9:26 UTC (permalink / raw)
To: David S. Miller; +Cc: ac9410, alan, torvalds, linux-kernel
> Umm, I don't it is safe to assume that only ISA sound drivers end up
> making use of this code. I would like you to prove that before
> submitting this change.
There are PCI drivers using the old sound code. Whether it matters is a
more complicated question as these devices use ISA DMA emulation or their
own pseudo DMA functionality.
Alan
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 9:26 ` Alan Cox
@ 2002-02-13 9:36 ` David S. Miller
2002-02-12 18:52 ` Gérard Roudier
2002-02-13 10:24 ` Alan Cox
0 siblings, 2 replies; 15+ messages in thread
From: David S. Miller @ 2002-02-13 9:36 UTC (permalink / raw)
To: alan; +Cc: ac9410, alan, torvalds, linux-kernel
From: Alan Cox <alan@lxorguk.ukuu.org.uk>
Date: Wed, 13 Feb 2002 09:26:32 +0000 (GMT)
There are PCI drivers using the old sound code. Whether it matters is a
more complicated question as these devices use ISA DMA emulation or their
own pseudo DMA functionality.
The sound layer PCI DMA stuff like a nice project for some kernel
janitors :-))
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 9:36 ` David S. Miller
@ 2002-02-12 18:52 ` Gérard Roudier
2002-02-13 10:24 ` Alan Cox
1 sibling, 0 replies; 15+ messages in thread
From: Gérard Roudier @ 2002-02-12 18:52 UTC (permalink / raw)
To: David S. Miller; +Cc: alan, ac9410, alan, torvalds, linux-kernel
On Wed, 13 Feb 2002, David S. Miller wrote:
> From: Alan Cox <alan@lxorguk.ukuu.org.uk>
> Date: Wed, 13 Feb 2002 09:26:32 +0000 (GMT)
>
> There are PCI drivers using the old sound code. Whether it matters is a
> more complicated question as these devices use ISA DMA emulation or their
> own pseudo DMA functionality.
>
> The sound layer PCI DMA stuff like a nice project for some kernel
> janitors :-))
Not worth, IMO.
Machines that give us fun support the legacy virt_to_bus() semantic.
Those that require the PCI DMA abstraction are so boring than adding sound
will probably not improve user pleasure significantly.
:-)) (this smiley is just to prevent from too much flaming ;-)
Gérard.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 9:36 ` David S. Miller
2002-02-12 18:52 ` Gérard Roudier
@ 2002-02-13 10:24 ` Alan Cox
2002-02-13 18:59 ` Alan
2002-02-13 20:26 ` Linus Torvalds
1 sibling, 2 replies; 15+ messages in thread
From: Alan Cox @ 2002-02-13 10:24 UTC (permalink / raw)
To: David S. Miller; +Cc: alan, ac9410, alan, torvalds, linux-kernel
> There are PCI drivers using the old sound code. Whether it matters is a
> more complicated question as these devices use ISA DMA emulation or their
> own pseudo DMA functionality.
>
> The sound layer PCI DMA stuff like a nice project for some kernel
> janitors :-))
Waste of effort. ALSA will replace the OSS code anyway
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 10:24 ` Alan Cox
@ 2002-02-13 18:59 ` Alan
2002-02-13 20:26 ` Linus Torvalds
1 sibling, 0 replies; 15+ messages in thread
From: Alan @ 2002-02-13 18:59 UTC (permalink / raw)
To: Alan Cox, David S. Miller; +Cc: alan, ac9410, torvalds, linux-kernel
On Wednesday 13 February 2002 02:24, Alan Cox wrote:
> > There are PCI drivers using the old sound code. Whether it matters is
> > a more complicated question as these devices use ISA DMA emulation or
> > their own pseudo DMA functionality.
> >
> > The sound layer PCI DMA stuff like a nice project for some kernel
> > janitors :-))
>
> Waste of effort. ALSA will replace the OSS code anyway
When I looked at the code, it looked like a lot more than just the sound code
needed to be fixed. I will look at the next patch and see what is left.
^ permalink raw reply [flat|nested] 15+ messages in thread
* Re: 2.5.4 sound module problem
2002-02-13 10:24 ` Alan Cox
2002-02-13 18:59 ` Alan
@ 2002-02-13 20:26 ` Linus Torvalds
1 sibling, 0 replies; 15+ messages in thread
From: Linus Torvalds @ 2002-02-13 20:26 UTC (permalink / raw)
To: Alan Cox; +Cc: David S. Miller, ac9410, alan, linux-kernel
On Wed, 13 Feb 2002, Alan Cox wrote:
>
> Waste of effort. ALSA will replace the OSS code anyway
In fact, in my tree it right now has replaced it. I'll make a pre-patch
and try to get the BK tree pushed out.
Linus
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <mailman.1013591941.29105.linux-kernel2news@redhat.com>]
* Re: 2.5.4 sound module problem
[not found] <mailman.1013591941.29105.linux-kernel2news@redhat.com>
@ 2002-02-13 17:21 ` Pete Zaitcev
0 siblings, 0 replies; 15+ messages in thread
From: Pete Zaitcev @ 2002-02-13 17:21 UTC (permalink / raw)
To: torvalds; +Cc: linux-kernel
> There are PCI drivers using the old sound code. Whether it matters is a
> more complicated question as these devices use ISA DMA emulation or their
> own pseudo DMA functionality.
>
> Alan
Sometimes it's only a configuration mistake. Not that it mattered,
since "The ALSA is coming! The ALSA is coming!" can be heard from
our forrestals.
--- linux-2.5.4/drivers/sound/Config.in Sun Feb 10 17:50:10 2002
+++ linux-2.5.4-p3/drivers/sound/Config.in Mon Feb 11 10:12:51 2002
@@ -164,7 +164,7 @@
dep_tristate ' Yamaha FM synthesizer (YM3812/OPL-3) support' CONFIG_SOUND_YM3812 $CONFIG_SOUND_OSS
dep_tristate ' Yamaha OPL3-SA1 audio controller' CONFIG_SOUND_OPL3SA1 $CONFIG_SOUND_OSS
dep_tristate ' Yamaha OPL3-SA2 and SA3 based PnP cards' CONFIG_SOUND_OPL3SA2 $CONFIG_SOUND_OSS
- dep_tristate ' Yamaha YMF7xx PCI audio (native mode)' CONFIG_SOUND_YMFPCI $CONFIG_SOUND_OSS $CONFIG_PCI
+ dep_tristate ' Yamaha YMF7xx PCI audio (native mode)' CONFIG_SOUND_YMFPCI $CONFIG_PCI
dep_mbool ' Yamaha PCI legacy ports support' CONFIG_SOUND_YMFPCI_LEGACY $CONFIG_SOUND_YMFPCI
dep_tristate ' 6850 UART support' CONFIG_SOUND_UART6850 $CONFIG_SOUND_OSS
^ permalink raw reply [flat|nested] 15+ messages in thread
[parent not found: <fa.f4gi5iv.1ikenrc@ifi.uio.no>]
* 2.5.4 sound module problem
@ 2002-02-13 2:22 Alan
0 siblings, 0 replies; 15+ messages in thread
From: Alan @ 2002-02-13 2:22 UTC (permalink / raw)
To: linux-kernel
I checked the last few days of the kernel list, but did not find this
problem. (Found the other compile problem (in more ways than one) though.)
Everything seems to compile correctly, but I get the following error message
on "make modules_install".
depmod: *** Unresolved symbols in
/lib/modules/2.5.4/kernel/drivers/sound/sound.o
depmod: virt_to_bus_not_defined_use_pci_map
Something is not right. Had not seen that message though...
I get the same error if I build modules for PCMCIA drivers for aerotech cards
and probably more.
Anyone have a quick idea what is wrong? I can provide more info if this is
new. (Which i doubt...)
^ permalink raw reply [flat|nested] 15+ messages in thread
end of thread, other threads:[~2002-02-13 20:18 UTC | newest]
Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-02-13 3:51 2.5.4 sound module problem Albert Cranford
2002-02-13 3:10 ` Alan
2002-02-13 4:22 ` David S. Miller
2002-02-13 9:26 ` Alan Cox
2002-02-13 9:36 ` David S. Miller
2002-02-12 18:52 ` Gérard Roudier
2002-02-13 10:24 ` Alan Cox
2002-02-13 18:59 ` Alan
2002-02-13 20:26 ` Linus Torvalds
[not found] <mailman.1013591941.29105.linux-kernel2news@redhat.com>
2002-02-13 17:21 ` Pete Zaitcev
[not found] <fa.f4gi5iv.1ikenrc@ifi.uio.no>
[not found] ` <fa.fo94urv.167g1q5@ifi.uio.no>
2002-02-13 5:03 ` John Weber
2002-02-13 5:18 ` Alan
2002-02-13 7:46 ` Miles Lane
2002-02-13 9:21 ` Alan Cox
-- strict thread matches above, loose matches on Subject: below --
2002-02-13 2:22 Alan
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.