ALSA: hda - Move PCM format and rate handling code to core library
Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -2052,11 +2052,8 @@ static int dma_convert_to_hda_format(struct hda_codec *codec,
|
||||
{
|
||||
unsigned int format_val;
|
||||
|
||||
format_val = snd_hda_calc_stream_format(codec,
|
||||
sample_rate,
|
||||
channels,
|
||||
SNDRV_PCM_FORMAT_S32_LE,
|
||||
32, 0);
|
||||
format_val = snd_hdac_calc_stream_format(sample_rate,
|
||||
channels, SNDRV_PCM_FORMAT_S32_LE, 32, 0);
|
||||
|
||||
if (hda_format)
|
||||
*hda_format = (unsigned short)format_val;
|
||||
|
||||
Reference in New Issue
Block a user