From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Takashi Iwai <tiwai@suse.de>
Cc: Johannes Berg <johannes@sipsolutions.net>, linuxppc-dev@lists.ozlabs.org
Subject: Re: [PATCH] Add support for PowerMac3,5 in snd-aoa ALSA sound module
Date: Tue, 22 Feb 2011 09:20:51 +1100 [thread overview]
Message-ID: <1298326851.8833.75.camel@pasglop> (raw)
In-Reply-To: <s5hd3mlbx6x.wl%tiwai@suse.de>
On Mon, 2011-02-21 at 09:37 +0100, Takashi Iwai wrote:
> At Sun, 20 Feb 2011 22:38:28 +0100,
> Linux User #330250 wrote:
> >
> > Hello again!
> >
> > Sorry for sending the patch three times. (This is the fourth...)
> >
> > About the sign-off: I use the name I've been using since I started
> > participating. The document $LINUX/Documentation/SubmittingPatches clearly
> > states that one has to use real names. I'm breaking this rule, but I'm not
> > ready to reveal my real name here or at any other place at this time. Sorry.
> > If this patch is not accepted due to this, well… that's life. BTW my real
> > given name is Andreas.
>
> Well, we need really the full name for sign-off.
> In general, it's not acceptable with the proper sign-off...
So somebody else can just pick the "documentation" that layout ID 21
works just like 22 for us, and write an "acceptable" patch...
Cheers,
Ben.
>
> Takashi
>
>
> >
> >
> > So, here's the patch, this time with a (pseudonym) sign-off:
> >
> > This patch makes the snd-aoa ALSA sound module support the TAS3001C codec of
> > my Apple Power Mac G4 "Quicksilver" (2001 model). I suppose it will also work
> > for the "Quicksilver 2002", since both identify as PowerMac3,5.
> >
> > The patch also changes a few comments to name the exact Power Mac model more
> > accurately in sound/aoa/fabrics/layout.c.
> >
> > Signed-off-by: Andreas aka Linux User #330250 <linuxuser330250@gmx.net>
> >
> > ---
> >
> > diff -Naur linux-2.6.38-rc5-git2/sound/aoa/fabrics/layout.c linux-2.6.38-rc5-git2-aoa-PowerMac3,5/sound/aoa/fabrics/layout.c
> > --- linux-2.6.38-rc5-git2/sound/aoa/fabrics/layout.c 2011-01-05 01:50:19.000000000 +0100
> > +++ linux-2.6.38-rc5-git2-aoa-PowerMac3,5/sound/aoa/fabrics/layout.c 2011-02-17 18:43:26.000000000 +0100
> > @@ -111,6 +111,7 @@
> > MODULE_ALIAS("sound-layout-100");
> >
> > MODULE_ALIAS("aoa-device-id-14");
> > +MODULE_ALIAS("aoa-device-id-21");
> > MODULE_ALIAS("aoa-device-id-22");
> > MODULE_ALIAS("aoa-device-id-35");
> >
> > @@ -333,14 +334,14 @@
> > .connections = topaz_input,
> > },
> > },
> > - /* Quad PowerMac (analog in, analog/digital out) */
> > + /* PowerMac11,2 (G5 Dual-Core and Quad) (analog in, analog/digital out) */
> > { .layout_id = 68,
> > .codecs[0] = {
> > .name = "onyx",
> > .connections = onyx_connections_nomic,
> > },
> > },
> > - /* Quad PowerMac (digital in) */
> > + /* PowerMac11,2 (G5 Dual-Core and Quad) (digital in) */
> > { .layout_id = 69,
> > .codecs[0] = {
> > .name = "topaz",
> > @@ -521,14 +522,21 @@
> > .connections = onyx_connections_noheadphones,
> > },
> > },---
> > - /* PowerMac3,4 */
> > + /* PowerMac3,4 (Digital Audio) */
> > { .device_id = 14,
> > .codecs[0] = {
> > .name = "tas",
> > .connections = tas_connections_noline,
> > },
> > },
> > - /* PowerMac3,6 */
> > + /* PowerMac3,5 (Quicksilver) */
> > + { .device_id = 21,
> > + .codecs[0] = {
> > + .name = "tas",
> > + .connections = tas_connections_noline,
> > + },
> > + },
> > + /* PowerMac3,6 (Mirrored Drive Doors) */
> > { .device_id = 22,
> > .codecs[0] = {
> > .name = "tas",
> > diff -Naur linux-2.6.38-rc5-git2/sound/aoa/soundbus/i2sbus/core.c linux-2.6.38-rc5-git2-aoa-PowerMac3,5/sound/aoa/soundbus/i2sbus/core.c
> > --- linux-2.6.38-rc5-git2/sound/aoa/soundbus/i2sbus/core.c 2011-01-05 01:50:19.000000000 +0100
> > +++ linux-2.6.38-rc5-git2-aoa-PowerMac3,5/sound/aoa/soundbus/i2sbus/core.c 2011-02-17 18:44:36.000000000 +0100
> > @@ -200,7 +200,7 @@
> > * We probably cannot handle all device-id machines,
> > * so restrict to those we do handle for now.
> > */
> > - if (id && (*id == 22 || *id == 14 || *id == 35)) {
> > + if (id && (*id == 22 || *id == 21 || *id == 14 || *id == 35)) {
> > snprintf(dev->sound.modalias, 32,
> > "aoa-device-id-%d", *id);
> > ok = 1;
> >
> _______________________________________________
> Linuxppc-dev mailing list
> Linuxppc-dev@lists.ozlabs.org
> https://lists.ozlabs.org/listinfo/linuxppc-dev
next prev parent reply other threads:[~2011-02-21 22:21 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-20 21:38 [PATCH] Add support for PowerMac3,5 in snd-aoa ALSA sound module Linux User #330250
2011-02-21 8:37 ` Takashi Iwai
2011-02-21 22:20 ` Benjamin Herrenschmidt [this message]
2011-02-23 17:56 ` Linux User #330250
-- strict thread matches above, loose matches on Subject: below --
2011-02-19 14:53 Linux User #330250
2011-02-20 9:13 ` Takashi Iwai
2011-02-17 20:53 Linux User #330250
2011-02-17 20:17 Linux User #330250
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=1298326851.8833.75.camel@pasglop \
--to=benh@kernel.crashing.org \
--cc=johannes@sipsolutions.net \
--cc=linuxppc-dev@lists.ozlabs.org \
--cc=tiwai@suse.de \
/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).