|
@@ -1362,15 +1362,18 @@ static int fsi_dma_push_start_stop(struct fsi_priv *fsi, struct fsi_stream *io,
|
|
|
|
|
|
static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev)
|
|
static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev)
|
|
{
|
|
{
|
|
- dma_cap_mask_t mask;
|
|
|
|
int is_play = fsi_stream_is_play(fsi, io);
|
|
int is_play = fsi_stream_is_play(fsi, io);
|
|
|
|
|
|
|
|
+#ifdef CONFIG_SUPERH
|
|
|
|
+ dma_cap_mask_t mask;
|
|
dma_cap_zero(mask);
|
|
dma_cap_zero(mask);
|
|
dma_cap_set(DMA_SLAVE, mask);
|
|
dma_cap_set(DMA_SLAVE, mask);
|
|
|
|
|
|
- io->chan = dma_request_slave_channel_compat(mask,
|
|
|
|
- shdma_chan_filter, (void *)io->dma_id,
|
|
|
|
- dev, is_play ? "tx" : "rx");
|
|
|
|
|
|
+ io->chan = dma_request_channel(mask, shdma_chan_filter,
|
|
|
|
+ (void *)io->dma_id);
|
|
|
|
+#else
|
|
|
|
+ io->chan = dma_request_slave_channel(dev, is_play ? "tx" : "rx");
|
|
|
|
+#endif
|
|
if (io->chan) {
|
|
if (io->chan) {
|
|
struct dma_slave_config cfg = {};
|
|
struct dma_slave_config cfg = {};
|
|
int ret;
|
|
int ret;
|