Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 253770
b: refs/heads/master
c: ad24094
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Jun 17, 2011
1 parent c93df27 commit 5786150
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 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: cf6f1ff17f56c275424c5a341fc4d27ccbbfa71c
refs/heads/master: ad2409413d09fca763be1ac5161f2a9d82367903
11 changes: 7 additions & 4 deletions trunk/sound/pci/hda/patch_via.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,10 +832,13 @@ static int via_hp_build(struct hda_codec *codec)
knew->subdevice = HDA_SUBDEV_NID_FLAG | nid;
knew->private_value = nid;

knew = via_clone_control(spec, &via_hp_mixer[1]);
if (knew == NULL)
return -ENOMEM;
knew->subdevice = side_mute_channel(spec);
nid = side_mute_channel(spec);
if (nid) {
knew = via_clone_control(spec, &via_hp_mixer[1]);
if (knew == NULL)
return -ENOMEM;
knew->subdevice = nid;
}

return 0;
}
Expand Down

0 comments on commit 5786150

Please sign in to comment.