X-Received: by 2002:a17:906:6144:b0:6cf:bb2e:a2e1 with SMTP id p4-20020a170906614400b006cfbb2ea2e1mr779304ejl.299.1645641026531; Wed, 23 Feb 2022 10:30:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645641026; cv=none; d=google.com; s=arc-20160816; b=e78qnfPTic8pTDUfmsezA/MAwJHgWM+28tykQ1mIz/EJmg5flDnBr1utvmAb84GBXM w20FvspWjYEQTgGDJzf7Ui7odySVsoTH+mLy7QVGjnj9x+VmYh49CX6WAMHLwf1vrJNj wEJBQskOyqrfEzYrQMVsoFD/R/nXhI+BnSM4k/40niG+XRwgHyL1zLoCToXjWOcHYHzP 9hvlgb8eO5V4VN8Aro/T9vkOYnGa69V1hwZJbrd1dqBrejmE3s32pdoDgMRMGjRN1usN YixJlTmsxvVaJ2Maow+oBiubTGBDB3oQATLrnwy5tKZnGpWXQBmCuzMoJrftsU6DY3zH kvqg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=HUj0/NwUuJ7NHKgnroaaAJ8GqMUas2rpBLKSH+cv8pk=; b=p3L7KgWJKQZWHczMi/WTE4VRbJlEp1wacW+R+sCblGZkBRsPzhDqgEXIBT5rhqhPxq qzFwUhwz3wMBQyoKaTfhhIb5qcPQmjRxyT5NYwkzBQNSVsAyb51btP6sFcWD2S2x0Jjf mgZO2A65Z46IFml6bFtmD95jvQtAEZZ02AGT9JzY8EOaJCJzbpdeiXJYWZ+Tc/PAfLXz pTOZd+4fg3zzPhVgEOQLoK6qhkUWdd8Eu+pirg4saOReat9kL9bhDj9x9TS+E41LqYSF UuP/U0EAUAE0x6IBsyRK1btQmKmNA5+NwWvA9FfpscFVoB4JmJCJyozELB9OAv7/7f+b RlEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bz7hdh7V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ji1si192649ejc.367.2022.02.23.10.30.01; Wed, 23 Feb 2022 10:30:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=bz7hdh7V; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231222AbiBWJIT (ORCPT + 99 others); Wed, 23 Feb 2022 04:08:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231339AbiBWJIS (ORCPT ); Wed, 23 Feb 2022 04:08:18 -0500 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id D58F27EB3C for ; Wed, 23 Feb 2022 01:07:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1645607270; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=HUj0/NwUuJ7NHKgnroaaAJ8GqMUas2rpBLKSH+cv8pk=; b=bz7hdh7VEXvrncw13TSHEvqioxZ90QI/qa3PUNSvtQL5M/0FyXlFRbvJYsTgl20By4vis2 ndJys1DJDHd1XKd+KifN5Edk//aU68V5kqbnysrmx6QOzWDBn+t64mY0V/rSOpIx6eCJQJ T876L07jSJOjLJF7GNkorD+/Iyk3gnw= Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-538-9pY2HoO4NZS2quyPaJpHCA-1; Wed, 23 Feb 2022 04:07:47 -0500 X-MC-Unique: 9pY2HoO4NZS2quyPaJpHCA-1 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 032761854E21; Wed, 23 Feb 2022 09:07:46 +0000 (UTC) Received: from kate-fedora.redhat.com (unknown [10.2.16.65]) by smtp.corp.redhat.com (Postfix) with ESMTP id 390A87D420; Wed, 23 Feb 2022 09:07:35 +0000 (UTC) From: Kate Hsuan To: Sakari Ailus , Bingbu Cao , Tianshu Qiu , Mauro Carvalho Chehab , Greg Kroah-Hartman Cc: linux-media@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, hdegoede@redhat.com, Kate Hsuan Subject: [PATCH 0/1] staging: media: ipu3: Fix AF x_start position when rightmost stripe is used Date: Wed, 23 Feb 2022 17:06:47 +0800 Message-Id: <20220223090648.41989-1-hpa@redhat.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-Spam-Status: No, score=-2.8 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_NONE, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The AF scene will be at an incorrect coordinate if the AF scene is set to the right half part of the sensor. After several attempts to set the AF scene to the right half part of the sensor, the AF scene was staying at the rightmost edge of the sensor for any x_start setting. So, if only the rightmost stripe is used, the x_start should be adjusted based on the new basis of the coordinate which is the down_scaled_stripes offset. Based on this, if the only rightmost stripe is used, x_start should minus down_scaled_stripes offset to keep the correctness of the AF coordinate. Kate Hsuan (1): staging: media: ipu3: Fix AF x_start position when rightmost stripe is used drivers/staging/media/ipu3/ipu3-css-params.c | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) -- 2.35.1