Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1998973imu; Fri, 14 Dec 2018 04:16:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/VIYjfS76u3h2dE53l9xHEbXQW2Mw5tw5e6MoszkKm/ci3xIcRjoFYh9Rvk/UjyDIwWYdJf X-Received: by 2002:a63:82c6:: with SMTP id w189mr2557437pgd.344.1544789814496; Fri, 14 Dec 2018 04:16:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544789814; cv=none; d=google.com; s=arc-20160816; b=clCYSp/7VAZe7Z8dU6C8UiDtuPFdgn4jqpcQwln9Yu96zuPBJDxc9IrZ7ywltGBGQ3 3P/p7HrPbH6Ykq3xsMdHY/AuyxvTcQbUHMzu2iHpMB2Zn90v1Zfi9OS+LFbA9GT+pEFE FZkgeDXpwnaXNMHXIOYySaHF9TTHm0nPTCRJDm1WO6jIpLZ9C+e6t1jciCPUQouos8f8 XV+y50ODdWwghEUXXElNFnHkJQOdg4XpvagP1HLjN610HSbYcUAG7Tob4ISLh7zvQJnv YZyaJj8/rVkEBX4eUyAZGQEQelngrY5/Z1Vx0/2ZcuJ2/Z5cqvLXnw631ihii4tDtaVV 3+TQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=DvMntrf6N9H+0NowOlNRPy1fvvLSjc2cdY2TIyh5V6Y=; b=V9kRIvGH8mYQFZF92EBxucsoNionBGOqIF47Gau0PnF7JR07lBnnUFgTMeaeubfVPk lvldB8308LoFjj7QIUNuetN7P3DkoNl39kwS+eqQN0ban2rqoDFbl2zqPFyNoBLsvXT5 UM/tbt9RTL/cblObSjR8e/sQkrC+jOryDic+Z4lC0wNuMzORS83yQ3JZausxh3SwWrdK 21ydLNsmVots1/u3czLXzYESnvlrBhmgMHwmjWfcvfahosvLG/IGDbkQmRWQ4f6G9sys TMsZI50PxA55SFuQ66yAYI4EStCOFTBm2QTGQQUCWzuv1FBdiHpYqGGudPSVn47QBZyY DCMg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=rcTwvBcd; 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 b30si4207607pla.285.2018.12.14.04.16.37; Fri, 14 Dec 2018 04:16:54 -0800 (PST) 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=rcTwvBcd; 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 S1732626AbeLNMPq (ORCPT + 99 others); Fri, 14 Dec 2018 07:15:46 -0500 Received: from mail.kernel.org ([198.145.29.99]:35780 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732043AbeLNMPn (ORCPT ); Fri, 14 Dec 2018 07:15:43 -0500 Received: from localhost (5356596B.cm-6-7b.dynamic.ziggo.nl [83.86.89.107]) (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 BEA032133F; Fri, 14 Dec 2018 12:15:42 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1544789743; bh=XSoNMXDI00nbjS8+aaKsX0GcUkUigxHmadMPsrtLKF0=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rcTwvBcdipnOGh2NqYcaN652qXTApy4o2t6pJ0JGZiaaIFWoC33u94BeRrlsPJZL0 a8u18vm3KDZ3HNiUX1V6QP04IGMxm8dIq/X4eTHD1DTUP1Nc2Mm40mFmV8pdsE2/rj WBy7nT2Alt1T7aDte94CUnwsuL40pY7M3FdE8pos= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Takashi Sakamoto , Takashi Iwai , Ben Hutchings Subject: [PATCH 4.4 40/88] ALSA: pcm: remove SNDRV_PCM_IOCTL1_INFO internal command Date: Fri, 14 Dec 2018 13:00:14 +0100 Message-Id: <20181214115705.500826753@linuxfoundation.org> X-Mailer: git-send-email 2.20.0 In-Reply-To: <20181214115702.151309521@linuxfoundation.org> References: <20181214115702.151309521@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review X-Patchwork-Hint: ignore MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.4-stable review patch. If anyone has any objections, please let me know. ------------------ From: Takashi Sakamoto commit e11f0f90a626f93899687b1cc909ee37dd6c5809 upstream. Drivers can implement 'struct snd_pcm_ops.ioctl' to handle some requests from ALSA PCM core. These requests are internal purpose in kernel land. Usually common set of operations are used for it. SNDRV_PCM_IOCTL1_INFO is one of the requests. According to code comment, it has been obsoleted in the old days. We can see old releases in ftp.alsa-project.org. The command was firstly introduced in v0.5.0 release as SND_PCM_IOCTL1_INFO, to allow drivers to fill data of 'struct snd_pcm_channel_info' type. In v0.9.0 release, this was obsoleted by the other commands for ioctl(2) such as SNDRV_PCM_IOCTL_CHANNEL_INFO. This commit removes the long-abandoned command, bye. Signed-off-by: Takashi Sakamoto Signed-off-by: Takashi Iwai Signed-off-by: Ben Hutchings Signed-off-by: Greg Kroah-Hartman --- include/sound/pcm.h | 2 +- sound/core/pcm_lib.c | 2 -- sound/core/pcm_native.c | 6 +----- 3 files changed, 2 insertions(+), 8 deletions(-) --- a/include/sound/pcm.h +++ b/include/sound/pcm.h @@ -100,7 +100,7 @@ struct snd_pcm_ops { #endif #define SNDRV_PCM_IOCTL1_RESET 0 -#define SNDRV_PCM_IOCTL1_INFO 1 +/* 1 is absent slot. */ #define SNDRV_PCM_IOCTL1_CHANNEL_INFO 2 #define SNDRV_PCM_IOCTL1_GSTATE 3 #define SNDRV_PCM_IOCTL1_FIFO_SIZE 4 --- a/sound/core/pcm_lib.c +++ b/sound/core/pcm_lib.c @@ -1849,8 +1849,6 @@ int snd_pcm_lib_ioctl(struct snd_pcm_sub unsigned int cmd, void *arg) { switch (cmd) { - case SNDRV_PCM_IOCTL1_INFO: - return 0; case SNDRV_PCM_IOCTL1_RESET: return snd_pcm_lib_ioctl_reset(substream, arg); case SNDRV_PCM_IOCTL1_CHANNEL_INFO: --- a/sound/core/pcm_native.c +++ b/sound/core/pcm_native.c @@ -214,11 +214,7 @@ int snd_pcm_info(struct snd_pcm_substrea info->subdevices_avail = pstr->substream_count - pstr->substream_opened; strlcpy(info->subname, substream->name, sizeof(info->subname)); runtime = substream->runtime; - /* AB: FIXME!!! This is definitely nonsense */ - if (runtime) { - info->sync = runtime->sync; - substream->ops->ioctl(substream, SNDRV_PCM_IOCTL1_INFO, info); - } + return 0; }