ALSA: msnd: Use proper mmap method
authorTakashi Iwai <tiwai@suse.de>
Mon, 9 Aug 2021 14:05:32 +0000 (16:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 Aug 2021 14:06:17 +0000 (16:06 +0200)
commitca4c5b334f1036d567b6a7d1f695430d7e4fd8a3
treefa32ffcfc72d7cc685135338855a2e7c8a985826
parent4d9e9153f1c64d91a125c6967bc0bfb0bb653ea0
ALSA: msnd: Use proper mmap method

The old ISA MSND driver basically maps the iomem as the DMA buffer.
For this type of buffer, we have already the standard mmap helper,
snd_pcm_lib_mmap_iomem().  Correct the PCM info, set the DMA address
and use the standard helper for handling the mmap on all architectures
properly.

Link: https://lore.kernel.org/r/20210809140532.11006-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/msnd/msnd.c