Skip to content

Commit

Permalink
ALSA: hda - Fix channels_max setting for CA0110
Browse files Browse the repository at this point in the history
Added the missing definition of max channels for CA0110, which resulted
in an error at opening PCM devices.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Apr 20, 2009
1 parent 18cb710 commit 6766726
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/pci/hda/patch_ca0110.c
Original file line number Diff line number Diff line change
Expand Up @@ -309,7 +309,7 @@ static int ca0110_build_pcms(struct hda_codec *codec)
info->stream[SNDRV_PCM_STREAM_PLAYBACK] = ca0110_pcm_analog_playback;
info->stream[SNDRV_PCM_STREAM_PLAYBACK].nid = spec->dacs[0];
info->stream[SNDRV_PCM_STREAM_PLAYBACK].channels_max =
spec->multiout.num_dacs * 2;
spec->multiout.max_channels;
info->stream[SNDRV_PCM_STREAM_CAPTURE] = ca0110_pcm_analog_capture;
info->stream[SNDRV_PCM_STREAM_CAPTURE].substreams = spec->num_inputs;
info->stream[SNDRV_PCM_STREAM_CAPTURE].nid = spec->adcs[0];
Expand Down Expand Up @@ -418,6 +418,7 @@ static void parse_line_outs(struct hda_codec *codec)
}
spec->multiout.dac_nids = spec->dacs;
spec->multiout.num_dacs = n;
spec->multiout.max_channels = n * 2;
}

static void parse_hp_out(struct hda_codec *codec)
Expand Down

0 comments on commit 6766726

Please sign in to comment.