From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Per Christian Henden <perchrh@pvv.org>
Cc: Linux Kernel list <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] Add Mac mini sound support
Date: Sun, 10 Apr 2005 09:28:32 +1000 [thread overview]
Message-ID: <1113089313.9568.435.camel@gaston> (raw)
In-Reply-To: <200504091351.27430.perchrh@pvv.org>
On Sat, 2005-04-09 at 13:51 +0200, Per Christian Henden wrote:
> The patch below adds sound support on the Mac Mini by making a small change to the PowerMac sound card detection code.
>
> Details:
>
> Original code:
> >From sound/ppc/pmac.c __init snd_pmac_detect(pmac_t *chip) :
>
> chip->model = PMAC_AWACS;
> ...
> if (device_is_compatible(sound, "AOAKeylargo")) {
> ...
> chip->model = PMAC_SNAPPER;
> ...
> }
>
> The chip model is first set to AWACS, then because the check above returns true, it gets set to SNAPPER.
> Using AWACS gives perfect sound, using SNAPPER gives no sound at all, so it should use AWACS instead.
> Note that the mixer still doesn't work.
>
> My simple patch makes the mentioned check return false on a Mac Mini.
And is not correct. It might appear to work but it is not the right
thing to do. There is no AWACS chip in there. There is a fixed function
codec controlled by a couple of GPIOs afaik. I'm working on a major
rework of the alsa driver that will include support for the mini and the
G5s.
Ben.
next prev parent reply other threads:[~2005-04-09 23:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-04-09 11:51 [PATCH] Add Mac mini sound support Per Christian Henden
2005-04-09 23:28 ` Benjamin Herrenschmidt [this message]
2005-04-11 17:12 ` Per Christian Henden
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=1113089313.9568.435.camel@gaston \
--to=benh@kernel.crashing.org \
--cc=linux-kernel@vger.kernel.org \
--cc=perchrh@pvv.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