From patchwork Tue Jan 15 09:30:36 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 10764129 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 54F9214E5 for ; Tue, 15 Jan 2019 09:31:10 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 4564F2B3E6 for ; Tue, 15 Jan 2019 09:31:10 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 393322B460; Tue, 15 Jan 2019 09:31:10 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-8.0 required=2.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id E56432B3E6 for ; Tue, 15 Jan 2019 09:31:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728416AbfAOJbJ (ORCPT ); Tue, 15 Jan 2019 04:31:09 -0500 Received: from mail-wr1-f65.google.com ([209.85.221.65]:39514 "EHLO mail-wr1-f65.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726077AbfAOJbJ (ORCPT ); Tue, 15 Jan 2019 04:31:09 -0500 Received: by mail-wr1-f65.google.com with SMTP id t27so2095963wra.6 for ; Tue, 15 Jan 2019 01:31:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=GsUE7+1OYPkQViw5v2tIo8Rgd6FdN8vkhk5Xa/EaFII=; b=QDsUjuMTa8F7cjz4jMPwFCB7F0b8qtvsRjI92Ez5z2KUjsihifZZhNHOstN1p4rxsJ XLe+lR7Ontg3qxAobfe1UFZCKtRDxP82HmMTwVkFQboX8DdL5w90AHYGMt2hwtl1nsyw z7b17Bna4JMx9sBn/i3bot7uyrBRTKeBubLtlyir5/mIAjkDvvnC0Du3HjypngQUkiUO aSex8+82Nw1VsQZxJCVj+wH54pN87cKcHZJYK9nYh1WNCr9eSYS7A7rmwjNgB1I1DwcY PcHFeCL3y2gKUqq6SwNXAhx+XEQeBYQt/aWKN3zNXehYmG5roWtfHgpOJJRgmhSBbZiF AKww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=GsUE7+1OYPkQViw5v2tIo8Rgd6FdN8vkhk5Xa/EaFII=; b=X0Z3vp0w9D4TY7+c4u2YOZcIi1fuopAWg9Y/TrqnP4kR7t85jfXxT4fmdjBnlQ87Q8 kj86i6XhYdxV3+guXRrQl51WVrqNlvZtxz1fv2JdmFuwQsKCdz0Lax01Vf8jHcodR1kD vPyh55Xj/snKsf/zBaau3XiUuTqiU3ORTkZt8Msb6+ln0/9QQyiFMZe35UlEuebIUirP zuoz+KTha9DcmD3eN2Xu8+78Cn0jYhmAtG2Ak/xyUPnLf+uXpTFmhth3d4s/m5jjtSdV BUIyX8kuyV7/85JpFgg1ZeTpAH5cu7MyRwYJcM2yPDnL8vCHeBciQU0zBMUuj46WbULf 0khw== X-Gm-Message-State: AJcUukeSQD2iKFqawPK9Dk9h6bUQDkdDUCkGfrrrCL2d92mS8ZvMUrai YdpF5HGqdg7yHhQLKy98Nok1IBaOfOs= X-Google-Smtp-Source: ALg8bN5XVHJfGx8FTZ6HM3bTQ63gur4drJ65PHxm8uAGbCBgPjXoe+FeGzWTaw6Ny4Ir6tmtVGzaiw== X-Received: by 2002:adf:ed92:: with SMTP id c18mr2282052wro.194.1547544667208; Tue, 15 Jan 2019 01:31:07 -0800 (PST) Received: from localhost.localdomain ([87.71.12.187]) by smtp.gmail.com with ESMTPSA id m193sm32998098wmb.26.2019.01.15.01.31.05 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Tue, 15 Jan 2019 01:31:06 -0800 (PST) From: Dafna Hirschfeld To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, helen.koike@collabora.com, Dafna Hirschfeld Subject: [PATCH 1/4] media: vicodec: bugfix - replace '=' with '|=' Date: Tue, 15 Jan 2019 01:30:36 -0800 Message-Id: <20190115093039.70584-1-dafna3@gmail.com> X-Mailer: git-send-email 2.17.1 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP In the fwht_encode_frame, 'encoding = encode_plane' should be replaced with 'encoding |= encode_plane' so existing flags won't be overwrriten. Signed-off-by: Dafna Hirschfeld --- drivers/media/platform/vicodec/codec-fwht.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/media/platform/vicodec/codec-fwht.c b/drivers/media/platform/vicodec/codec-fwht.c index 5630f1dc45e6..a6fd0477633b 100644 --- a/drivers/media/platform/vicodec/codec-fwht.c +++ b/drivers/media/platform/vicodec/codec-fwht.c @@ -787,10 +787,10 @@ u32 fwht_encode_frame(struct fwht_raw_frame *frm, if (frm->components_num == 4) { rlco_max = rlco + size / 2 - 256; - encoding = encode_plane(frm->alpha, ref_frm->alpha, &rlco, - rlco_max, cf, frm->height, frm->width, - frm->luma_alpha_step, - is_intra, next_is_intra); + encoding |= encode_plane(frm->alpha, ref_frm->alpha, &rlco, + rlco_max, cf, frm->height, frm->width, + frm->luma_alpha_step, + is_intra, next_is_intra); if (encoding & FWHT_FRAME_UNENCODED) encoding |= FWHT_ALPHA_UNENCODED; encoding &= ~FWHT_FRAME_UNENCODED;