[PATCH] isapnp sb16 virtual pc

From: David Sanders
Date: Mon May 24 2004 - 14:01:53 EST


Patch adds support for the emulated Soundblaster 16 in Virtual PC 2004.
Thanks,
--
David Sanders
linux@xxxxxxxxxxxxxx


--- 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 = "", }
};

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/