Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp2664702pxj; Mon, 31 May 2021 07:45:24 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwajiE39vw/CV+IUoY3SIGb3xG7gWrG5Y+lh7GpqOl2/3FJENuHAa0q/Fs7WuVr3Ty2lB4E X-Received: by 2002:a6b:e719:: with SMTP id b25mr16751616ioh.49.1622472324784; Mon, 31 May 2021 07:45:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1622472324; cv=none; d=google.com; s=arc-20160816; b=VGTqH2oIYYJshtSWP4jt50ry5pOJzVrs134k4xDtgpOXGLLPJtry9fJ3RyIhTFD+lO ZCxBClmGj7mLSsJTJS6H7FbYiIgPNVGye0VToOsGaC5Oj2IofBfu09iJfR8B4KjdyvJY 9Z50SOnd1kHI9ZAFfsamww7rST7gYgtu+3iCwHA81yocB6yckjK7tlqudeHoGVTkxgde 3DaYRHDS6dsft3Lbp+VaX8N6eIE+YKiByjfC5FWpdtwFQGy6v/yZ4fmBEkATXW/QuAeO qfHdKKQzHLUjhfweLQ9Q4CYhsJRXEATO2oKXwlkpcvVhAMFGHRJBlmu2i7pGlH9vOR7X 24Bw== 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=dMGHseRLvjxL+DZViVLbgEId+gVi8zDQ0+jud0yS89c+nxcUxTftYxI7cdHFM7Lm1P zghcY3C+swONTIEkvyB+L0cF0+vhAlj/fevdvY2hk8YtmqlhAQ7PqS5j8Xe+JwdQvXmz kGtl6NnJmSaY8UnIsAuuECF4TIrSQ3+B2BQPEgtsErvSSxT0vYAPvVcGKpRtLij1sHNk C1u0PLyD0Mfbc56beZVd98ZNhQZNyxOvvu09xbxydCYZLchPgQuNjjjKNtw42t3j9VHE vzmnO1F9xmG/5fkF9+nPhNzAcAiMepUBYO6tpl6CBElnktwseQ75XUhEd1h2l5V4deOY oZxg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=rvkLPNJg; 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 q8si14181755ior.12.2021.05.31.07.45.11; Mon, 31 May 2021 07:45:24 -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=rvkLPNJg; 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 S234002AbhEaOoT (ORCPT + 99 others); Mon, 31 May 2021 10:44:19 -0400 Received: from mail.kernel.org ([198.145.29.99]:59498 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232289AbhEaN66 (ORCPT ); Mon, 31 May 2021 09:58:58 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id F32CF61442; Mon, 31 May 2021 13:35:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1622468148; bh=m8pxgX3jyd09QtonB3c6BbI83zDGq8E496xVR/zB8OQ=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=rvkLPNJgQZvgXsTJYmS+ry4YJHMAUYswi7BrTyXdmXTRQnY0Xwz11v7vwqb076FFH tZHdPNMx7TbPOaCnvIKeMraz6BMO4Drw8uGRXmF3OBJJMFu93KpevBP1NxiTzczmsi xewuRzy2mGfPbh0vnIE2zNcH/tGhDmGf1nKYNNwc= 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.10 134/252] Revert "ALSA: sb: fix a missing check of snd_ctl_add" Date: Mon, 31 May 2021 15:13:19 +0200 Message-Id: <20210531130702.562849528@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210531130657.971257589@linuxfoundation.org> References: <20210531130657.971257589@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