From: Christof Petig <christof.petig@wtal.de>
To: linuxppc-dev@lists.linuxppc.org
Subject: Re: Sound on an iBook?
Date: Tue, 12 Dec 2000 09:06:26 +0100 [thread overview]
Message-ID: <3A35DC82.7250A663@wtal.de> (raw)
In-Reply-To: 19341105063039.15551@192.168.1.2
[-- Attachment #1: Type: text/plain, Size: 542 bytes --]
Benjamin Herrenschmidt wrote:
> No you can't. Darwin is using a different licence that is not compatible
> with the GPL. You can "use" the Apple code as a reference to how the
> hardware works, but you can't re-use it "as is".
Ok. Understood. I vaguely remember RMStallman warning of the apple source
license.
Another time to reimplement the wheel.
Here is a port of the unofficial hack to 2.4. It works well for me (booting via
OF without Apple OS).
Volume setting still needs to be resolved. I'll try it via linux' IIC layer.
Christof
[-- Attachment #2: iBook_Sound_2.4.diff --]
[-- Type: text/plain, Size: 794 bytes --]
--- dmasound_awacs.c.orig Mon Dec 11 22:35:59 2000
+++ dmasound_awacs.c Mon Dec 11 22:49:24 2000
@@ -1978,7 +1978,7 @@
* with a child called "sound".
*/
struct device_node *sound;
- np = find_devices("davbus");
+ np = find_devices("i2s-a");
sound = find_devices("sound");
if (sound != 0 && sound->parent == np) {
unsigned int *prop, l, i;
@@ -2029,8 +2029,9 @@
int vol;
dmasound.mach = machPMac;
- awacs = (volatile struct awacs_regs *)
- ioremap(np->addrs[0].address, 0x80);
+ /* awacs = (volatile struct awacs_regs *)
+ ioremap(np->addrs[0].address, 0x80); */
+ awacs = kmalloc(sizeof(struct awacs_regs),GFP_KERNEL);
awacs_txdma = (volatile struct dbdma_regs *)
ioremap(np->addrs[1].address, 0x100);
awacs_rxdma = (volatile struct dbdma_regs *)
next prev parent reply other threads:[~2000-12-12 8:06 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2000-12-08 12:05 AW: Sound on an iBook? Iain Sandoe
2000-12-08 15:01 ` Christof Petig
[not found] ` <19341102094519.16548@192.168.1.2>
2000-12-11 8:30 ` Christof Petig
2000-12-11 10:46 ` Ethan Benson
2000-12-11 12:58 ` Benjamin Herrenschmidt
2000-12-12 8:06 ` Christof Petig [this message]
-- strict thread matches above, loose matches on Subject: below --
2000-12-07 10:46 Christof Petig
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=3A35DC82.7250A663@wtal.de \
--to=christof.petig@wtal.de \
--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).