mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-17 18:56:24 +00:00
ASoC: Intel: sst: Switch to standard device pages
ASoC Atom SST driver is using the continuous RAM pages with GFP_DMA flag for its PCM buffer, but this should work fine with the standard DMA pages. As a part of cleanup work, this patch replaces the buffer allocation to the standard device pages with SNDRV_DMA_TYPE_DEV. Link: https://lore.kernel.org/r/20220823115740.14123-4-tiwai@suse.de Signed-off-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Cezary Rojewski <cezary.rojewski@intel.com>
This commit is contained in:
parent
63bfc84672
commit
97557ec97a
@ -676,9 +676,8 @@ static int sst_soc_pcm_new(struct snd_soc_component *component,
|
|||||||
|
|
||||||
if (dai->driver->playback.channels_min ||
|
if (dai->driver->playback.channels_min ||
|
||||||
dai->driver->capture.channels_min) {
|
dai->driver->capture.channels_min) {
|
||||||
snd_pcm_set_managed_buffer_all(pcm,
|
snd_pcm_set_managed_buffer_all(pcm, SNDRV_DMA_TYPE_DEV,
|
||||||
SNDRV_DMA_TYPE_CONTINUOUS,
|
pcm->card->dev,
|
||||||
snd_dma_continuous_data(GFP_DMA),
|
|
||||||
SST_MIN_BUFFER, SST_MAX_BUFFER);
|
SST_MIN_BUFFER, SST_MAX_BUFFER);
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user