]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ALSA: hda/realtek: Simplify with str_yes_no()
authorTakashi Iwai <tiwai@suse.de>
Thu, 9 Jan 2025 16:23:16 +0000 (17:23 +0100)
committerTakashi Iwai <tiwai@suse.de>
Thu, 9 Jan 2025 16:24:28 +0000 (17:24 +0100)
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 <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 1aba060624337f73a5ed4aab95c33eee9f2c1db7..f578b9893a8f675a018811b16492260bdb7fc6ec 100644 (file)
@@ -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;
 }