Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 6503
b: refs/heads/master
c: b9f5a89
h: refs/heads/master
i:
  6501: 3596001
  6499: 4f9a216
  6495: 0e4db1a
v: v3
  • Loading branch information
Nicolas Graziano authored and Jaroslav Kysela committed Aug 30, 2005
1 parent dec9ae9 commit db00134
Show file tree
Hide file tree
Showing 2 changed files with 10 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: d827560c96346e0b8b02c1000cc347d73488c818
refs/heads/master: b9f5a89c74e541533766dcda55d34a06253f60f3
13 changes: 9 additions & 4 deletions trunk/sound/pci/hda/hda_codec.c
Original file line number Diff line number Diff line change
Expand Up @@ -749,12 +749,14 @@ int snd_hda_mixer_amp_volume_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
long *valp = ucontrol->value.integer.value;
int change = 0;

if (chs & 1)
if (chs & 1) {
change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
0x7f, *valp);
valp++;
}
if (chs & 2)
change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
0x7f, valp[1]);
0x7f, *valp);
return change;
}

Expand Down Expand Up @@ -796,12 +798,15 @@ int snd_hda_mixer_amp_switch_put(snd_kcontrol_t *kcontrol, snd_ctl_elem_value_t
long *valp = ucontrol->value.integer.value;
int change = 0;

if (chs & 1)
if (chs & 1) {
change = snd_hda_codec_amp_update(codec, nid, 0, dir, idx,
0x80, *valp ? 0 : 0x80);
valp++;
}
if (chs & 2)
change |= snd_hda_codec_amp_update(codec, nid, 1, dir, idx,
0x80, valp[1] ? 0 : 0x80);
0x80, *valp ? 0 : 0x80);

return change;
}

Expand Down

0 comments on commit db00134

Please sign in to comment.