public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: David Sanders <linux@sandersweb.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] isapnp sb16 virtual pc
Date: Mon, 24 May 2004 14:59:45 -0400	[thread overview]
Message-ID: <200405241457.18407@sandersweb.net> (raw)

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


                 reply	other threads:[~2004-05-24 18:59 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=200405241457.18407@sandersweb.net \
    --to=linux@sandersweb.net \
    --cc=linux-kernel@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox