Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1931530imm; Thu, 24 May 2018 03:08:27 -0700 (PDT) X-Google-Smtp-Source: AB8JxZrese7cmbVVvpPAIgBL/PqEAheIcRd+5AjdhvCTSYSi2zb1ZUoDFzCr4cqr+DibEatiyqfg X-Received: by 2002:a62:104a:: with SMTP id y71-v6mr6512868pfi.188.1527156507920; Thu, 24 May 2018 03:08:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527156507; cv=none; d=google.com; s=arc-20160816; b=iXk2OkOIRMZA6Mp68NMX6zFbwhRgbIuZnaChWb+vzo+krZDs3D2QgUScSd9bkynPt/ CgGosVgm9/PZmo+4Dsx+/5ym3aUkXMQbaJ4KXkWgyECuCDWIvktVTtFACdSQ3TX4JZTi rNBkzG5XaROU3MNwqTf7h8aXTIcYnpHKww3Cf8iDaz+NrWZZpdvSIBpDY2JtQvGlhuXQ v0g4chRDu7w3W2EUgbIhpwu2ROMl34nm3bdrCnF+9B7SJlxZdQKgloWHz6+YlEsOBgXT +bffkXrb66FMDCDqwbUiVd0NDKhlqiC/8pBFWVesJxMbjhEoAEzWqeFJXVpaV76mJQ86 /RfQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from:dkim-signature :arc-authentication-results; bh=5wBbjVJwqM05Lp8+TCGcT3uruyUV4wmSVPT/Ocp9DRM=; b=yYJs25MkyvIdbYiV4EFpjtVNyCOV4ncIwJY+qfKUOf8Dl/y7FXAjdVuLDjEmuLi4pP 6VlUIO2Ey8xbfB+RvY06xyj91KXX6OsGcGDlZDausFGfHRhX7I/5dNalX1gtaSMt8in9 gVmf9fDpjREBlaje3H+aPR/VsKNUJMT2N7agy3l7VG/g/h3ysghbfLhQ29wPWNg0yvie 6SjhxlGhqPksAflCNcvnpXY5FpcGgQU9DXTHSXO8WeF/uzLKE2kOkbFbBpti88S4ESK8 hert4Om5Z1Sa6VhRdvEGy9oZoiQBAOhCYJE92edMNmqzKRB6L0iD+pGOOcraz82gc2s+ usuA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D1TEAv2y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id m19-v6si20542640pff.303.2018.05.24.03.08.13; Thu, 24 May 2018 03:08:27 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=D1TEAv2y; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1031580AbeEXKHb (ORCPT + 99 others); Thu, 24 May 2018 06:07:31 -0400 Received: from mail.kernel.org ([198.145.29.99]:55456 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1031391AbeEXKG0 (ORCPT ); Thu, 24 May 2018 06:06:26 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id 5EB7A20893; Thu, 24 May 2018 10:06:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527156385; bh=gLR7TNGNK4MzDdwn3ryel6PsUEbRQAS2D48bYle/k1A=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=D1TEAv2yFxWlvrNu2J1LRnkPSh0vTrP3R+szdbQodLBLDxaNrPT9hYj//CWdmNvH7 NCuWbYeXewUewqZOryve08R6apMYkykZmLblNuLA1kgvh2uPsHUbUSrmymqcZnDowb GrYqXzMwMG+b31QcEu2MYeleiFdM02xycqZnXEkg= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hans Verkuil , Mauro Carvalho Chehab , Sasha Levin Subject: [PATCH 4.16 143/161] media: vivid: fix incorrect capabilities for radio Date: Thu, 24 May 2018 11:39:28 +0200 Message-Id: <20180524093035.512570484@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180524093018.331893860@linuxfoundation.org> References: <20180524093018.331893860@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.16-stable review patch. If anyone has any objections, please let me know. ------------------ From: Hans Verkuil [ Upstream commit 65243386f41d38460bfd4375d231a7c0346d0401 ] The vivid driver has two custom controls that change the behavior of RDS. Depending on the control setting the V4L2_CAP_READWRITE capability is toggled. However, after an earlier commit the capability was no longer set correctly. This is now fixed. Fixes: 9765a32cd8 ("vivid: set device_caps in video_device") Signed-off-by: Hans Verkuil Signed-off-by: Mauro Carvalho Chehab Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/media/platform/vivid/vivid-ctrls.c | 2 ++ 1 file changed, 2 insertions(+) --- a/drivers/media/platform/vivid/vivid-ctrls.c +++ b/drivers/media/platform/vivid/vivid-ctrls.c @@ -1208,6 +1208,7 @@ static int vivid_radio_rx_s_ctrl(struct v4l2_ctrl_activate(dev->radio_rx_rds_ta, dev->radio_rx_rds_controls); v4l2_ctrl_activate(dev->radio_rx_rds_tp, dev->radio_rx_rds_controls); v4l2_ctrl_activate(dev->radio_rx_rds_ms, dev->radio_rx_rds_controls); + dev->radio_rx_dev.device_caps = dev->radio_rx_caps; break; case V4L2_CID_RDS_RECEPTION: dev->radio_rx_rds_enabled = ctrl->val; @@ -1282,6 +1283,7 @@ static int vivid_radio_tx_s_ctrl(struct dev->radio_tx_caps &= ~V4L2_CAP_READWRITE; if (!dev->radio_tx_rds_controls) dev->radio_tx_caps |= V4L2_CAP_READWRITE; + dev->radio_tx_dev.device_caps = dev->radio_tx_caps; break; case V4L2_CID_RDS_TX_PTY: if (dev->radio_rx_rds_controls)