Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 252102
b: refs/heads/master
c: 313d2c0
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed May 23, 2011
1 parent ca867a2 commit 64173c8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 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: 506a4196d44218eca20db529c84410dc1095e457
refs/heads/master: 313d2c065253a7549f5e7f43409f1da455329acd
5 changes: 3 additions & 2 deletions trunk/sound/pci/hda/patch_conexant.c
Original file line number Diff line number Diff line change
Expand Up @@ -3697,13 +3697,14 @@ static int cx_auto_mux_enum_update(struct hda_codec *codec,
{
struct conexant_spec *spec = codec->spec;
hda_nid_t adc;
int changed = 1;

if (!imux->num_items)
return 0;
if (idx >= imux->num_items)
idx = imux->num_items - 1;
if (spec->cur_mux[0] == idx)
return 0;
changed = 0;
adc = spec->imux_info[idx].adc;
select_input_connection(codec, spec->imux_info[idx].adc,
spec->imux_info[idx].pin);
Expand All @@ -3716,7 +3717,7 @@ static int cx_auto_mux_enum_update(struct hda_codec *codec,
spec->cur_adc_format);
}
spec->cur_mux[0] = idx;
return 1;
return changed;
}

static int cx_auto_mux_enum_put(struct snd_kcontrol *kcontrol,
Expand Down

0 comments on commit 64173c8

Please sign in to comment.