From patchwork Sun May 8 22:38:22 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andreas Oberritter X-Patchwork-Id: 6545 Return-path: Envelope-to: mchehab@gaivota Delivery-date: Sun, 08 May 2011 23:27:01 -0300 Received: from mchehab by gaivota with local (Exim 4.73) (envelope-from ) id 1QJGBZ-0001gh-21 for mchehab@gaivota; Sun, 08 May 2011 23:27:01 -0300 Received: from casper.infradead.org [85.118.1.10] by gaivota with IMAP (fetchmail-6.3.19) for (single-drop); Sun, 08 May 2011 23:27:01 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by casper.infradead.org with esmtp (Exim 4.72 #1 (Red Hat Linux)) id 1QJCcp-0008Ek-VM; Sun, 08 May 2011 22:38:56 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755887Ab1EHWi1 (ORCPT + 1 other); Sun, 8 May 2011 18:38:27 -0400 Received: from ffm.saftware.de ([83.141.3.46]:42554 "EHLO ffm.saftware.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755866Ab1EHWi0 (ORCPT ); Sun, 8 May 2011 18:38:26 -0400 Received: from localhost (localhost [127.0.0.1]) by ffm.saftware.de (Postfix) with ESMTP id 982762C0A31; Mon, 9 May 2011 00:38:25 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at ffm.saftware.de Received: from ffm.saftware.de ([127.0.0.1]) by localhost (ffm.saftware.de [127.0.0.1]) (amavisd-new, port 10024) with LMTP id lsAs5vevZ-6j; Mon, 9 May 2011 00:38:24 +0200 (CEST) Message-ID: <4DC71B5E.7000902@linuxtv.org> Date: Mon, 09 May 2011 00:38:22 +0200 From: Andreas Oberritter User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.17) Gecko/20110424 Lightning/1.0b2 Thunderbird/3.1.10 MIME-Version: 1.0 To: Steve Kerrison CC: Antti Palosaari , Mauro Carvalho Chehab , linux-media@vger.kernel.org Subject: Re: [PATCH v2 1/5] DVB: Add basic API support for DVB-T2 and bump minor version References: <4DC6BF28.8070006@redhat.com> <1304882240-23044-2-git-send-email-steve@stevekerrison.com> <4DC717AD.8030609@linuxtv.org> In-Reply-To: <4DC717AD.8030609@linuxtv.org> Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Sender: Mauro Carvalho Chehab On 05/09/2011 12:22 AM, Andreas Oberritter wrote: > > Please also include the following (only compile-tested) lines within this commit: > > From 4329b836a6590421b178710160fcca3b39f64e18 Mon Sep 17 00:00:00 2001 > From: Andreas Oberritter > Date: Sun, 8 May 2011 22:14:07 +0000 > Subject: [PATCH] DVB: dvb_frontend: add PLP ID to property cache > > Signed-off-by: Andreas Oberritter > --- > drivers/media/dvb/dvb-core/dvb_frontend.c | 6 ++++++ > drivers/media/dvb/dvb-core/dvb_frontend.h | 3 +++ > 2 files changed, 9 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c > index dc3457c..5af1d67 100644 > --- a/drivers/media/dvb/dvb-core/dvb_frontend.c > +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c > @@ -1323,6 +1323,9 @@ static int dtv_property_process_get(struct dvb_frontend *fe, > case DTV_ISDBS_TS_ID: > tvp->u.data = fe->dtv_property_cache.isdbs_ts_id; > break; > + case DTV_DVBT2_PLP_ID: > + tvp->u.data = c->dvbt2_plp_id; > + break; Sorry, this depends on a changeset I haven't submitted yet and thus won't compile inside your tree. See below for a fixed patch. > default: > r = -1; > } > @@ -1478,6 +1481,9 @@ static int dtv_property_process_set(struct dvb_frontend *fe, > case DTV_ISDBS_TS_ID: > fe->dtv_property_cache.isdbs_ts_id = tvp->u.data; > break; > + case DTV_DVBT2_PLP_ID: > + c->dvbt2_plp_id = tvp->u.data; > + break; > default: > r = -1; > } > diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h > index 3b86050..fb2b13f 100644 > --- a/drivers/media/dvb/dvb-core/dvb_frontend.h > +++ b/drivers/media/dvb/dvb-core/dvb_frontend.h > @@ -358,6 +358,9 @@ struct dtv_frontend_properties { > > /* ISDB-T specifics */ > u32 isdbs_ts_id; > + > + /* DVB-T2 specifics */ > + u32 dvbt2_plp_id; > }; > > struct dvb_frontend { From 6e7abb85241e7aef5783f9c216e829de5fe90cb7 Mon Sep 17 00:00:00 2001 From: Andreas Oberritter Date: Sun, 8 May 2011 22:14:07 +0000 Subject: [PATCH] DVB: dvb_frontend: add PLP ID to property cache Signed-off-by: Andreas Oberritter --- drivers/media/dvb/dvb-core/dvb_frontend.c | 6 ++++++ drivers/media/dvb/dvb-core/dvb_frontend.h | 3 +++ 2 files changed, 9 insertions(+), 0 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.c b/drivers/media/dvb/dvb-core/dvb_frontend.c index dc3457c..d04ef09 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.c +++ b/drivers/media/dvb/dvb-core/dvb_frontend.c @@ -1323,6 +1323,9 @@ static int dtv_property_process_get(struct dvb_frontend *fe, case DTV_ISDBS_TS_ID: tvp->u.data = fe->dtv_property_cache.isdbs_ts_id; break; + case DTV_DVBT2_PLP_ID: + tvp->u.data = fe->dtv_property_cache.dvbt2_plp_id; + break; default: r = -1; } @@ -1478,6 +1481,9 @@ static int dtv_property_process_set(struct dvb_frontend *fe, case DTV_ISDBS_TS_ID: fe->dtv_property_cache.isdbs_ts_id = tvp->u.data; break; + case DTV_DVBT2_PLP_ID: + fe->dtv_property_cache.dvbt2_plp_id = tvp->u.data; + break; default: r = -1; } diff --git a/drivers/media/dvb/dvb-core/dvb_frontend.h b/drivers/media/dvb/dvb-core/dvb_frontend.h index 3b86050..fb2b13f 100644 --- a/drivers/media/dvb/dvb-core/dvb_frontend.h +++ b/drivers/media/dvb/dvb-core/dvb_frontend.h @@ -358,6 +358,9 @@ struct dtv_frontend_properties { /* ISDB-T specifics */ u32 isdbs_ts_id; + + /* DVB-T2 specifics */ + u32 dvbt2_plp_id; }; struct dvb_frontend {