Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353153
b: refs/heads/master
c: b56fa1e
h: refs/heads/master
i:
  353151: b486281
v: v3
  • Loading branch information
David Henningsson authored and Takashi Iwai committed Jan 16, 2013
1 parent 9c07f5a commit 23abf87
Show file tree
Hide file tree
Showing 2 changed files with 9 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: ea46c3c87c35b90139b4dca43917d0f605d568ed
refs/heads/master: b56fa1ed09615f148271045d220b1c55580bdfc9
8 changes: 8 additions & 0 deletions trunk/sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2403,8 +2403,16 @@ static int create_input_ctls(struct hda_codec *codec)
static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int imux_idx)
{
struct hda_gen_spec *spec = codec->spec;
if (imux_idx < 0 || imux_idx >= HDA_MAX_NUM_INPUTS) {
snd_BUG();
return NULL;
}
if (spec->dyn_adc_switch)
adc_idx = spec->dyn_adc_idx[imux_idx];
if (adc_idx < 0 || adc_idx >= AUTO_CFG_MAX_OUTS) {
snd_BUG();
return NULL;
}
return snd_hda_get_path_from_idx(codec, spec->input_paths[imux_idx][adc_idx]);
}

Expand Down

0 comments on commit 23abf87

Please sign in to comment.