diff options
author | Cezary Rojewski <[email protected]> | 2023-11-17 13:06:01 +0100 |
---|---|---|
committer | Takashi Iwai <[email protected]> | 2023-11-27 17:28:06 +0100 |
commit | 0d41f0c07f19de7fb5790cbe462dddb68af60fa8 (patch) | |
tree | d19e368decbcb146a814fe76f0a33ebe19a25217 | |
parent | 67ea58daab010ea7a622a89392cc9a6190f8b9c1 (diff) |
ALSA: hda/ca0132: 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 <[email protected]>
Signed-off-by: Cezary Rojewski <[email protected]>
Acked-by: Jaroslav Kysela <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Takashi Iwai <[email protected]>
-rw-r--r-- | sound/pci/hda/patch_ca0132.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/pci/hda/patch_ca0132.c b/sound/pci/hda/patch_ca0132.c index 748a3c40966e..aa312441604f 100644 --- a/sound/pci/hda/patch_ca0132.c +++ b/sound/pci/hda/patch_ca0132.c @@ -3022,8 +3022,7 @@ static int dma_convert_to_hda_format(struct hda_codec *codec, { unsigned int format_val; - format_val = snd_hdac_calc_stream_format(sample_rate, - channels, SNDRV_PCM_FORMAT_S32_LE, 32, 0); + format_val = snd_hdac_stream_format(channels, 32, sample_rate); if (hda_format) *hda_format = (unsigned short)format_val; |