linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
* Re: Creative SBLive card
  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
  1 sibling, 1 reply; 4+ messages in thread
From: jeramy b smith @ 2001-05-02  8:53 UTC (permalink / raw)
  To: iweiny; +Cc: linuxppc-dev


This is too cool. I bought an SB512 (aka, the cheapest SBLive!) with the intention of getting it working but never got the time. I was stuck looking in the ioctl's.

-jeramy b smith

PPC\Linux: The First PPC OS to Support the SBLive!


Ira Weiny <iweiny@acm.org> wrote:
>
> 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
>
>
>
--
-jeramy b smith


"Linux is Fun!" -Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* 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

* Re: Creative SBLive card
  2001-05-02  8:53 ` jeramy b smith
@ 2001-05-03  0:15   ` Tony Arnold
  0 siblings, 0 replies; 4+ messages in thread
From: Tony Arnold @ 2001-05-03  0:15 UTC (permalink / raw)
  To: linuxppc-dev


> This is too cool. I bought an SB512 (aka, the cheapest SBLive!) with the
intention of getting it working but never got the time. I was stuck looking
in the ioctl's.
>
> -jeramy b smith
>
> PPC\Linux: The First PPC OS to Support the SBLive!
>

Erm....not to be a stick in the mud, but the SB Live! (MacOS) has been out
for a bit now....

Tony


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

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

* Re: Creative SBLive card
  2001-05-02 18:44 Creative SBLive card Ira Weiny
  2001-05-02  8:53 ` jeramy b smith
@ 2001-05-05  5:53 ` jeramy b smith
  1 sibling, 0 replies; 4+ messages in thread
From: jeramy b smith @ 2001-05-05  5:53 UTC (permalink / raw)
  To: iweiny; +Cc: linuxppc-dev


I had the chance to test the patches and here is the results:

http://penguinppc.org/~jeramy/sshot.jpg

The first caveat is that the Channel 1 just makes noise. I had to plug my speakers into Channel2. The second caveat it that I had to move the Line3 slider all the way to zero to. It acts like an inverse PCM almost.

So there may be a few endiness issues left with the main sound channel aka channel 1.

But hey, I like rigged emu10k1 better than dmasound already.


-jeramy b smith
--
-jeramy b smith


"Linux is Fun!" -Linus Torvalds


** Sent via the linuxppc-dev mail list. See http://lists.linuxppc.org/

^ 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 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).