Skip to content

Commit 5db4d34

Browse files
David Henningssontiwai
authored andcommitted
ALSA: hda - Set current_headset_type to ALC_HEADSET_TYPE_ENUM (janitorial)
current_headset_type should be of the HEADSET_TYPE enum, not the HEADSET_MODE enum. Since ALC_HEADSET_TYPE_UNKNOWN and ALC_HEADSET_MODE_UNKNOWN are both 0, this patch is just janitorial. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent d08c5ef commit 5db4d34

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/pci/hda/patch_realtek.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3414,7 +3414,7 @@ static void alc_update_headset_mode_hook(struct hda_codec *codec,
34143414
static void alc_update_headset_jack_cb(struct hda_codec *codec, struct hda_jack_tbl *jack)
34153415
{
34163416
struct alc_spec *spec = codec->spec;
3417-
spec->current_headset_type = ALC_HEADSET_MODE_UNKNOWN;
3417+
spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN;
34183418
snd_hda_gen_hp_automute(codec, jack);
34193419
}
34203420

0 commit comments

Comments
 (0)