Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353229
b: refs/heads/master
c: 4e637c6
h: refs/heads/master
i:
  353227: 9ee6630
v: v3
  • Loading branch information
Vitaliy Kulikov authored and Takashi Iwai committed Feb 1, 2013
1 parent 933e74e commit b493893
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: aa53f98674a5c21a3098018be2c8ac0984273d8f
refs/heads/master: 4e637c6e09fde6c1984a820621b5a77fad1acd34
39 changes: 39 additions & 0 deletions trunk/sound/pci/hda/patch_sigmatel.c
Original file line number Diff line number Diff line change
Expand Up @@ -3965,6 +3965,44 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
return 0;
}

static const hda_nid_t stac92hd95_pwr_nids[] = {
0x0a, 0x0b, 0x0c, 0x0d
};

static int patch_stac92hd95(struct hda_codec *codec)
{
struct sigmatel_spec *spec;
int err;

err = alloc_stac_spec(codec);
if (err < 0)
return err;

codec->epss = 0; /* longer delay needed for D3 */

spec = codec->spec;
spec->linear_tone_beep = 0;
spec->gen.own_eapd_ctl = 1;
spec->gen.power_down_unused = 1;

spec->digbeep_nid = 0x19;
spec->pwr_nids = stac92hd95_pwr_nids;
spec->num_pwrs = ARRAY_SIZE(stac92hd95_pwr_nids);
spec->default_polarity = -1; /* no default cfg */

codec->patch_ops = stac_patch_ops;

err = stac_parse_auto_config(codec);
if (err < 0) {
stac_free(codec);
return err;
}

codec->proc_widget_hook = stac92hd_proc_hook;

return 0;
}

static int patch_stac92hd71bxx(struct hda_codec *codec)
{
struct sigmatel_spec *spec;
Expand Down Expand Up @@ -4337,6 +4375,7 @@ static const struct hda_codec_preset snd_hda_preset_sigmatel[] = {
{ .id = 0x111d7674, .name = "92HD73D1X5", .patch = patch_stac92hd73xx },
{ .id = 0x111d7675, .name = "92HD73C1X5", .patch = patch_stac92hd73xx },
{ .id = 0x111d7676, .name = "92HD73E1X5", .patch = patch_stac92hd73xx },
{ .id = 0x111d7695, .name = "92HD95", .patch = patch_stac92hd95 },
{ .id = 0x111d76b0, .name = "92HD71B8X", .patch = patch_stac92hd71bxx },
{ .id = 0x111d76b1, .name = "92HD71B8X", .patch = patch_stac92hd71bxx },
{ .id = 0x111d76b2, .name = "92HD71B7X", .patch = patch_stac92hd71bxx },
Expand Down

0 comments on commit b493893

Please sign in to comment.