From: Takashi Iwai Date: Thu, 9 Jan 2025 16:23:16 +0000 (+0100) Subject: ALSA: hda/realtek: Simplify with str_yes_no() X-Git-Tag: v6.14-rc1~24^2~38 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=550033fd0373986f18f70e3404c0005fd2cdf7cb;p=linux-2.6-block.git ALSA: hda/realtek: Simplify with str_yes_no() Use the standard helper for simplifying the code. Merely cleanup, no behavior change. Link: https://patch.msgid.link/20250109162318.9172-2-tiwai@suse.de Signed-off-by: Takashi Iwai --- 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; }