All of lore.kernel.org
 help / color / mirror / Atom feed
From: Liam Girdwood <liam.girdwood@wolfsonmicro.com>
To: Nicolas Pitre <nico@cam.org>
Cc: Takashi Iwai <tiwai@suse.de>,
	alsa-devel@lists.sourceforge.net,
	Bill Gatliff <bgat@billgatliff.com>
Subject: Re: [PATCH] AC97 bus interface for ad-hoc drivers
Date: Thu, 28 Jul 2005 21:26:39 +0100	[thread overview]
Message-ID: <1122582399.5371.90.camel@localhost.localdomain> (raw)
In-Reply-To: <Pine.LNX.4.63.0507270856510.21762@localhost.localdomain>

On Wed, 2005-07-27 at 09:05 -0400, Nicolas Pitre wrote:
> On Wed, 27 Jul 2005, Takashi Iwai wrote:
> > 
> > Better to keep snd- prefix for ac97_bus module (although it can be
> > used independently from ALSA)...?  It's an open question.
> 
> The idea is to be able to use ALSA as modules and the extra function 
> driver linked in, or vice versa.  Therefore ac97_bus.o should probably 
> be selected with its own config symbol allowing for things like:
> 
> config UCB1400_TS
> 	tristate "UCB1400 touchscreen interface"
> 	select AC97_BUS
> 
> 
> And similarly:
> 
> config SND_AC97_CODEC
> 	...
> 	select AC97_BUS
> 
> This way there is no hard linkage depedency between ALSA and any ad-hoc 
> codec function driver.

I've just unsuccessfully tried to create this dependency in the Kconfig
system. It looks like you cannot do:-

config SND_SOME_DRIVER
	tristate "some driver"
	select SND_AC97_CODEC

config SND_AC97_CODEC
	tristate 
	select SND_PCM
	select SND_AC97_BUS

config SND_AC97_BUS
	tristate

In this scenario SND_SOME_DRIVER selects SND_AC97_CODEC selects
SND_AC97_BUS and I could never get a SND_AC97_BUS=m or otherwise in
my .config. I was only ever successful by adding the select SND_AC97_BUS
line to SND_SOME_DRIVER.

I now don't think that the "select SND_PCM" is having any effect in the
AC97_CODEC config, although it still builds fine when remove it.

With this in mind (I'm not sure if this is intentional in the build
system or not), it might be better to stick with the original Makefile
and rename the module with a snd- prefix.

Liam

 

  



-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf

  parent reply	other threads:[~2005-07-28 20:26 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-07-19 12:20 [PATCH] AC97 bus interface for ad-hoc drivers Liam Girdwood
2005-07-27 11:10 ` Takashi Iwai
2005-07-27 13:05   ` Nicolas Pitre
2005-07-27 13:18     ` Takashi Iwai
2005-07-27 13:43       ` Liam Girdwood
2005-07-28 20:26     ` Liam Girdwood [this message]
2005-07-29 10:45       ` Takashi Iwai
2005-07-29 11:20         ` Liam Girdwood
2005-07-29 11:27           ` Takashi Iwai
2005-07-29 12:51             ` Liam Girdwood
2005-07-29 15:19               ` Takashi Iwai
2005-07-31 14:26                 ` Liam Girdwood

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=1122582399.5371.90.camel@localhost.localdomain \
    --to=liam.girdwood@wolfsonmicro.com \
    --cc=alsa-devel@lists.sourceforge.net \
    --cc=bgat@billgatliff.com \
    --cc=nico@cam.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 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.