From: Eduard Huguet <eduardhc@gmail.com>
To: Trent Piepho <xyzzy@speakeasy.org>
Cc: linux-media@vger.kernel.org
Subject: Re: cx8802.ko module not being built with current HG tree
Date: Thu, 5 Feb 2009 20:04:25 +0100 [thread overview]
Message-ID: <200902052004.25732.eduardhc@gmail.com> (raw)
In-Reply-To: <Pine.LNX.4.58.0902050946560.17300@shell2.speakeasy.net>
A Dijous, 5 de febrer de 2009 19:33:21, Trent Piepho va escriure:
> On Thu, 5 Feb 2009, Eduard Huguet wrote:
> > The module was not being load because kernel was failing to find
> > cx8802_get_driver, etc... entry points, which are exported by
> > cx88-mpeg.c.
> >
> > After a 'make menuconfig' in HG tree the kernel configuration
> > contained these lines (this was using the default config, without
> > adding / removing anything):
> > CONFIG_VIDEO_CX88=m
> > CONFIG_VIDEO_CX88_ALSA=m
> > CONFIG_VIDEO_CX88_BLACKBIRD=m
> > CONFIG_VIDEO_CX88_DVB=m
> > CONFIG_VIDEO_CX88_MPEG=y
> > CONFIG_VIDEO_CX88_VP3054=m
>
> The problem is that CX88_MPEG is y; it should be m. The kconfig system is
> strange in the way it handles "hidden" entries. In the Kconfig file, MPEG
> depends on DVB, so having MPEG at 'y' which is higher than DVB at 'm'
> shouldn't be allowed. And indeed if you unhide DVB it won't be. But when
> it's hidden the "default y" overrides the dependencies.
>
> The dependencies here are backward though! It is DVB and BLACKBIRD that
> depend on MPEG. MPEG depends on CX88.
>
> The right way to do it either to make MPEG visible and give it the right
> dependencies, or keep it hidden and have DVB and BLACKBIRD select it.
>
> Like this:
> diff -r ed3955855d78 linux/drivers/media/video/cx88/Kconfig
> --- a/linux/drivers/media/video/cx88/Kconfig Thu Feb 05 09:58:48 2009
> -0800 +++ b/linux/drivers/media/video/cx88/Kconfig Thu Feb 05 10:27:41
> 2009 -0800 @@ -31,9 +31,17 @@ config VIDEO_CX88_ALSA
> To compile this driver as a module, choose M here: the
> module will be called cx88-alsa.
>
> +config VIDEO_CX88_MPEG
> + tristate
> + depends on VIDEO_CX88
> + select VIDEO_BTCX
> + select VIDEOBUF_DMA_SG
> + default n
> +
> config VIDEO_CX88_BLACKBIRD
> tristate "Blackbird MPEG encoder support (cx2388x + cx23416)"
> depends on VIDEO_CX88
> + select VIDEO_CX88_MPEG
> select VIDEO_CX2341X
> ---help---
> This adds support for MPEG encoder cards based on the
> @@ -46,6 +54,7 @@ config VIDEO_CX88_DVB
> config VIDEO_CX88_DVB
> tristate "DVB/ATSC Support for cx2388x based TV cards"
> depends on VIDEO_CX88 && DVB_CORE
> + select VIDEO_CX88_MPEG
> select VIDEOBUF_DVB
> select DVB_PLL if !DVB_FE_CUSTOMISE
> select DVB_MT352 if !DVB_FE_CUSTOMISE
> @@ -69,11 +78,6 @@ config VIDEO_CX88_DVB
> To compile this driver as a module, choose M here: the
> module will be called cx88-dvb.
>
> -config VIDEO_CX88_MPEG
> - tristate
> - depends on VIDEO_CX88_DVB || VIDEO_CX88_BLACKBIRD
> - default y
> -
> config VIDEO_CX88_VP3054
> tristate "VP-3054 Secondary I2C Bus Support"
> default m
This is what I thought. I managed to compile the drivers by hacking Kconfig,
so this makes sense.
Thanks for your quick patch, I hope it's included into the main tree ASAP as
the CX88-DVB driver is widely used, and it's unusable right now unless you do
the proper hacking.
Regards,
Eduard Huguet
next prev parent reply other threads:[~2009-02-05 19:04 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-02-05 15:54 [linux-dvb] cx8802.ko module not being built with current HG tree Eduard Huguet
2009-02-05 15:59 ` Eduard Huguet
2009-02-05 18:33 ` Trent Piepho
2009-02-05 19:04 ` Eduard Huguet [this message]
2009-02-10 11:37 ` Mauro Carvalho Chehab
2009-02-10 11:49 ` Eduard Huguet
2009-02-10 18:25 ` Trent Piepho
2009-02-10 18:47 ` Mauro Carvalho Chehab
2009-02-10 20:31 ` Hans Verkuil
2009-02-10 20:41 ` Mauro Carvalho Chehab
2009-02-10 21:21 ` Hans Verkuil
2009-02-11 0:17 ` Mauro Carvalho Chehab
2009-02-11 1:20 ` Trent Piepho
2009-02-11 7:53 ` Mauro Carvalho Chehab
2009-02-13 10:47 ` Trent Piepho
2009-02-10 11:57 ` Eduard Huguet
2009-02-10 12:09 ` Mauro Carvalho Chehab
2009-02-10 12:29 ` Mauro Carvalho Chehab
2009-02-10 12:39 ` Eduard Huguet
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=200902052004.25732.eduardhc@gmail.com \
--to=eduardhc@gmail.com \
--cc=linux-media@vger.kernel.org \
--cc=xyzzy@speakeasy.org \
/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