Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353232
b: refs/heads/master
c: f672f65
h: refs/heads/master
v: v3
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Feb 5, 2013
1 parent ed1da83 commit e3e24f7
Show file tree
Hide file tree
Showing 2 changed files with 14 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: 2ad779b7329d6894a80df94e693e72eaa0d56790
refs/heads/master: f672f65a1c15b04e09d25701a8b5be47bad9376a
13 changes: 13 additions & 0 deletions trunk/sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -661,6 +661,18 @@ static int via_init(struct hda_codec *codec)
return 0;
}

static int vt1708_build_controls(struct hda_codec *codec)
{
/* In order not to create "Phantom Jack" controls,
temporary enable jackpoll */
int err;
int old_interval = codec->jackpoll_interval;
codec->jackpoll_interval = msecs_to_jiffies(100);
err = via_build_controls(codec);
codec->jackpoll_interval = old_interval;
return err;
}

static int vt1708_build_pcms(struct hda_codec *codec)
{
struct via_spec *spec = codec->spec;
Expand Down Expand Up @@ -723,6 +735,7 @@ static int patch_vt1708(struct hda_codec *codec)
spec->init_verbs[spec->num_iverbs++] = vt1708_init_verbs;

codec->patch_ops = via_patch_ops;
codec->patch_ops.build_controls = vt1708_build_controls;
codec->patch_ops.build_pcms = vt1708_build_pcms;

/* clear jackpoll_interval again; it's set dynamically */
Expand Down

0 comments on commit e3e24f7

Please sign in to comment.