Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2708395pxj; Mon, 31 May 2021 08:45:57 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxhJhE7J4QW569//8Z0WtSaHBXDl03pNci8rGl+A1+3Yj0HCTWw8VvWTtkeeY/vMOlVykI+ X-Received: by 2002:a17:906:c417:: with SMTP id u23mr353437ejz.343.1622475957696; Mon, 31 May 2021 08:45:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622475957; cv=none; d=google.com; s=arc-20160816; b=qZs11/Z7WGAqcFUaenG3lZbaS8frLciDR9yH8LwP2txI2TtMLZWBVlT7/h09jAQF+o C6FAT/X5j1WhATRoQ//aRFf+K1wqlXcDOD4ENCkBwnBR/Z8WEiP0hKuymHwc2JqJ9yqy +TP3945WwmrNJPO7FzFT5q4EIa/CX8vaTTc8Q1V8P8YNiUJPid9fh21B+z8uVJogRNGH jKki+vlCcV9UiuSZSXIjud0h4Ys6MASktaMe+bP2x+c6gmEdUfgarV6VCYOwLsRj/3Lx 2SJI54oCtDD1NrWlYy2lBNyry5t2wLkmHKwJiHMo5KdWVz0PrnVCSKVOKS+E9kSCjqSL VMIA== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=OvNzKU3+DSZctbUislsog3g/VT0XDjbNd/o6ZEGihIo=; b=A2cR0cVpSAn5tTDsxYpVXH4rgpmh/gozQS8ekXsGdWNgX9OMcL+kwvt5jFEQvzgYFY d6oVIB9e7rrQalB9nNeE/KXT4WiXJ6TEaamivOEZVsGwgpZ66e325b0Ehd8h0tQpKFM6 /Yv7ZIms52augeBRVeimad+TV6gGyIXXTtQDFjz0pthtFRWpibV7ZPD1NXKFV/PE6X+b aXJhktzmMM5qKrf4eO1kKuYq80DrUCfunqNz1ASBgOnWQwiYUf0Tdx4e2i4VxynaFjQW SubZFhIXiyUky+1/YCOonMlgW5b1m68Xxug8DeiSPuZ0sb1FCTyOF/9bPvY76aQzXQ93 zriQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NP9fnwon; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cd8si203672ejb.132.2021.05.31.08.45.35; Mon, 31 May 2021 08:45:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=NP9fnwon; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230032AbhEaPnn (ORCPT + 99 others); Mon, 31 May 2021 11:43:43 -0400 Received: from mail.kernel.org ([198.145.29.99]:47640 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233435AbhEaOZC (ORCPT ); Mon, 31 May 2021 10:25:02 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 2DABA61625; Mon, 31 May 2021 13:46:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468777; bh=1IYDyVXakbWlqPPxz3zhjImOYU2dRk9Db7ijwLOxpIU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=NP9fnwonYYrycWtgEnenBFoeHqcK3tVIP579c2Q8ieAAdGYDmFMTXLNcqFahAegjV SX6hJCTBw89osK6X6YRBw1jiXxu7S6GWalCTcg8q6MUX1ZdRWgwH48XLjm5Tz+YyUG uijO8h7kPV2QMlokw3TVKAWlIWvjWxQeiCxznjm0= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Aditya Pakki , Takashi Iwai , Sasha Levin Subject: [PATCH 5.4 089/177] Revert "ALSA: sb: fix a missing check of snd_ctl_add" Date: Mon, 31 May 2021 15:14:06 +0200 Message-Id: <20210531130650.969801268@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130647.887605866@linuxfoundation.org> References: <20210531130647.887605866@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Greg Kroah-Hartman [ Upstream commit 4b059ce1f4b368208c2310925f49be77f15e527b ] This reverts commit beae77170c60aa786f3e4599c18ead2854d8694d. Because of recent interactions with developers from @umn.edu, all commits from them have been recently re-reviewed to ensure if they were correct or not. Upon review, this commit was found to be incorrect for the reasons below, so it must be reverted. It is safe to ignore this error as the mixer element is optional, and the driver is very legacy. Cc: Aditya Pakki Reviewed-by: Takashi Iwai Link: https://lore.kernel.org/r/20210503115736.2104747-8-gregkh@linuxfoundation.org Signed-off-by: Greg Kroah-Hartman Signed-off-by: Sasha Levin --- sound/isa/sb/sb16_main.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/sound/isa/sb/sb16_main.c b/sound/isa/sb/sb16_main.c index 0768bbf8fd71..679f9f48370f 100644 --- a/sound/isa/sb/sb16_main.c +++ b/sound/isa/sb/sb16_main.c @@ -864,14 +864,10 @@ int snd_sb16dsp_pcm(struct snd_sb *chip, int device) snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_PLAYBACK, &snd_sb16_playback_ops); snd_pcm_set_ops(pcm, SNDRV_PCM_STREAM_CAPTURE, &snd_sb16_capture_ops); - if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) { - err = snd_ctl_add(card, snd_ctl_new1( - &snd_sb16_dma_control, chip)); - if (err) - return err; - } else { + if (chip->dma16 >= 0 && chip->dma8 != chip->dma16) + snd_ctl_add(card, snd_ctl_new1(&snd_sb16_dma_control, chip)); + else pcm->info_flags = SNDRV_PCM_INFO_HALF_DUPLEX; - } snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev, -- 2.30.2