From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from ffm.saftware.de ([83.141.3.46]:53292 "EHLO ffm.saftware.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753737Ab1EFMgG (ORCPT ); Fri, 6 May 2011 08:36:06 -0400 Message-ID: <4DC3EB32.7010202@linuxtv.org> Date: Fri, 06 May 2011 14:36:02 +0200 From: Andreas Oberritter MIME-Version: 1.0 To: Mauro Carvalho Chehab CC: Steve Kerrison , linux-media@vger.kernel.org, Antti Palosaari Subject: Re: [git:v4l-dvb/for_v2.6.40] [media] Sony CXD2820R DVB-T/T2/C demodulator driver References: <4DC3C6FA.8070505@linuxtv.org> <1304678539.8670.29.camel@ares> <4DC3E82A.7040202@redhat.com> In-Reply-To: <4DC3E82A.7040202@redhat.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit List-ID: Sender: On 05/06/2011 02:23 PM, Mauro Carvalho Chehab wrote: > Em 06-05-2011 07:42, Steve Kerrison escreveu: >> Hi Andreas, >> >> From cxd2820r_priv.h: >> >>> +/* >>> + * FIXME: These are totally wrong and must be added properly to the API. >>> + * Only temporary solution in order to get driver compile. >>> + */ >>> +#define SYS_DVBT2 SYS_DAB >>> +#define TRANSMISSION_MODE_1K 0 >>> +#define TRANSMISSION_MODE_16K 0 >>> +#define TRANSMISSION_MODE_32K 0 >>> +#define GUARD_INTERVAL_1_128 0 >>> +#define GUARD_INTERVAL_19_128 0 >>> +#define GUARD_INTERVAL_19_256 0 >> >> >> I believe Antti didn't want to make frontent.h changes until a consensus >> was reached on how to develop the API for T2 support. > > Yeah. > > Andreas/Antti, > > It seems more appropriate to remove the above hack and add Andreas patch. > I've reviewed it and it seemed ok on my eyes, provided that we also update > DVB specs to reflect the changes. > > In special, the new DVB command should be documented: > +#define DTV_DVBT2_PLP_ID 43 In addition to the patch, the PLP ID needs to be stored in struct dtv_frontend_properties and used by property cache functions in dvb_frontend.c. Antti, could you please complete the patch and test it with your device? This patch was adapted from an older kernel and only compile-tested few weeks ago. Regards, Andreas