Received: by 2002:a05:6a10:a852:0:0:0:0 with SMTP id d18csp2694642pxy; Mon, 3 May 2021 06:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzVvymDxTCG88/85gaGAyOIc4V942MS1cYA5iV2SJW/Bv4Pg19PL8lKm62sBBnNjxMeY5+N X-Received: by 2002:a62:6544:0:b029:261:14cc:b11d with SMTP id z65-20020a6265440000b029026114ccb11dmr18951117pfb.12.1620047243530; Mon, 03 May 2021 06:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620047243; cv=none; d=google.com; s=arc-20160816; b=Vg0n0CjfomWk4ayh4YMLgdO/Qo400GhRF7pTtz4+QYvVrEw5wKTQaHrUigjXuPoXy5 xMpB9TXHn9u8LZcw62TpWHcR7Z2q9Iuvs8s891ZJfy+XXUfaFirO2U9Aq/TW7lg3nPHH kV+wfIqQCz4Z55Hgeq4r8VNoNtaccII7QakC/SrKHt5HrzQyIGlG1sH4z7Pe/RCRU0Br zRxEFz0sCDm8dORd6Nv/GhJN2/1VV/uLF0rmCu1t3WFTDuYmCWzF6jqOmmrQ71tfe245 5cZ29NXDDujnZdy60PfGgPnfeRk4gRDprB/gbWX5FqA+VKUINLIeDa+Ngf1ITSf9KTvI 1xHQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=khbdLVqRWOrSFiEdUJ4RDm+FFi4cVnceWSegdotapSY=; b=xgNd+B8wg9MUiXHpSdY+24tNsJBx9aW3+L9Bd+YH1xnzcrZQQvQiqJojS0mJJ2MHW+ pScvd4aGPZmqeuygDNPj5xd2eemXRQARJf0YdgqwIrHkAkhBZGsUjwCNBouXsYie3UHG 9/W+CXZpa+bzQDaLzsfnt3jnUGFbP24K1FmbjwPScoeGYJ/xhUw5ziS7m1P8maqejLhC whkogUBZLPm+8Q8uPsQh8eYJ17mh5PH1HDnOEYLvKoXjnF8YpKg4sVsgeYGzBqKHJo84 zYY25KOFFDBs6HH1SUL16+/0JRwOB3pgamdFnhrka0IGgF/Tg+9+Baz2QKWZLwdAUcbM 3uAA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b="o0+CpM/k"; 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 e14si16349001pgu.152.2021.05.03.06.07.08; Mon, 03 May 2021 06:07:23 -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="o0+CpM/k"; 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 S233959AbhECMB0 (ORCPT + 99 others); Mon, 3 May 2021 08:01:26 -0400 Received: from mail.kernel.org ([198.145.29.99]:35308 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233827AbhECMAw (ORCPT ); Mon, 3 May 2021 08:00:52 -0400 Received: by mail.kernel.org (Postfix) with ESMTPSA id C5D42613BE; Mon, 3 May 2021 11:59:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1620043198; bh=9y0NDlOtN8HhYl7DknTVcxCfuHQ/RLOXkD7r2Df4SHc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=o0+CpM/khDeQNt45M/T/jc5Km4uoW9hYEx7ZkF8OMm3n3fHxMNlm5edFQHorV6dLM RR+vZXkmuYwAmfNL5BADVGruAThXz5ValjeBqfDaNtqL5rgqCPgWyo45+il0FPxw/e DRf8rat4AXjU+w4BdZSzRB+UTVfx1VENGn8JApgQ= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , Aditya Pakki , Takashi Iwai Subject: [PATCH 07/69] Revert "ALSA: sb: fix a missing check of snd_ctl_add" Date: Mon, 3 May 2021 13:56:34 +0200 Message-Id: <20210503115736.2104747-8-gregkh@linuxfoundation.org> X-Mailer: git-send-email 2.31.1 In-Reply-To: <20210503115736.2104747-1-gregkh@linuxfoundation.org> References: <20210503115736.2104747-1-gregkh@linuxfoundation.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 Signed-off-by: Greg Kroah-Hartman --- 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.31.1