Creative SBLive card
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!
Quoted 10 lines · Ira Weiny
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/
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
drivers/sound/emu10k1/cardwo.c +2 -1
@@ -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 ; }
drivers/sound/emu10k1/main.c +2 -1
@@ -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,
Quoted 2 lines
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.
Quoted 5 lines
-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/
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/