Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 270379
b: refs/heads/master
c: eb335a4
h: refs/heads/master
i:
  270377: ed29d83
  270375: 58c9e11
v: v3
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Oct 3, 2011
1 parent 1ecdd0c commit 5316c28
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 12 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 14bc52b8feaae6cbc88934399f418125ac176399
refs/heads/master: eb335a40ca050328f30db28ae4ce63cb07466d22
14 changes: 3 additions & 11 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -4130,22 +4130,14 @@ static int stac92xx_add_jack(struct hda_codec *codec,
#ifdef CONFIG_SND_HDA_INPUT_JACK
int def_conf = snd_hda_codec_get_pincfg(codec, nid);
int connectivity = get_defcfg_connect(def_conf);
char name[32];
int err;

if (connectivity && connectivity != AC_JACK_PORT_FIXED)
return 0;

snprintf(name, sizeof(name), "%s at %s %s Jack",
snd_hda_get_jack_type(def_conf),
snd_hda_get_jack_connectivity(def_conf),
snd_hda_get_jack_location(def_conf));

err = snd_hda_input_jack_add(codec, nid, type, name);
if (err < 0)
return err;
#endif /* CONFIG_SND_HDA_INPUT_JACK */
return snd_hda_input_jack_add(codec, nid, type, NULL);
#else
return 0;
#endif /* CONFIG_SND_HDA_INPUT_JACK */
}

static int stac_add_event(struct sigmatel_spec *spec, hda_nid_t nid,
Expand Down

0 comments on commit 5316c28

Please sign in to comment.