Skip to content

Commit eb335a4

Browse files
David Henningssontiwai
authored andcommitted
ALSA: HDA: Fix naming of input jacks for IDT parser
The Sigmatel/IDT parser should have the same naming convention for input jacks as the other codecs have. BugLink: http://bugs.launchpad.net/bugs/859704 Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
1 parent 14bc52b commit eb335a4

1 file changed

Lines changed: 3 additions & 11 deletions

File tree

‎sound/pci/hda/patch_sigmatel.c‎

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -4130,22 +4130,14 @@ static int stac92xx_add_jack(struct hda_codec *codec,
41304130
#ifdef CONFIG_SND_HDA_INPUT_JACK
41314131
int def_conf = snd_hda_codec_get_pincfg(codec, nid);
41324132
int connectivity = get_defcfg_connect(def_conf);
4133-
char name[32];
4134-
int err;
41354133

41364134
if (connectivity && connectivity != AC_JACK_PORT_FIXED)
41374135
return 0;
41384136

4139-
snprintf(name, sizeof(name), "%s at %s %s Jack",
4140-
snd_hda_get_jack_type(def_conf),
4141-
snd_hda_get_jack_connectivity(def_conf),
4142-
snd_hda_get_jack_location(def_conf));
4143-
4144-
err = snd_hda_input_jack_add(codec, nid, type, name);
4145-
if (err < 0)
4146-
return err;
4147-
#endif /* CONFIG_SND_HDA_INPUT_JACK */
4137+
return snd_hda_input_jack_add(codec, nid, type, NULL);
4138+
#else
41484139
return 0;
4140+
#endif /* CONFIG_SND_HDA_INPUT_JACK */
41494141
}
41504142

41514143
static int stac_add_event(struct sigmatel_spec *spec, hda_nid_t nid,

0 commit comments

Comments
 (0)