From patchwork Tue Feb 9 09:25:54 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Guennadi Liakhovetski X-Patchwork-Id: 77987 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o199PMEf009422 for ; Tue, 9 Feb 2010 09:25:22 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753393Ab0BIJZU (ORCPT ); Tue, 9 Feb 2010 04:25:20 -0500 Received: from mail.gmx.net ([213.165.64.20]:51719 "HELO mail.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1751423Ab0BIJZT (ORCPT ); Tue, 9 Feb 2010 04:25:19 -0500 Received: (qmail invoked by alias); 09 Feb 2010 09:25:17 -0000 Received: from p57BD1864.dip0.t-ipconnect.de (EHLO axis700.grange) [87.189.24.100] by mail.gmx.net (mp044) with SMTP; 09 Feb 2010 10:25:17 +0100 X-Authenticated: #20450766 X-Provags-ID: V01U2FsdGVkX19liYIKwKNlGTXvw+wWiykXsSiOToS2RVANO7/1HE BH1bbg9dJ2IFEx Received: from lyakh (helo=localhost) by axis700.grange with local-esmtp (Exim 4.63) (envelope-from ) id 1NemLy-0001Pq-Sd; Tue, 09 Feb 2010 10:25:54 +0100 Date: Tue, 9 Feb 2010 10:25:54 +0100 (CET) From: Guennadi Liakhovetski To: Kuninori Morimoto cc: Linux-V4L2 , Magnus Damm Subject: [PATCH 2/2] sh_mobile_ceu_camera: pass .set_parm and .get_parm down to subdevices In-Reply-To: Message-ID: References: MIME-Version: 1.0 X-Y-GMX-Trusted: 0 X-FuHaFi: 0.59999999999999998 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 09 Feb 2010 09:25:22 +0000 (UTC) diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index f09c714..cb34e74 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c @@ -1748,6 +1748,22 @@ static void sh_mobile_ceu_init_videobuf(struct videobuf_queue *q, icd); } +static int sh_mobile_ceu_get_parm(struct soc_camera_device *icd, + struct v4l2_streamparm *parm) +{ + struct v4l2_subdev *sd = soc_camera_to_subdev(icd); + + return v4l2_subdev_call(sd, video, g_parm, parm); +} + +static int sh_mobile_ceu_set_parm(struct soc_camera_device *icd, + struct v4l2_streamparm *parm) +{ + struct v4l2_subdev *sd = soc_camera_to_subdev(icd); + + return v4l2_subdev_call(sd, video, s_parm, parm); +} + static int sh_mobile_ceu_get_ctrl(struct soc_camera_device *icd, struct v4l2_control *ctrl) { @@ -1808,6 +1824,8 @@ static struct soc_camera_host_ops sh_mobile_ceu_host_ops = { .try_fmt = sh_mobile_ceu_try_fmt, .set_ctrl = sh_mobile_ceu_set_ctrl, .get_ctrl = sh_mobile_ceu_get_ctrl, + .set_parm = sh_mobile_ceu_set_parm, + .get_parm = sh_mobile_ceu_get_parm, .reqbufs = sh_mobile_ceu_reqbufs, .poll = sh_mobile_ceu_poll, .querycap = sh_mobile_ceu_querycap,