Skip to content

Commit 73253f2

Browse files
oldherltiwai
authored andcommitted
ALSA: hda/conexant: fix some typos
Fix some typos in patch_conexant.c Signed-off-by: Oldherl Oh <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 368e466 commit 73253f2

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

sound/pci/hda/patch_conexant.c

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -166,18 +166,18 @@ static void cxt_init_gpio_led(struct hda_codec *codec)
166166

167167
static void cx_fixup_headset_recog(struct hda_codec *codec)
168168
{
169-
unsigned int mic_persent;
169+
unsigned int mic_present;
170170

171171
/* fix some headset type recognize fail issue, such as EDIFIER headset */
172-
/* set micbiasd output current comparator threshold from 66% to 55%. */
172+
/* set micbias output current comparator threshold from 66% to 55%. */
173173
snd_hda_codec_write(codec, 0x1c, 0, 0x320, 0x010);
174-
/* set OFF voltage for DFET from -1.2V to -0.8V, set headset micbias registor
174+
/* set OFF voltage for DFET from -1.2V to -0.8V, set headset micbias register
175175
* value adjustment trim from 2.2K ohms to 2.0K ohms.
176176
*/
177177
snd_hda_codec_write(codec, 0x1c, 0, 0x3b0, 0xe10);
178178
/* fix reboot headset type recognize fail issue */
179-
mic_persent = snd_hda_codec_read(codec, 0x19, 0, AC_VERB_GET_PIN_SENSE, 0x0);
180-
if (mic_persent & AC_PINSENSE_PRESENCE)
179+
mic_present = snd_hda_codec_read(codec, 0x19, 0, AC_VERB_GET_PIN_SENSE, 0x0);
180+
if (mic_present & AC_PINSENSE_PRESENCE)
181181
/* enable headset mic VREF */
182182
snd_hda_codec_write(codec, 0x19, 0, AC_VERB_SET_PIN_WIDGET_CONTROL, 0x24);
183183
else
@@ -249,9 +249,9 @@ static void cx_update_headset_mic_vref(struct hda_codec *codec, struct hda_jack_
249249
{
250250
unsigned int mic_present;
251251

252-
/* In cx8070 and sn6140, the node 16 can only be config to headphone or disabled,
253-
* the node 19 can only be config to microphone or disabled.
254-
* Check hp&mic tag to process headset pulgin&plugout.
252+
/* In cx8070 and sn6140, the node 16 can only be configured to headphone or disabled,
253+
* the node 19 can only be configured to microphone or disabled.
254+
* Check hp&mic tag to process headset plugin & plugout.
255255
*/
256256
mic_present = snd_hda_codec_read(codec, 0x19, 0, AC_VERB_GET_PIN_SENSE, 0x0);
257257
if (!(mic_present & AC_PINSENSE_PRESENCE)) /* mic plugout */

0 commit comments

Comments
 (0)