Commit 86efd35e authored by Pierre-Louis Bossart's avatar Pierre-Louis Bossart Committed by Mark Brown

ASoC: Intel: Skylake: BDL definitions should be __le32

Make sure definitions are consistent with usage.
Detected with Sparse.
Signed-off-by: default avatarPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
parent 92beb0a2
...@@ -83,9 +83,9 @@ static void skl_cldma_stream_clear(struct sst_dsp *ctx) ...@@ -83,9 +83,9 @@ static void skl_cldma_stream_clear(struct sst_dsp *ctx)
/* Code loader helper APIs */ /* Code loader helper APIs */
static void skl_cldma_setup_bdle(struct sst_dsp *ctx, static void skl_cldma_setup_bdle(struct sst_dsp *ctx,
struct snd_dma_buffer *dmab_data, struct snd_dma_buffer *dmab_data,
u32 **bdlp, int size, int with_ioc) __le32 **bdlp, int size, int with_ioc)
{ {
u32 *bdl = *bdlp; __le32 *bdl = *bdlp;
ctx->cl_dev.frags = 0; ctx->cl_dev.frags = 0;
while (size > 0) { while (size > 0) {
...@@ -330,7 +330,7 @@ void skl_cldma_process_intr(struct sst_dsp *ctx) ...@@ -330,7 +330,7 @@ void skl_cldma_process_intr(struct sst_dsp *ctx)
int skl_cldma_prepare(struct sst_dsp *ctx) int skl_cldma_prepare(struct sst_dsp *ctx)
{ {
int ret; int ret;
u32 *bdl; __le32 *bdl;
ctx->cl_dev.bufsize = SKL_MAX_BUFFER_SIZE; ctx->cl_dev.bufsize = SKL_MAX_BUFFER_SIZE;
...@@ -359,7 +359,7 @@ int skl_cldma_prepare(struct sst_dsp *ctx) ...@@ -359,7 +359,7 @@ int skl_cldma_prepare(struct sst_dsp *ctx)
ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_data); ctx->dsp_ops.free_dma_buf(ctx->dev, &ctx->cl_dev.dmab_data);
return ret; return ret;
} }
bdl = (u32 *)ctx->cl_dev.dmab_bdl.area; bdl = (__le32 *)ctx->cl_dev.dmab_bdl.area;
/* Allocate BDLs */ /* Allocate BDLs */
ctx->cl_dev.ops.cl_setup_bdle(ctx, &ctx->cl_dev.dmab_data, ctx->cl_dev.ops.cl_setup_bdle(ctx, &ctx->cl_dev.dmab_data,
......
...@@ -203,7 +203,7 @@ struct sst_dsp; ...@@ -203,7 +203,7 @@ struct sst_dsp;
struct skl_cl_dev_ops { struct skl_cl_dev_ops {
void (*cl_setup_bdle)(struct sst_dsp *ctx, void (*cl_setup_bdle)(struct sst_dsp *ctx,
struct snd_dma_buffer *dmab_data, struct snd_dma_buffer *dmab_data,
u32 **bdlp, int size, int with_ioc); __le32 **bdlp, int size, int with_ioc);
void (*cl_setup_controller)(struct sst_dsp *ctx, void (*cl_setup_controller)(struct sst_dsp *ctx,
struct snd_dma_buffer *dmab_bdl, struct snd_dma_buffer *dmab_bdl,
unsigned int max_size, u32 page_count); unsigned int max_size, u32 page_count);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment