All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andreas Schwab <schwab@suse.de>
To: Johannes Berg <johannes@sipsolutions.net>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: PowerMac7,3 sound (was: PowerBook5,4 -- no sound?)
Date: Wed, 17 May 2006 21:32:48 +0200	[thread overview]
Message-ID: <je3bf85twf.fsf@sykes.suse.de> (raw)
In-Reply-To: <1147862072.14395.25.camel@johannes> (Johannes Berg's message of "Wed, 17 May 2006 12:34:32 +0200")

Johannes Berg <johannes@sipsolutions.net> writes:

> Andreas, you'll probably be able to get a bit further by inserting the
> following code in front of the loop in i2sbus-core.c line 162, and
> removing the of_address_to_resource call inside the loop.
>
>   dev->resources[0].start = 0x80010000;
>   dev->resources[0].end   = 0x80010fff;
>   dev->resources[1].start = 0x80008000;
>   dev->resources[1].end   = 0x800080ff;
>   dev->resources[2].start = 0x80008100;
>   dev->resources[2].end   = 0x800081ff;
>
> But I'm not sure that is correct on all machines (in fact, I'm not
> perfectly sure it is correct on your machine).

I have the following sound resources in /proc/iomem:

        80008000-800083ff : 0.00010000:i2s
          80008000-800083ff : Sound DMA
        80010000-80010fff : 0.00010000:i2s
          80010000-80010fff : Sound Control

I'm not sure whether the first mapping should be split, but I don't know
much about how resource mappings work.

> After that, you'll probably still not have usable sound though because I
> know nothing about the layout-id of your machine. If I have support for
> your codec already, that should be easy though.

The layout id is 36, and it has both line out and headphone, detected as a
Snapper.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."

  reply	other threads:[~2006-05-17 19:32 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-04-16 14:39 PowerBook5,4 -- no sound? Paul Collins
2006-04-16 15:49 ` Andreas Schwab
2006-04-16 20:43   ` Benjamin Herrenschmidt
2006-04-16 23:33     ` Andreas Schwab
2006-04-16 23:54       ` Benjamin Herrenschmidt
2006-04-17  0:27         ` Andreas Schwab
2006-04-17  0:30           ` Benjamin Herrenschmidt
2006-04-17 13:45             ` Andreas Schwab
2006-04-17 20:51               ` Benjamin Herrenschmidt
2006-04-17 20:57                 ` Johannes Berg
2006-04-17 21:33                 ` Andreas Schwab
2006-04-17 21:50                   ` Benjamin Herrenschmidt
2006-05-17 10:34                 ` PowerMac7,3 sound (was: PowerBook5,4 -- no sound?) Johannes Berg
2006-05-17 19:32                   ` Andreas Schwab [this message]
2006-05-17 20:14                     ` Andreas Schwab
2006-05-18 10:39                     ` Johannes Berg
2006-05-18 12:48                       ` Andreas Schwab
2006-05-18 21:49                         ` Benjamin Herrenschmidt
2006-05-19 12:47                         ` Johannes Berg
2006-05-19 13:30                           ` Andreas Schwab
2006-05-19 13:48                             ` Johannes Berg
2006-05-19 14:30                               ` Andreas Schwab
2006-05-19 14:32                                 ` Johannes Berg
2006-05-18  3:13                   ` Benjamin Herrenschmidt
2006-04-16 20:43 ` PowerBook5,4 -- no sound? Benjamin Herrenschmidt
2006-04-17  0:34   ` Paul Collins
2006-04-17  0:51     ` Paul Collins

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=je3bf85twf.fsf@sykes.suse.de \
    --to=schwab@suse.de \
    --cc=johannes@sipsolutions.net \
    --cc=linuxppc-dev@ozlabs.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 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.