diff options
author | Jeeja KP <jeeja.kp@intel.com> | 2017-03-24 13:40:26 -0400 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-03-29 07:53:21 -0400 |
commit | 66d6bbc6c0beb04c1dfeb0107d4d828f3e1959ee (patch) | |
tree | c4450c1933da881ae3fb092867b5641f1ad9142d | |
parent | 7f975a385b9313a03c13fb0be0a129c626f9a54e (diff) |
ASoC: hdac_hdmi: Update sig_bits based on converter capability
When creating the codec dai, use sig_bits to update the max bps based
on the codec capability. So both the link DMA and codec format will be
calculated based on DAI sig_bits.
So update the sig_bits with converter capability and use the sig_bits
for HDA format calculation.
Signed-off-by: Jeeja KP <jeeja.kp@intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r-- | sound/soc/codecs/hdac_hdmi.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/hdac_hdmi.c b/sound/soc/codecs/hdac_hdmi.c index 78fca8acd3ec..5b7694721ef7 100644 --- a/sound/soc/codecs/hdac_hdmi.c +++ b/sound/soc/codecs/hdac_hdmi.c | |||
@@ -469,7 +469,7 @@ static int hdac_hdmi_set_hw_params(struct snd_pcm_substream *substream, | |||
469 | 469 | ||
470 | format = snd_hdac_calc_stream_format(params_rate(hparams), | 470 | format = snd_hdac_calc_stream_format(params_rate(hparams), |
471 | params_channels(hparams), params_format(hparams), | 471 | params_channels(hparams), params_format(hparams), |
472 | 24, 0); | 472 | dai->driver->playback.sig_bits, 0); |
473 | 473 | ||
474 | pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); | 474 | pcm = hdac_hdmi_get_pcm_from_cvt(hdmi, dai_map->cvt); |
475 | if (!pcm) | 475 | if (!pcm) |
@@ -1419,8 +1419,8 @@ static int hdac_hdmi_create_dais(struct hdac_device *hdac, | |||
1419 | hdmi_dais[i].playback.rate_min = rate_min; | 1419 | hdmi_dais[i].playback.rate_min = rate_min; |
1420 | hdmi_dais[i].playback.channels_min = 2; | 1420 | hdmi_dais[i].playback.channels_min = 2; |
1421 | hdmi_dais[i].playback.channels_max = 2; | 1421 | hdmi_dais[i].playback.channels_max = 2; |
1422 | hdmi_dais[i].playback.sig_bits = bps; | ||
1422 | hdmi_dais[i].ops = &hdmi_dai_ops; | 1423 | hdmi_dais[i].ops = &hdmi_dai_ops; |
1423 | |||
1424 | i++; | 1424 | i++; |
1425 | } | 1425 | } |
1426 | 1426 | ||