Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp1968616imm; Thu, 24 May 2018 03:46:11 -0700 (PDT) X-Google-Smtp-Source: AB8JxZpby6lHfJTc9K3VVyu2IEB3WMad3fdmYTWyDnBZOu/0i+dD/fJO0Wo3s4VC0NTW6uUGP8QT X-Received: by 2002:a63:4c8:: with SMTP id 191-v6mr782787pge.129.1527158771945; Thu, 24 May 2018 03:46:11 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1527158771; cv=none; d=google.com; s=arc-20160816; b=qH+MvMN3lWgzXF5Z0C+iEnR3JhVCYQbrjhLWOPWUobXUUipus4xN+rQJlv+6JUUEPp EUqA7vsQcQYkUUe6OJvZ6XxqXa0cj0P4vTde7NeWNuF9IqOMYLESVaYmcqGqm0fzmEmb dtt23VAl5TnpE1x0ytnVxyoXUxyTUSwy7QR/84HsgZyoe9xjJcCA2TEiIMerow4oZ13r EADCYzs4aqMyfVCuDwzbdjgu9K57pmNFKWLqvJMmrcARpjaSNOGa0VUabvK72kzCo+Nu D/av2Q6YOE5WZkLqkOBBcOxXDM/su1IXSX1TEFvYh46TjgF9r+Ak2HNkZEUoY4hKOaAu mt3A== 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=Rqm0Rzuc4tGk9zfdPKMiin4Y+1SAwt/1RmQkgqJ+Zow=; b=rvw71UAGdPDGXs+ipqJtyyCDkoyO0CYiWJ8/UwRISUUHhp9NYWQbe2hP3ipfoKEMUX mkkSQDZ0PHMRnUnMzaFiB3FIElXTwzFYoN6H6EK5FXdviDQIkEWKt8n76NChBSiLvsWV kyWL826gy/ViFV6ouJSAJq3dN0aYlES5exBZF1mZqMt4N6ILxY4qyvuo+G/XLAjjre2S eewKZ0QoHgOszNgpiAIHUIpvRWIblg+337SnBkhLMn08uBaIvMplkcrbB6IaZZNrhqUs BnfJuavl7B4t0W0z1SxO5LmoIXY21q4iKyZJnBxpXUM9kNqowNKGUxsu5VPsIuBYtX0I DJLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rR0+6ZaY; 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 m26-v6si21555668pfk.56.2018.05.24.03.45.57; Thu, 24 May 2018 03:46:11 -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=rR0+6ZaY; 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 S1032399AbeEXKpP (ORCPT + 99 others); Thu, 24 May 2018 06:45:15 -0400 Received: from mail.kernel.org ([198.145.29.99]:37674 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S968216AbeEXJ55 (ORCPT ); Thu, 24 May 2018 05:57:57 -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 3F84020893; Thu, 24 May 2018 09:57:56 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1527155876; bh=VALb6g9o/oaR7sYCbcv8dAjeLcoeVmBsSnMLcyQREV0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rR0+6ZaYpBD79koziLJKTq6//u6PA+YRwgJhtyWf/fv9hBie2xnXdHKG8tODXSe0A GaswsYuMHYFypYrMTQ6e2XRBh3EbE7J73Bd7K8MQlYBIuCCbuT9oPBFFRgU7V0gZp2 zsvVlkqyX5GgqJs9d1HX1Kn6FNSY4XYONNpuZfV4= 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.14 148/165] media: vivid: fix incorrect capabilities for radio Date: Thu, 24 May 2018 11:39:14 +0200 Message-Id: <20180524093628.060089703@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 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.14-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 @@ -1191,6 +1191,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; @@ -1265,6 +1266,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)