From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Google-Smtp-Source: AB8JxZqhe+rrKR3xNzXvYU/oy5v36gHediR185osPYk+EMNC5fJbtTz8sYDQAXLLPIOlp7MS/QE9 ARC-Seal: i=1; a=rsa-sha256; t=1527155871; cv=none; d=google.com; s=arc-20160816; b=sWZyTigeiFa18GK9+RpeynG0y051v67go9V2mWxFavLwtyxh75GB3TJkEM3jfuedOP j8vjv8Lkz+WovfrcAg4xb1vrqeuyMIcrSklCGZC9+LMRLUp4BPmDGvJdiRx7c1LX7qR/ +fY1hfPgTcqGqy4H7buYieXbR/TFPPNyMLVCTgD8UI5/bJ4aHbxjrxiiFxu1DUs8AJw6 j1yRNcXyrzFRfA1Qad3941rXYF3ikhl3v+Tl+Zs2WpY2ABkEQ4GQD+J3RSOrKd9ZB7uH ivjWNYIsxMk15yCwoNxLRNWdkKppHVLOpgLF+r/ClPZYWHGrQjojR+SPufn8ffWyZxBr TOeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=mime-version:user-agent:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=/Ahh6bkKNNuaUNE1FBjyhd0qlsuauxc0IJPkTvRWIHU=; b=ao7FyggavRY3PjOAnP6xyrBK7tKQOkoMPn8UyKX49QyHa7FuP60CYNkcBmaDnt8UYD jIIGnWGG8wBP8v4qaxNjPDF62tvVdGfVgVgYFmm0v7TqDJxvTjjIyWvRseUCmhcC2rJl L92LEh+aTFEcs5YXLjQUl8sDqqkSpAXtn+TAVdiH9N+m6L2Pm7rRaCUk3J0uI4KnWYtp Myt3MIJRq4/BIAP7zVma3B16ygVL1LglMnGYJ3zvEoFXWoVG09eE65zQO+DHFUjv7sBl 73cpaBJUOa46vw9n53B+cqLIf6XA165pUMux7TYREsoI/cJpClBW3quiJA/N5JQaYcgv 5vVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ju/F+eZX; spf=pass (google.com: domain of srs0=we5z=il=linuxfoundation.org=gregkh@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=SRS0=We5Z=IL=linuxfoundation.org=gregkh@kernel.org Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=ju/F+eZX; spf=pass (google.com: domain of srs0=we5z=il=linuxfoundation.org=gregkh@kernel.org designates 198.145.29.99 as permitted sender) smtp.mailfrom=SRS0=We5Z=IL=linuxfoundation.org=gregkh@kernel.org From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, =?UTF-8?q?Niklas=20S=C3=B6derlund?= , Kieran Bingham , Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.14 146/165] media: i2c: adv748x: fix HDMI field heights Date: Thu, 24 May 2018 11:39:12 +0200 Message-Id: <20180524093627.982857557@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093621.979359379@linuxfoundation.org> References: <20180524093621.979359379@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-LABELS: =?utf-8?b?IlxcU2VudCI=?= X-GMAIL-THRID: =?utf-8?q?1601338995847294247?= X-GMAIL-MSGID: =?utf-8?q?1601338995847294247?= X-Mailing-List: linux-kernel@vger.kernel.org List-ID: 4.14-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kieran Bingham [ Upstream commit 9f564184e6cc21a86c26bab920afac1bab7653ff ] The ADV748x handles interlaced media using V4L2_FIELD_ALTERNATE field types. The correct specification for the height on the mbus is the image height, in this instance, the field height. The AFE component already correctly adjusts the height on the mbus, but the HDMI component got left behind. Adjust the mbus height to correctly describe the image height of the fields when processing interlaced video for HDMI pipelines. Fixes: 3e89586a64df ("media: i2c: adv748x: add adv748x driver") Reviewed-by: Niklas Söderlund Signed-off-by: Kieran Bingham Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/i2c/adv748x/adv748x-hdmi.c | 3 +++ 1 file changed, 3 insertions(+) --- a/drivers/media/i2c/adv748x/adv748x-hdmi.c +++ b/drivers/media/i2c/adv748x/adv748x-hdmi.c @@ -105,6 +105,9 @@ static void adv748x_hdmi_fill_format(str fmt->width = hdmi->timings.bt.width; fmt->height = hdmi->timings.bt.height; + + if (fmt->field == V4L2_FIELD_ALTERNATE) + fmt->height /= 2; } static void adv748x_fill_optional_dv_timings(struct v4l2_dv_timings *timings)