Adding module to ALSA tree with Kconfig script
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
At Mon, 26 Apr 2004 09:54:44 -0500,
Quoted 4 lines · Perry Gilfillan
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
Kconfigscript 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.
Quoted 2 lines
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.
Quoted 2 lines
I'm building against a 2.4.25 kernel, so how do I invoke the
Kconfigscripts?
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