Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2739862pxj; Mon, 31 May 2021 09:32:15 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzsEN9v8mpLgCWGRtPFg8U8hYN6ydJQ2dXsEtsd/ukWrUe5ae/RRF1IDmdoCQya3Sr2mmx/ X-Received: by 2002:a17:906:b307:: with SMTP id n7mr6394556ejz.261.1622478735537; Mon, 31 May 2021 09:32:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622478735; cv=none; d=google.com; s=arc-20160816; b=Y/qqvLQNW0AAwtvgATp6AiggnIE100Foce3HWreZBGYuMYcinyP+QA42JkekSyPmQA RHYwmLnNwUIYOlbHf5aqx0FlBu9W2kpedWeNur7IZgB/lFpkPDepr+s/IUZzfR+EBKlw I3EK+unBhlbohm/RHbrULaGoMaI/Pdz6ExEuX2j5hUAb/hqcuSA2E+6k2IWORjYrQmgq UqkUBSfk3hSlrkEUOrcWTg/etgW5aHYiuVzR+bgzddcckZ3UKEIGaTgPXmhkeXWEeEsc T8XPYuWdPTkMH2riPBSzmizzWs1CxOFQ+/yvUmlMAFVyc1ROfdYkyNmC541dYQBqxU7A kfsw== 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=wbi68wRVCv20/+wL7fkVjvtxMbk0MOpOo8CFaxRXecw=; b=l8wmhQNc6Mu05jKZ5FtJRHSDgVE2zGxqGDpN1VxlwhUvMa9fqVyAnYz7hb1g8InL7c QNuyKaiADdJGI2GqGg70uibzY5DeUmurazJhhy5ov2MdCod9qcAbpEwwW2NiPFdcDxzU YhkUm9DvapPEb3TD0BY4BHEalYzhpDWvWfzUEJB7/M5r6NIo2BHx6fu0gAPG9WJq89En vB5SJ6tdQ76KzH8r4mwVBfouUEsy+g9ZvSK2VHAJ3iEtN0Q2HyZeJAoPB5EvfqHZWrTQ GGciPKURTlvW9c5QHMfucHM4G9zDb8G0rzedrEI97FGJdfKYgqOmWqZ79mmhTBu9Zeum xMpw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=KlLVb+4H; 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 g18si13697468edt.478.2021.05.31.09.31.44; Mon, 31 May 2021 09:32:15 -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=KlLVb+4H; 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 S233845AbhEaQc2 (ORCPT + 99 others); Mon, 31 May 2021 12:32:28 -0400 Received: from mail.kernel.org ([198.145.29.99]:40312 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233062AbhEaOrK (ORCPT ); Mon, 31 May 2021 10:47:10 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id 0578061924; Mon, 31 May 2021 13:55:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622469352; bh=m8pxgX3jyd09QtonB3c6BbI83zDGq8E496xVR/zB8OQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=KlLVb+4Hs4eP3YFtsyf/E6SCSMzA7IB7ltaFG83Xim4CUAwxtcVxpMHxfeufsXVZf Bfbs0kiKKwNAcW9Dflw67JYWXevLwmzhJLbFZ5oPuK+Mxep34iIW4tjfhzv1jJLUS1 vmyjFDFSExEONYOe9XbVjVLhIY9hnm5EnW0OFHbQ= 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.12 164/296] Revert "ALSA: sb: fix a missing check of snd_ctl_add" Date: Mon, 31 May 2021 15:13:39 +0200 Message-Id: <20210531130709.368957885@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130703.762129381@linuxfoundation.org> References: <20210531130703.762129381@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 38dc1fde25f3..aa4870531023 100644 --- a/sound/isa/sb/sb16_main.c +++ b/sound/isa/sb/sb16_main.c @@ -846,14 +846,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_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV, card->dev, 64*1024, 128*1024); -- 2.30.2