mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-30 19:06:14 +00:00
ALSA: hda - make sure there are enough input labels and paths
I found a codec configuration which had six inputs, so the max of five was not appropriate. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
7513e6dae5
commit
d3d982f744
2 changed files with 4 additions and 4 deletions
|
@ -2652,7 +2652,7 @@ static struct nid_path *get_input_path(struct hda_codec *codec, int adc_idx, int
|
||||||
}
|
}
|
||||||
if (spec->dyn_adc_switch)
|
if (spec->dyn_adc_switch)
|
||||||
adc_idx = spec->dyn_adc_idx[imux_idx];
|
adc_idx = spec->dyn_adc_idx[imux_idx];
|
||||||
if (adc_idx < 0 || adc_idx >= AUTO_CFG_MAX_OUTS) {
|
if (adc_idx < 0 || adc_idx >= AUTO_CFG_MAX_INS) {
|
||||||
snd_BUG();
|
snd_BUG();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
|
@ -105,8 +105,8 @@ struct hda_gen_spec {
|
||||||
hda_nid_t adc_nids[AUTO_CFG_MAX_OUTS];
|
hda_nid_t adc_nids[AUTO_CFG_MAX_OUTS];
|
||||||
hda_nid_t dig_in_nid; /* digital-in NID; optional */
|
hda_nid_t dig_in_nid; /* digital-in NID; optional */
|
||||||
hda_nid_t mixer_nid; /* analog-mixer NID */
|
hda_nid_t mixer_nid; /* analog-mixer NID */
|
||||||
const char *input_labels[AUTO_CFG_MAX_OUTS];
|
const char *input_labels[AUTO_CFG_MAX_INS];
|
||||||
int input_label_idxs[AUTO_CFG_MAX_OUTS];
|
int input_label_idxs[AUTO_CFG_MAX_INS];
|
||||||
|
|
||||||
/* capture setup for dynamic dual-adc switch */
|
/* capture setup for dynamic dual-adc switch */
|
||||||
hda_nid_t cur_adc;
|
hda_nid_t cur_adc;
|
||||||
|
@ -159,7 +159,7 @@ struct hda_gen_spec {
|
||||||
int speaker_paths[AUTO_CFG_MAX_OUTS];
|
int speaker_paths[AUTO_CFG_MAX_OUTS];
|
||||||
int aamix_out_paths[3];
|
int aamix_out_paths[3];
|
||||||
int digout_paths[AUTO_CFG_MAX_OUTS];
|
int digout_paths[AUTO_CFG_MAX_OUTS];
|
||||||
int input_paths[HDA_MAX_NUM_INPUTS][AUTO_CFG_MAX_OUTS];
|
int input_paths[HDA_MAX_NUM_INPUTS][AUTO_CFG_MAX_INS];
|
||||||
int loopback_paths[HDA_MAX_NUM_INPUTS];
|
int loopback_paths[HDA_MAX_NUM_INPUTS];
|
||||||
int digin_path;
|
int digin_path;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue