All of lore.kernel.org
 help / color / mirror / Atom feed
* Creative SBLive card
@ 2001-05-02 18:44 Ira Weiny
  2001-05-02  8:53 ` jeramy b smith
  2001-05-05  5:53 ` jeramy b smith
  0 siblings, 2 replies; 4+ messages in thread
From: Ira Weiny @ 2001-05-02 18:44 UTC (permalink / raw)
  To: linuxppc-dev

[-- 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,

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2001-05-05  5:53 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-05-02 18:44 Creative SBLive card Ira Weiny
2001-05-02  8:53 ` jeramy b smith
2001-05-03  0:15   ` Tony Arnold
2001-05-05  5:53 ` jeramy b smith

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.