Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353032
b: refs/heads/master
c: 2eab694
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent 9c4b5aa commit 5b01cb3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 27 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: 52a8efab10637ae5f58123be3ab3b9cb6a9ff2b0
refs/heads/master: 2eab694a6c85499710d050f880c6f8ae705e7a19
32 changes: 6 additions & 26 deletions trunk/sound/pci/hda/patch_realtek.c
Original file line number Diff line number Diff line change
Expand Up @@ -653,14 +653,6 @@ static void alc880_unsol_event(struct hda_codec *codec, unsigned int res)
snd_hda_jack_unsol_event(codec, res >> 2);
}

/* call init functions of standard auto-mute helpers */
static void alc_inithook(struct hda_codec *codec)
{
alc_hp_automute(codec, NULL);
alc_line_automute(codec, NULL);
alc_mic_automute(codec, NULL);
}

/* additional initialization for ALC888 variants */
static void alc888_coef_init(struct hda_codec *codec)
{
Expand Down Expand Up @@ -1619,7 +1611,7 @@ static const struct snd_kcontrol_new alc_beep_mixer[] = {
};
#endif

static int __alc_build_controls(struct hda_codec *codec)
static int alc_build_controls(struct hda_codec *codec)
{
struct alc_spec *spec = codec->spec;
int i, err;
Expand Down Expand Up @@ -1693,13 +1685,6 @@ static int __alc_build_controls(struct hda_codec *codec)

alc_free_kctls(codec); /* no longer needed */

return 0;
}

static int alc_build_jacks(struct hda_codec *codec)
{
struct alc_spec *spec = codec->spec;

if (spec->shared_mic_hp) {
int err;
int nid = spec->autocfg.inputs[1].pin;
Expand All @@ -1711,18 +1696,10 @@ static int alc_build_jacks(struct hda_codec *codec)
return err;
}

return snd_hda_jack_add_kctls(codec, &spec->autocfg);
}

static int alc_build_controls(struct hda_codec *codec)
{
int err = __alc_build_controls(codec);
err = snd_hda_jack_add_kctls(codec, &spec->autocfg);
if (err < 0)
return err;

err = alc_build_jacks(codec);
if (err < 0)
return err;
alc_apply_fixup(codec, ALC_FIXUP_ACT_BUILD);
return 0;
}
Expand Down Expand Up @@ -4244,7 +4221,10 @@ static void alc_auto_init_std(struct hda_codec *codec)
alc_auto_init_analog_input(codec);
alc_auto_init_input_src(codec);
alc_auto_init_digital(codec);
alc_inithook(codec);
/* call init functions of standard auto-mute helpers */
alc_hp_automute(codec, NULL);
alc_line_automute(codec, NULL);
alc_mic_automute(codec, NULL);
}

/*
Expand Down

0 comments on commit 5b01cb3

Please sign in to comment.