From nobody Sat Feb 7 20:03:25 2026 Received: from out-175.mta0.migadu.com (out-175.mta0.migadu.com [91.218.175.175]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id AC897171658 for ; Thu, 9 Jan 2025 23:06:44 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=91.218.175.175 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736464008; cv=none; b=Vn4eNRrlXvP+ZYqbD3WzA7h6NB6iWYEKyf4eR/+Ds1ASv9+8OmiZ+Y+FNxiwdZtSCNZ+Mw56uTEZ3vp8ewgvHaBYiOQ6LzgEAwmMxgo/Sgs5HDqnFNRdiZlzJuVG3URcbP+fABqsxdVdIbOrE8Sc35uTtT9QukrHNmaCBnGu9vM= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736464008; c=relaxed/simple; bh=yZ8imY5hTitSY+f0LwW2ZPR9wiL4s25QWuraqtvi7wY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OdSf0Wf22/0otuJc2OYyfz9yPDvIQra24haFw+0NIpBaAYtYPBIy0y2rWf7MCQpcegm4525VGOqUyaEhrwKzhsA3er0DKQKL+dDUa2mbEJ1FtVe2bIczesskXqaMi4lppqkvbKOIQYSl+81w+sllYn6bW6arr3E50eULoNoRUIU= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev; spf=pass smtp.mailfrom=linux.dev; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b=YBv4Ar3v; arc=none smtp.client-ip=91.218.175.175 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=linux.dev Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=linux.dev Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linux.dev header.i=@linux.dev header.b="YBv4Ar3v" X-Report-Abuse: Please report any abuse attempt to abuse@migadu.com and include these headers. DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux.dev; s=key1; t=1736463997; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=Anr1wQLQLUGCQzZBFiC0JF9ftTGT6FFBBuQNEN6gAcg=; b=YBv4Ar3vg2GybfTp0H/Ab8YH31eloz67reniCgmB3Zn4S4Fyc88iuml6Pyy8ImmjKJfVe5 3zBdpKo6HRQseIoWu1NFbVfJcIO8CAWHgyzIPLmEMnNvlPyojhp5us59K8YV6DaupcKx4U DNiBfy5mw9j98ZQWpunVKn6eo5R2YAg= From: Thorsten Blum To: Jaroslav Kysela , Takashi Iwai Cc: Thorsten Blum , Christophe JAILLET , Takashi Iwai , linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: sb: Use str_enabled_disabled() helper in info_read() Date: Fri, 10 Jan 2025 00:05:19 +0100 Message-ID: <20250109230521.237162-2-thorsten.blum@linux.dev> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Migadu-Flow: FLOW_OUT Content-Type: text/plain; charset="utf-8" Remove hard-coded strings by using the str_enabled_disabled() helper function. Suggested-by: Christophe JAILLET Signed-off-by: Thorsten Blum --- sound/isa/sb/sb16_csp.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/sound/isa/sb/sb16_csp.c b/sound/isa/sb/sb16_csp.c index 071ba85f76bb..7034072c80d4 100644 --- a/sound/isa/sb/sb16_csp.c +++ b/sound/isa/sb/sb16_csp.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include @@ -1157,8 +1158,8 @@ static void info_read(struct snd_info_entry *entry, s= truct snd_info_buffer *buff ((p->acc_rates & SNDRV_SB_CSP_RATE_44100) ? "44100Hz" : "")); } if (p->mode =3D=3D SNDRV_SB_CSP_MODE_QSOUND) { - snd_iprintf(buffer, "QSound decoder %sabled\n", - p->q_enabled ? "en" : "dis"); + snd_iprintf(buffer, "QSound decoder %s\n", + str_enabled_disabled(p->q_enabled)); } else { snd_iprintf(buffer, "PCM format ID: 0x%x (%s/%s) [%s/%s] [%s/%s]\n", p->acc_format, --=20 2.47.1