From: Michael Krufky <mkrufky@m1k.net>
To: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Andrew Morton <akpm@osdl.org>,
Mauro Carvalho Chehab <mchehab@brturbo.com.br>,
linux-kernel@vger.kernel.org, video4linux-list@redhat.com
Subject: Re: [PATCH -rc2-mm2] BUG FIX - v4l broken hybrid dvb inclusion
Date: Tue, 12 Jul 2005 14:24:48 -0400 [thread overview]
Message-ID: <42D40AF0.8060100@m1k.net> (raw)
In-Reply-To: <200507122218.38508.adobriyan@gmail.com>
Alexey Dobriyan wrote:
>On Tuesday 12 July 2005 21:19, Michael Krufky wrote:
>
>
>>Alexey Dobriyan wrote:
>>
>>
>>>On Tuesday 12 July 2005 19:06, Michael Krufky wrote:
>>>
>>>>I had tested this change against 2.6.13-rc2-mm1, and it worked perfectly as
>>>>expected, but it caused problems in today's 2.6.13-rc2-mm2 release. For
>>>>some reason, the symbols don't get set properly.
>>>>
>>What I meant was the CONFIG_DVB_LGDT3302 , etc flags
>>
>>Previous patch removed the #define's that you see below... This should
>>have worked, since these should be set instead from kconfig, but it
>>didn't work as expected (even though the modules ARE selected by
>>kconfig),
>>
>>
>Strange... I did allyesconfig and preprocessed source shows lgdt3302.h,
>or51132.h et al. are included. What's your .config?
>
>>and the #ifdef's return false.... (I don't know why it worked
>>in my test against 2.6.13-rc2-mm1, but it doesn't work in -mm2, and it
>>must be fixed) Breaks all hybrid v4l/dvb boards.
>>
>>
Everything does get built, just as you say... However, there is code
inside cx88-dvb.c and saa7134-dvb.c that is enclosed within #ifdef's
... This code is NOT included during the compile. For some reason the
#ifdef's are turning up as false during compile time... In -mm1 this
didn't happen. For now, I am just setting these to true at the top of
the *-dvb.c files... In the future, we (v4l) will either provide a
better solution, or just remove the #define AND #ifdef's alltogether...
I am including an excerp from cx88-dvb.c to illustrate what I am talking
about:
#if CONFIG_DVB_MT352
# include "mt352.h"
# include "mt352_priv.h"
#endif
#if CONFIG_DVB_CX22702
# include "cx22702.h"
#endif
#if CONFIG_DVB_OR51132
# include "or51132.h"
#endif
#if CONFIG_DVB_LGDT3302
# include "lgdt3302.h"
#endif
<snip>
#if CONFIG_DVB_MT352
static int dvico_fusionhdtv_demod_init(struct dvb_frontend* fe)
{
static u8 clock_config [] = { CLOCK_CTL, 0x38, 0x39 };
static u8 reset [] = { RESET, 0x80 };
static u8 adc_ctl_1_cfg [] = { ADC_CTL_1, 0x40 };
static u8 agc_cfg [] = { AGC_TARGET, 0x24, 0x20 };
<snip>
static struct mt352_config dntv_live_dvbt_config = {
.demod_address = 0x0f,
.demod_init = dntv_live_dvbt_demod_init,
.pll_set = mt352_pll_set,
};
#endif
<snip>
This should be enough to explain what I am talking about... Of course this is just a small snippet...
There is more in cx88-dvb.c that does this, as well as saa7134-dvb.c...
In -mm2, the code inside the #if is NOT compiled... This is a problem, and this is why I sumbitted the patch.
--
Michael Krufky
next prev parent reply other threads:[~2005-07-12 18:27 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-07-12 15:06 Michael Krufky
2005-07-12 17:07 ` Alexey Dobriyan
2005-07-12 17:19 ` Michael Krufky
2005-07-12 18:18 ` Alexey Dobriyan
2005-07-12 18:24 ` Michael Krufky [this message]
2005-07-12 22:36 ` Johannes Stezenbach
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=42D40AF0.8060100@m1k.net \
--to=mkrufky@m1k.net \
--cc=adobriyan@gmail.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mchehab@brturbo.com.br \
--cc=video4linux-list@redhat.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
all inboxes | Powered by JetHome®