projects
/
linux-2.6-block.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2be952e
)
ALSA: hda/realtek: Simplify with str_yes_no()
author
Takashi Iwai
<tiwai@suse.de>
Thu, 9 Jan 2025 16:23:16 +0000
(17:23 +0100)
committer
Takashi 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
patch
|
blob
|
blame
|
history
diff --git
a/sound/pci/hda/patch_realtek.c
b/sound/pci/hda/patch_realtek.c
index 1aba060624337f73a5ed4aab95c33eee9f2c1db7..f578b9893a8f675a018811b16492260bdb7fc6ec 100644
(file)
--- 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;
}