diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2023-11-17 13:06:07 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2023-11-27 17:28:40 +0100 |
commit | 615d13cb4f3e499fb5c270a7db66917286f7d0ec (patch) | |
tree | 4f34d999b7b89636d904d0286fe0141aadb951bc /sound/soc/intel/avs/path.c | |
parent | ASoC: SOF: Intel: Switch to new stream-format interface (diff) | |
download | linux-615d13cb4f3e499fb5c270a7db66917286f7d0ec.tar.xz linux-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/path.c')
-rw-r--r-- | sound/soc/intel/avs/path.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/intel/avs/path.c b/sound/soc/intel/avs/path.c index aa8b50b931c3..3aa16ee8d34c 100644 --- a/sound/soc/intel/avs/path.c +++ b/sound/soc/intel/avs/path.c @@ -87,7 +87,7 @@ static bool avs_test_hw_params(struct snd_pcm_hw_params *params, return (params_rate(params) == fmt->sampling_freq && params_channels(params) == fmt->num_channels && params_physical_width(params) == fmt->bit_depth && - params_width(params) == fmt->valid_bit_depth); + snd_pcm_hw_params_bits(params) == fmt->valid_bit_depth); } static struct avs_tplg_path * |