From nobody Sun Dec 22 02:11:38 2024 Received: from out-180.mta1.migadu.com (out-180.mta1.migadu.com [95.215.58.180]) (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 E48A23F9D2 for ; Sat, 21 Dec 2024 09:52:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=95.215.58.180 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734774741; cv=none; b=X46ds249uEAv+PxeEWjpQcmrQJTKRQaM4C8S9PjmSLAdUqeM1pk4RxzXtr8ZiLiik8x6N/rN0jl56UH4e/UPZlvNykuqwZWBlN+GY7urN49552CqNjiBIv4rQiLGKvXafCgXlsKh5GnVCZNZTIh5J6YiqoHc5yyi0WyBKWk1bD4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1734774741; c=relaxed/simple; bh=bBQGMjtmehLhiHYnuPhaI6TAnsR36mqxUXDSdnaB/O8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IDir8Xgto043azWKXVuGplXKy98ND3fBcioDv/Z+gq2bZmkIi8QPBJi4Rm8nWFE0A7eC9iThETFJlvVY6TEYWuurokG9PsgAHiO/vnVOJFlhk7z+l/3C8Ufm+0AGHcRpckN6TqNsV68fPpP92EE9By7pZGjG9BFF3oiYwRaFpqo= 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=G+aImdx5; arc=none smtp.client-ip=95.215.58.180 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="G+aImdx5" 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=1734774738; 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=7OlUS5D46h7r/4zsY2+HDH2lSpd8R101wqbvEQXcPGM=; b=G+aImdx5CI0/ka/LhCGBW1QaHRoVYXUhfCdzM1T42LvN1zDb7XmZ+J8JC3md2rUa5w8yHK v3dd9qAWX2vUaPi3R5Q8TwmsyEP9j9p+2s+Z+IdeKEb3azijoe/dzZwyDws8E7DKfgmq1J L1XcLpzz9o0Fbv6Ai0Wj+u4eKqa2g+k= From: Thorsten Blum To: Jaroslav Kysela , Takashi Iwai Cc: Thorsten Blum , linux-parisc@vger.kernel.org, linux-sound@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] ALSA: ad1889: Use str_enabled_disabled() helper function Date: Sat, 21 Dec 2024 10:52:08 +0100 Message-ID: <20241221095210.5473-1-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. Signed-off-by: Thorsten Blum --- sound/pci/ad1889.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sound/pci/ad1889.c b/sound/pci/ad1889.c index 50e30704bf6f..9ed778b6b03c 100644 --- a/sound/pci/ad1889.c +++ b/sound/pci/ad1889.c @@ -626,7 +626,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, stru= ct snd_info_buffer *buffe =20 reg =3D ad1889_readw(chip, AD_DS_WSMC); snd_iprintf(buffer, "Wave output: %s\n", - (reg & AD_DS_WSMC_WAEN) ? "enabled" : "disabled"); + str_enabled_disabled(reg & AD_DS_WSMC_WAEN)); snd_iprintf(buffer, "Wave Channels: %s\n", (reg & AD_DS_WSMC_WAST) ? "stereo" : "mono"); snd_iprintf(buffer, "Wave Quality: %d-bit linear\n", @@ -642,7 +642,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, stru= ct snd_info_buffer *buffe =09 =09 snd_iprintf(buffer, "Synthesis output: %s\n", - reg & AD_DS_WSMC_SYEN ? "enabled" : "disabled"); + str_enabled_disabled(reg & AD_DS_WSMC_SYEN)); =09 /* SYRQ is at offset 4 */ tmp =3D (reg & AD_DS_WSMC_SYRQ) ? @@ -654,7 +654,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, stru= ct snd_info_buffer *buffe =20 reg =3D ad1889_readw(chip, AD_DS_RAMC); snd_iprintf(buffer, "ADC input: %s\n", - (reg & AD_DS_RAMC_ADEN) ? "enabled" : "disabled"); + str_enabled_disabled(reg & AD_DS_RAMC_ADEN)); snd_iprintf(buffer, "ADC Channels: %s\n", (reg & AD_DS_RAMC_ADST) ? "stereo" : "mono"); snd_iprintf(buffer, "ADC Quality: %d-bit linear\n", @@ -669,7 +669,7 @@ snd_ad1889_proc_read(struct snd_info_entry *entry, stru= ct snd_info_buffer *buffe (reg & AD_DS_RAMC_ADST) ? "stereo" : "mono"); =09 snd_iprintf(buffer, "Resampler input: %s\n", - reg & AD_DS_RAMC_REEN ? "enabled" : "disabled"); + str_enabled_disabled(reg & AD_DS_RAMC_REEN)); =09 /* RERQ is at offset 12 */ tmp =3D (reg & AD_DS_RAMC_RERQ) ? --=20 2.47.1