summaryrefslogtreecommitdiffstats
path: root/sound/soc/intel/avs/probes.c
diff options
context:
space:
mode:
authorCezary Rojewski <cezary.rojewski@intel.com>2023-11-17 13:06:07 +0100
committerTakashi Iwai <tiwai@suse.de>2023-11-27 17:28:40 +0100
commit615d13cb4f3e499fb5c270a7db66917286f7d0ec (patch)
tree4f34d999b7b89636d904d0286fe0141aadb951bc /sound/soc/intel/avs/probes.c
parent176d13881137b064dc65e282e2c19821c11e60a2 (diff)
downloadlinux-stable-615d13cb4f3e499fb5c270a7db66917286f7d0ec.tar.gz
linux-stable-615d13cb4f3e499fb5c270a7db66917286f7d0ec.tar.bz2
linux-stable-615d13cb4f3e499fb5c270a7db66917286f7d0ec.zip
ASoC: Intel: avs: Switch to new stream-format interface
To provide option for selecting different bit-per-sample than just the maximum one, use the new format calculation mechanism. Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com> Acked-by: Jaroslav Kysela <perex@perex.cz> Link: https://lore.kernel.org/r/20231117120610.1755254-14-cezary.rojewski@intel.com Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/intel/avs/probes.c')
-rw-r--r--sound/soc/intel/avs/probes.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/intel/avs/probes.c b/sound/soc/intel/avs/probes.c
index bdc6b30dc009..817e543036f2 100644
--- a/sound/soc/intel/avs/probes.c
+++ b/sound/soc/intel/avs/probes.c
@@ -140,8 +140,7 @@ static int avs_probe_compr_set_params(struct snd_compr_stream *cstream,
bps = snd_pcm_format_physical_width(format);
if (bps < 0)
return bps;
- format_val = snd_hdac_calc_stream_format(params->codec.sample_rate, params->codec.ch_out,
- format, bps, 0);
+ format_val = snd_hdac_stream_format(params->codec.ch_out, bps, params->codec.sample_rate);
ret = snd_hdac_stream_set_params(hdac_stream(host_stream), format_val);
if (ret < 0)
return ret;