diff options
author | Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> | 2010-09-17 00:48:05 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2010-09-19 11:10:54 -0400 |
commit | c79eab3ea4e6f769e35005bf77fb4d6acd9c18ea (patch) | |
tree | 73a7995874c8142987e89e3722572a9424ac17b8 /sound | |
parent | c6834dd2d20fe607d0a4a98e78a68614e4079492 (diff) |
ASoC: fsi: Add fsi_dma_get_area
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sh/fsi.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c index c8a8ddb245aa..aea5adb54e38 100644 --- a/sound/soc/sh/fsi.c +++ b/sound/soc/sh/fsi.c | |||
@@ -357,6 +357,11 @@ static int fsi_get_fifo_residue(struct fsi_priv *fsi, int is_play) | |||
357 | return residue; | 357 | return residue; |
358 | } | 358 | } |
359 | 359 | ||
360 | static u8 *fsi_dma_get_area(struct fsi_priv *fsi) | ||
361 | { | ||
362 | return fsi->substream->runtime->dma_area + fsi->byte_offset; | ||
363 | } | ||
364 | |||
360 | /************************************************************************ | 365 | /************************************************************************ |
361 | 366 | ||
362 | 367 | ||
@@ -550,8 +555,7 @@ static int fsi_data_push(struct fsi_priv *fsi, int startup) | |||
550 | if (fifo_free < send) | 555 | if (fifo_free < send) |
551 | send = fifo_free; | 556 | send = fifo_free; |
552 | 557 | ||
553 | start = runtime->dma_area; | 558 | start = fsi_dma_get_area(fsi); |
554 | start += fsi->byte_offset; | ||
555 | 559 | ||
556 | switch (width) { | 560 | switch (width) { |
557 | case 2: | 561 | case 2: |
@@ -633,8 +637,7 @@ static int fsi_data_pop(struct fsi_priv *fsi, int startup) | |||
633 | if (free < fifo_fill) | 637 | if (free < fifo_fill) |
634 | fifo_fill = free; | 638 | fifo_fill = free; |
635 | 639 | ||
636 | start = runtime->dma_area; | 640 | start = fsi_dma_get_area(fsi); |
637 | start += fsi->byte_offset; | ||
638 | 641 | ||
639 | switch (width) { | 642 | switch (width) { |
640 | case 2: | 643 | case 2: |