ALSA: hda - Store PCM parameters properly in HDMI open callback

In hdmi_pcm_open(), the evaluated PCM hw parameters are stored in
hinfo, but these aren't properly set back to the current runtime
record since these have been set beforehand in azx_pcm_open().
This patch fixes the behavior.

Signed-off-by: Takashi Iwai <tiwai@suse.de>

+6
+6
sound/pci/hda/patch_hdmi.c
··· 817 817 struct hdmi_spec *spec = codec->spec; 818 818 struct hdmi_eld *eld; 819 819 struct hda_pcm_stream *codec_pars; 820 + struct snd_pcm_runtime *runtime = substream->runtime; 820 821 unsigned int idx; 821 822 822 823 for (idx = 0; idx < spec->num_cvts; idx++) ··· 845 844 hinfo->formats = codec_pars->formats; 846 845 hinfo->maxbps = codec_pars->maxbps; 847 846 } 847 + /* store the updated parameters */ 848 + runtime->hw.channels_min = hinfo->channels_min; 849 + runtime->hw.channels_max = hinfo->channels_max; 850 + runtime->hw.formats = hinfo->formats; 851 + runtime->hw.rates = hinfo->rates; 848 852 return 0; 849 853 } 850 854