Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 12b1c03d authored by David S. Miller's avatar David S. Miller
Browse files

cs4231: Use SNDRV_DMA_TYPE_DEV instead of SNDRV_DMA_TYPE_SBUS.



SBUS layer now uses dma_*() interfaces, no need for special DMA code
any longer.

Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2bd320f8
Loading
Loading
Loading
Loading
+3 −3
Original line number Original line Diff line number Diff line
@@ -1784,8 +1784,8 @@ static unsigned int sbus_dma_addr(struct cs4231_dma_control *dma_cont)


static void sbus_dma_preallocate(struct snd_cs4231 *chip, struct snd_pcm *pcm)
static void sbus_dma_preallocate(struct snd_cs4231 *chip, struct snd_pcm *pcm)
{
{
	snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_SBUS,
	snd_pcm_lib_preallocate_pages_for_all(pcm, SNDRV_DMA_TYPE_DEV,
					snd_dma_sbus_data(chip->dev_u.sdev),
					      &chip->dev_u.sdev->ofdev.dev,
					      64 * 1024, 128 * 1024);
					      64 * 1024, 128 * 1024);
}
}