All of lore.kernel.org
 help / color / mirror / Atom feed
* Adding module to ALSA tree with Kconfig script
@ 2004-04-26 14:54 Perry Gilfillan
  2004-04-26 17:00 ` Takashi Iwai
  0 siblings, 1 reply; 2+ messages in thread
From: Perry Gilfillan @ 2004-04-26 14:54 UTC (permalink / raw)
  To: alsa-list

Hello,

It seems that between alsa-driver-1.0.2 and 1.0.4, the 
scripts/Modules.dep file has been dropped in favour of Kconfig scripts. 
  This seems like a good thing, but I'm at a loss to get my snd-tvmixer 
to work by this method.

I've looked at the revised "Writing an ALSA Driver" chapter 14, and 
still can't get it straight.  The first hurdle is creating a Kconfig 
script in the alsa-kernel/i2c directory.  This is what I came up with:

   # ALSA I2C drivers

   menu "I2C devices"
           depends on SND!=n && I2C

   config SND_TVMIXER
           tristate "Video 4 Linux TV-Mixer"
           depends on SND
           help
             Say 'Y' or 'M' to include support for TV-Mixer.
                   This module requires that the V4L msp3400 module be
                   present.

   endmenu



Then I have added these lines to alsa-kernel/i2c/Makefile:

snd-tvmixer-objs := tvmixer.o
obj-$(CONFIG_SND_TVMIXER) += snd-tvmixer.o


Chapter 14 has the second line written as 'extra-obj-$( ....', so I 
tried it both ways.

I'm building against a 2.4.25 kernel, so how do I invoke the Kconfig 
scripts?  or do I need to RTFine kbuild Manual?

Thanks,

Perry
-----
Gilfillan Family: http://www.gilfillan.org/

Projects:
   V3TV: http://www.gilfillan.org/v3tv/
   VPX3224:  http://www.gilfillan.org/vpx3224/
   snd-tvmixer:  http://www.gilfillan.org/ALSA/



-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Adding module to ALSA tree with Kconfig script
  2004-04-26 14:54 Adding module to ALSA tree with Kconfig script Perry Gilfillan
@ 2004-04-26 17:00 ` Takashi Iwai
  0 siblings, 0 replies; 2+ messages in thread
From: Takashi Iwai @ 2004-04-26 17:00 UTC (permalink / raw)
  To: perrye; +Cc: alsa-devel

At Mon, 26 Apr 2004 09:54:44 -0500,
Perry Gilfillan wrote:
> 
> I've looked at the revised "Writing an ALSA Driver" chapter 14, and 
> still can't get it straight.  The first hurdle is creating a Kconfig 
> script in the alsa-kernel/i2c directory.  This is what I came up with:

i2c directory is for the common i2c modules.  this isn't the place to
put the card driver.  if it's a PCI card, put it under pci directory.
or, if it's a generic driver, you can put it into drivers directory.


> Chapter 14 has the second line written as 'extra-obj-$( ....', so I 
> tried it both ways.

argh, it's a typo.  obj-$(CONFIG_XXXX) is correct.


> I'm building against a 2.4.25 kernel, so how do I invoke the Kconfig 
> scripts?

ALSA configure script checks Kconfig and generates the proper
configuration for older kernels, too.  you don't need extra setting.


Takashi


-------------------------------------------------------
This SF.net email is sponsored by: The Robotic Monkeys at ThinkGeek
For a limited time only, get FREE Ground shipping on all orders of $35
or more. Hurry up and shop folks, this offer expires April 30th!
http://www.thinkgeek.com/freeshipping/?cpg=12297

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-04-26 17:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-26 14:54 Adding module to ALSA tree with Kconfig script Perry Gilfillan
2004-04-26 17:00 ` Takashi Iwai

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.