Commit 5ec9222a authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] isapnp sb16 virtual pc

From: David Sanders <linux@sandersweb.net>

Patch adds support for the emulated Soundblaster 16 in Virtual PC 2004.
parent 245d9156
......@@ -248,6 +248,8 @@ static struct pnp_card_device_id snd_sb16_pnpids[] = {
{ .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 = "", }
};
......
......@@ -181,6 +181,13 @@ static void sb_dev2cfg(struct pnp_dev *dev, struct sb_card_config *scc)
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);
......
......@@ -140,6 +140,8 @@ static struct pnp_card_device_id sb_pnp_card_table[] = {
{.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 = "", }
};
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment