linuxppc-dev.lists.ozlabs.org archive mirror
 help / color / mirror / Atom feed
From: Johannes Berg <johannes@sipsolutions.net>
To: Ken Moffat <zarniwhoop@ntlworld.com>
Cc: linuxppc-dev list <linuxppc-dev@ozlabs.org>,
	debian-powerpc <debian-powerpc@lists.debian.org>
Subject: Re: [snd] looking for layout-ids
Date: Fri, 26 May 2006 01:02:49 +0200	[thread overview]
Message-ID: <1148598169.11759.65.camel@johannes.berg> (raw)
In-Reply-To: <20060525224905.GA28647@deepthought.linux.bogus>

On Thu, 2006-05-25 at 23:49 +0100, Ken Moffat wrote:
> > >   CC [M]  /home/ken/snd-aoa/soundbus/core.o
> > > In file included from /home/ken/snd-aoa/soundbus/soundbus.h:12,
> > >                  from /home/ken/snd-aoa/soundbus/core.c:12:
> > > include/sound/pcm.h:59: warning: =E2=80=98struct snd_pcm_substream=E2=
=80=99 declared
> > > inside parameter list
> > > include/sound/pcm.h:59: warning: its scope is only this definition
> > > or declaration, which is probably not what you want
> > > include/sound/pcm.h:60: warning: =E2=80=98struct snd_pcm_substream=E2=
=80=99 declared
> > > inside parameter list
> >=20
> > Nah, those should not happen. What kernel are you building against?
> >=20
>  2.6.17-rc5.  I had similar messages when I first tried snd-aoa,
> which would have been around 2.6.16.5.

Hm, ok, I'm currently testing against 2.6.17-rc4 so that ought to be
fine unless they had a large alsa code drop which can't really be
between -rc4 and -rc5 :)

>  Must be the headers causing the problem then.  I wonder if it's
> somehow using userspace headers - I might have had some 'unvalidated'
> headers in /usr/include/sound [1].  Will take a look tomorrow,
> although I've installed alsa lib after building snd-aoa, so that
> probably updated the headers.

Very strange, I don't think it should be trying to include *anything*
from /usr/include for userspace. And the line numbers match the kernel
line numbers.

But looking at the header file again, I don't quite understand why it
should even work at all.

It (pcm.h) first uses struct snd_pcm_substream:
struct snd_pcm_ops {
        int (*open)(struct snd_pcm_substream *substream);
        int (*close)(struct snd_pcm_substream *substream);
(these are the lines that give the warnings above)

and then defines it much much later in line 344... Odd. I suppose gcc
4.1.0 is more struct. Try adding to pcm.h, around line 57, just the
definition like so:

struct snd_pcm_substream;

In any case, I don't think that's the actual problem. I think the point
is that your machine isn't supported yet, can you try the patch below?

But please let me know if _noheadphones is correct, it probably isn't
and you need to tell me what connectors you have on the outside of the
box.

johannes

--- snd-aoa.orig/aoa/fabrics/snd-aoa-fabric-layout.c	2006-05-26 01:01:17.18=
9771119 +0200
+++ snd-aoa/aoa/fabrics/snd-aoa-fabric-layout.c	2006-05-26 01:01:42.8197711=
19 +0200
@@ -80,6 +80,8 @@ struct layout {
=20
 MODULE_ALIAS("sound-layout-82");
 MODULE_ALIAS("sound-layout-45");
+MODULE_ALIAS("sound-layout-60");
+MODULE_ALIAS("sound-layout-61");
 MODULE_ALIAS("sound-layout-64");
 MODULE_ALIAS("sound-layout-65");
 MODULE_ALIAS("sound-layout-68");
@@ -161,6 +163,21 @@ static struct layout layouts[] =3D {
 		.connections =3D NULL /* TBD */,
 	  },
 	},
+	/* PowerMac9,1 */
+	{ .layout_id =3D 60,
+	  .flags =3D LAYOUT_FLAG_COMBO_LINEOUT_SPDIF,
+	  .codecs[0] =3D {
+		.name =3D "onyx",
+		.connections =3D onyx_connections_noheadphones,
+	  },
+	},
+	/* PowerMac9,1 */
+	{ .layout_id =3D 61,
+	  .codecs[0] =3D {
+		.name =3D "topaz",
+		.connections =3D NULL, /* TBD */
+	  },
+	},
 	/* PowerBook5,7 */
 	{ .layout_id =3D 64,
 	  .flags =3D LAYOUT_FLAG_COMBO_LINEOUT_SPDIF,

  parent reply	other threads:[~2006-05-25 23:03 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-05-25 10:43 [snd] looking for layout-ids Johannes Berg
2006-05-25 12:33 ` Andreas Schwab
2006-05-25 12:37   ` Johannes Berg
     [not found] ` <20060525123247.GA19308@deepthought.linux.bogus>
2006-05-25 12:41   ` Johannes Berg
     [not found]     ` <20060525221111.GB27181@deepthought.linux.bogus>
2006-05-25 22:24       ` Johannes Berg
     [not found]         ` <20060525224905.GA28647@deepthought.linux.bogus>
2006-05-25 23:02           ` Johannes Berg [this message]
2006-05-25 13:43 ` Paul Collins
2006-05-26  1:14 ` Benjamin Herrenschmidt
2006-05-26  1:17 ` Benjamin Herrenschmidt
2006-05-26  7:28   ` Johannes Berg
2006-05-26  7:59     ` Benjamin Herrenschmidt
2006-05-26 16:02 ` Eddy Petrişor
2006-05-26 21:41   ` Benjamin Herrenschmidt
2006-05-29 11:49     ` Michael Schmitz

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=1148598169.11759.65.camel@johannes.berg \
    --to=johannes@sipsolutions.net \
    --cc=debian-powerpc@lists.debian.org \
    --cc=linuxppc-dev@ozlabs.org \
    --cc=zarniwhoop@ntlworld.com \
    /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).