* [PATCH] isapnp sb16 virtual pc
@ 2004-05-24 18:59 David Sanders
0 siblings, 0 replies; only message in thread
From: David Sanders @ 2004-05-24 18:59 UTC (permalink / raw)
To: linux-kernel
Patch adds support for the emulated Soundblaster 16 in Virtual PC 2004.
Thanks,
--
David Sanders
linux@sandersweb.net
--- sound/isa/sb/sb16.c-orig Sun May 9 22:33:13 2004
+++ sound/isa/sb/sb16.c Mon May 24 14:24:24 2004
@@ -247,6 +247,8 @@ static struct pnp_card_device_id snd_sb1
{ .id = "CTLXXXX" , .devs = { { "CTL0044" }, { "CTL0023" } } },
{ .id = "CTLXXXX" , .devs = { { "CTL0045" }, { "CTL0022" } } },
#endif /* SNDRV_SBAWE */
+ /* Sound Blaster 16 PnP (Virtual PC 2004)*/
+ { .id = "tBA03b0", .devs = { { "PNPb003" } } },
{ .id = "", }
};
--- sound/oss/sb_card.c-orig Sun May 9 22:32:52 2004
+++ sound/oss/sb_card.c Mon May 24 14:23:47 2004
@@ -181,6 +181,13 @@ static void sb_dev2cfg(struct pnp_dev *d
scc->mpucnf.io_base = pnp_port_start(dev,1);
return;
}
+ if(!strncmp("tBA",scc->card_id,3)) {
+ scc->conf.io_base = pnp_port_start(dev,0);
+ scc->conf.irq = pnp_irq(dev,0);
+ scc->conf.dma = pnp_dma(dev,0);
+ scc->conf.dma2 = pnp_dma(dev,1);
+ return;
+ }
if(!strncmp("ESS",scc->card_id,3)) {
scc->conf.io_base = pnp_port_start(dev,0);
scc->conf.irq = pnp_irq(dev,0);
--- sound/oss/sb_card.h-orig Sun May 9 22:32:37 2004
+++ sound/oss/sb_card.h Mon May 24 14:31:15 2004
@@ -140,6 +140,8 @@ static struct pnp_card_device_id sb_pnp_
{.id = "RTL3000", .driver_data = 0, .devs = { {.id="@@@2001"},
{.id="@X@2001"},
{.id="@H@0001"}, } },
+ /* Sound Blaster 16 (Virtual PC 2004) */
+ {.id = "tBA03b0", .driver_data = 0, .devs = { {.id="PNPb003"}, } },
/* -end- */
{.id = "", }
};
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2004-05-24 18:59 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-24 18:59 [PATCH] isapnp sb16 virtual pc David Sanders
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox