ALSA: hda - Set current_headset_type to ALC_HEADSET_TYPE_ENUM (janitorial)
Linux-MTD Mailing List
linux-mtd at lists.infradead.org
Fri Nov 22 17:59:12 EST 2013
Gitweb: http://git.infradead.org/?p=mtd-2.6.git;a=commit;h=5db4d34b54c7726253926223580c516f244f9c31
Commit: 5db4d34b54c7726253926223580c516f244f9c31
Parent: d08c5ef2a039393eaf2ab2152db5f07790fa0f40
Author: David Henningsson <david.henningsson at canonical.com>
AuthorDate: Fri Nov 22 12:17:06 2013 +0100
Committer: Takashi Iwai <tiwai at suse.de>
CommitDate: Fri Nov 22 12:58:01 2013 +0100
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 at canonical.com>
Signed-off-by: Takashi Iwai <tiwai at suse.de>
---
sound/pci/hda/patch_realtek.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 6d8d9b3..5e42059 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -3414,7 +3414,7 @@ static void alc_update_headset_mode_hook(struct hda_codec *codec,
static void alc_update_headset_jack_cb(struct hda_codec *codec, struct hda_jack_tbl *jack)
{
struct alc_spec *spec = codec->spec;
- spec->current_headset_type = ALC_HEADSET_MODE_UNKNOWN;
+ spec->current_headset_type = ALC_HEADSET_TYPE_UNKNOWN;
snd_hda_gen_hp_automute(codec, jack);
}
More information about the linux-mtd-cvs
mailing list