* [PATCH 0/2] ALSA: trivial cleanups with str_yes_no()
@ 2025-01-09 16:23 Takashi Iwai
2025-01-09 16:23 ` [PATCH 1/2] ALSA: hda/realtek: Simplify " Takashi Iwai
2025-01-09 16:23 ` [PATCH 2/2] ALSA: rme9652: " Takashi Iwai
0 siblings, 2 replies; 3+ messages in thread
From: Takashi Iwai @ 2025-01-09 16:23 UTC (permalink / raw)
To: linux-sound; +Cc: Takashi Iwai
Another series of trivial cleanups with the standard helper function.
Takashi
===
Takashi Iwai (2):
ALSA: hda/realtek: Simplify with str_yes_no()
ALSA: rme9652: Simplify with str_yes_no()
sound/pci/hda/patch_realtek.c | 2 +-
sound/pci/rme9652/rme9652.c | 5 ++---
2 files changed, 3 insertions(+), 4 deletions(-)
--
2.43.0
^ permalink raw reply [flat|nested] 3+ messages in thread
* [PATCH 1/2] ALSA: hda/realtek: Simplify with str_yes_no()
2025-01-09 16:23 [PATCH 0/2] ALSA: trivial cleanups with str_yes_no() Takashi Iwai
@ 2025-01-09 16:23 ` Takashi Iwai
2025-01-09 16:23 ` [PATCH 2/2] ALSA: rme9652: " Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2025-01-09 16:23 UTC (permalink / raw)
To: linux-sound; +Cc: Takashi Iwai
Use the standard helper for simplifying the code.
Merely cleanup, no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/pci/hda/patch_realtek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 1aba06062433..f578b9893a8f 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5900,7 +5900,7 @@ static void alc_determine_headset_type(struct hda_codec *codec)
}
codec_dbg(codec, "Headset jack detected iPhone-style headset: %s\n",
- is_ctia ? "yes" : "no");
+ str_yes_no(is_ctia));
spec->current_headset_type = is_ctia ? ALC_HEADSET_TYPE_CTIA : ALC_HEADSET_TYPE_OMTP;
}
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [PATCH 2/2] ALSA: rme9652: Simplify with str_yes_no()
2025-01-09 16:23 [PATCH 0/2] ALSA: trivial cleanups with str_yes_no() Takashi Iwai
2025-01-09 16:23 ` [PATCH 1/2] ALSA: hda/realtek: Simplify " Takashi Iwai
@ 2025-01-09 16:23 ` Takashi Iwai
1 sibling, 0 replies; 3+ messages in thread
From: Takashi Iwai @ 2025-01-09 16:23 UTC (permalink / raw)
To: linux-sound; +Cc: Takashi Iwai
Use the standard helper for simplifying the code.
Merely cleanup, no behavior change.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
---
sound/pci/rme9652/rme9652.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/sound/pci/rme9652/rme9652.c b/sound/pci/rme9652/rme9652.c
index d066c70ae160..5b8dd7b0a02c 100644
--- a/sound/pci/rme9652/rme9652.c
+++ b/sound/pci/rme9652/rme9652.c
@@ -1561,8 +1561,7 @@ snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buff
x, (unsigned long) rme9652->period_bytes);
snd_iprintf(buffer, "Hardware pointer (frames): %ld\n",
rme9652_hw_pointer(rme9652));
- snd_iprintf(buffer, "Passthru: %s\n",
- rme9652->passthru ? "yes" : "no");
+ snd_iprintf(buffer, "Passthru: %s\n", str_yes_no(rme9652->passthru));
if ((rme9652->control_register & (RME9652_Master | RME9652_wsel)) == 0) {
snd_iprintf(buffer, "Clock mode: autosync\n");
@@ -1685,7 +1684,7 @@ snd_rme9652_proc_read(struct snd_info_entry *entry, struct snd_info_buffer *buff
snd_iprintf(buffer, "\n");
snd_iprintf(buffer, "Timecode signal: %s\n",
- (status & RME9652_tc_valid) ? "yes" : "no");
+ str_yes_no(status & RME9652_tc_valid));
/* thru modes */
--
2.43.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2025-01-09 16:23 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-01-09 16:23 [PATCH 0/2] ALSA: trivial cleanups with str_yes_no() Takashi Iwai
2025-01-09 16:23 ` [PATCH 1/2] ALSA: hda/realtek: Simplify " Takashi Iwai
2025-01-09 16:23 ` [PATCH 2/2] ALSA: rme9652: " Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox