Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353167
b: refs/heads/master
c: 0ffd534
h: refs/heads/master
i:
  353165: 40660c9
  353163: c743c61
  353159: 9194b04
  353151: b486281
v: v3
  • Loading branch information
Takashi Iwai committed Jan 17, 2013
1 parent c3a865f commit 7a4b298
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 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: 7a71bbf310cda13a713aab0c1dcf888707a54286
refs/heads/master: 0ffd534eb164fbc87e91fc54a217247ea0cfbabc
5 changes: 5 additions & 0 deletions trunk/sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -2368,6 +2368,11 @@ static int fill_adc_nids(struct hda_codec *codec)
break;
}
spec->num_adc_nids = nums;

/* copy the detected ADCs to all_adcs[] */
spec->num_all_adcs = nums;
memcpy(spec->all_adcs, spec->adc_nids, nums * sizeof(hda_nid_t));

return nums;
}

Expand Down
4 changes: 3 additions & 1 deletion trunk/sound/pci/hda/hda_generic.h
Original file line number Diff line number Diff line change
Expand Up @@ -142,9 +142,11 @@ struct hda_gen_spec {
unsigned int dyn_adc_idx[HDA_MAX_NUM_INPUTS];
hda_nid_t shared_mic_vref_pin;

/* DAC list */
/* DAC/ADC lists */
int num_all_dacs;
hda_nid_t all_dacs[16];
int num_all_adcs;
hda_nid_t all_adcs[AUTO_CFG_MAX_OUTS];

/* path list */
struct snd_array paths;
Expand Down

0 comments on commit 7a4b298

Please sign in to comment.