sh: Fix Dreamcast DMA issues.
authorAdrian McMenamin <adrian@mcmen.demon.co.uk>
Tue, 24 Jul 2007 04:30:55 +0000 (13:30 +0900)
committerPaul Mundt <lethal@linux-sh.org>
Tue, 24 Jul 2007 04:30:55 +0000 (13:30 +0900)
commiteb695dbf00d572a770358305dae4de2a0680db8f
tree7039762e190ace8af58bb62f6645bee0a2f71221
parent8cf1a74305688c85fc8d23ab7432a0c447ee6413
sh: Fix Dreamcast DMA issues.

The current SH DMA API is somewhat broken, not correctly matching
virtual channel to the correct SH DMAC. This wasn't noticeable when
using g2 DMA for the sound driver - one channel 0 is as good as any
other! - but caused the pvr2 driver to fail.

This patch fixes the pvr2 problem and consequently fixes the sound
driver to ensure it continues to function.

Signed-off by: Adrian McMenamin <adrian@mcmen.demon.co.uk>
Signed-off-by: Paul Mundt <lethal@linux-sh.org>
arch/sh/drivers/dma/dma-api.c
include/asm-sh/dma.h
sound/sh/aica.h