linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Ira Weiny <iweiny@acm.org>
To: linuxppc-dev <linuxppc-dev@lists.linuxppc.org>
Subject: Creative SBLive card
Date: Wed, 02 May 2001 14:44:39 -0400	[thread overview]
Message-ID: <3AF05597.F7D0C433@acm.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 209 bytes --]

I had the chance to work on getting an SBLive card running on my G3 the
other day.  The fix is basic and is
in the following patch if anyone is interested.  I have only testing for
sound output though.

Ira



[-- Attachment #2: emu10k1.ppc.patch --]
[-- Type: text/plain, Size: 1411 bytes --]

diff -r -U 5 linux.orig/drivers/sound/emu10k1/cardwo.c linux/drivers/sound/emu10k1/cardwo.c
--- linux.orig/drivers/sound/emu10k1/cardwo.c	Sat Mar  3 12:51:48 2001
+++ linux/drivers/sound/emu10k1/cardwo.c	Tue May  1 15:43:01 2001
@@ -85,11 +85,12 @@

 			DPD(3, "Bus Addx: %lx\n", busaddx);

 			pageindex = buffer->emupageindex + pagecount * PAGE_SIZE / EMUPAGESIZE + i;

-			((u32 *) card->virtualpagetable.addr)[pageindex] = (busaddx * 2) | pageindex;
+			((u32 *) card->virtualpagetable.addr)[pageindex] =
+            cpu_to_le32((busaddx * 2) | pageindex);
 		}
 	}

 	return 0;
 }
diff -r -U 5 linux.orig/drivers/sound/emu10k1/main.c linux/drivers/sound/emu10k1/main.c
--- linux.orig/drivers/sound/emu10k1/main.c	Sat Mar  3 12:51:07 2001
+++ linux/drivers/sound/emu10k1/main.c	Tue May  1 15:42:29 2001
@@ -473,11 +473,12 @@
 		pci_free_consistent(card->pci_dev, card->virtualpagetable.size, card->virtualpagetable.addr, card->virtualpagetable.dma_handle);
 		return -1;
 	}

 	for (pagecount = 0; pagecount < MAXPAGES; pagecount++)
-		((u32 *) card->virtualpagetable.addr)[pagecount] = (card->silentpage.dma_handle * 2) | pagecount;
+		((u32 *) card->virtualpagetable.addr)[pagecount] =
+         cpu_to_le32((card->silentpage.dma_handle * 2) | pagecount);

 	/* Init page table & tank memory base register */
 	sblive_writeptr_tag(card, 0,
 			    PTB, card->virtualpagetable.dma_handle,
 			    TCB, 0,

             reply	other threads:[~2001-05-02 18:44 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-02 18:44 Ira Weiny [this message]
2001-05-02  8:53 ` Creative SBLive card jeramy b smith
2001-05-03  0:15   ` Tony Arnold
2001-05-05  5:53 ` jeramy b smith

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=3AF05597.F7D0C433@acm.org \
    --to=iweiny@acm.org \
    --cc=linuxppc-dev@lists.linuxppc.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;
as well as URLs for NNTP newsgroup(s).