Skip to content

Commit e28ac04

Browse files
committed
ASoC: intel: atom: Revert PCM buffer address setup workaround again
We worked around the breakage of PCM buffer setup by the commit 65ca89c ("ASoC: intel: atom: Fix breakage for PCM buffer address setup"), but this isn't necessary since the CONTINUOUS buffer type also sets runtime->dma_addr since commit f84ba10 ("ALSA: memalloc: Store snd_dma_buffer.addr for continuous pages, too"). Let's revert the change again. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Takashi Iwai <[email protected]>
1 parent 539a509 commit e28ac04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/intel/atom/sst-mfld-platform-pcm.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ static void sst_fill_alloc_params(struct snd_pcm_substream *substream,
127127
snd_pcm_uframes_t period_size;
128128
ssize_t periodbytes;
129129
ssize_t buffer_bytes = snd_pcm_lib_buffer_bytes(substream);
130-
u32 buffer_addr = virt_to_phys(substream->runtime->dma_area);
130+
u32 buffer_addr = substream->runtime->dma_addr;
131131

132132
channels = substream->runtime->channels;
133133
period_size = substream->runtime->period_size;

0 commit comments

Comments
 (0)