Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305561
b: refs/heads/master
c: b46b373
h: refs/heads/master
i:
  305559: e44865f
v: v3
  • Loading branch information
Shawn Guo authored and Mark Brown committed Apr 1, 2012
1 parent bb590d6 commit 38c1d3b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: ff9062c60e4b8e01980b1a81dcabe3965f71df77
refs/heads/master: b46b373f4084cc02d4d41a5a42199fe8462c2f13
6 changes: 6 additions & 0 deletions trunk/sound/soc/fsl/fsl_ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,12 @@ static int __devinit fsl_ssi_probe(struct platform_device *pdev)
}
ssi_private->dma_params_tx.dma = dma_events[0];
ssi_private->dma_params_rx.dma = dma_events[1];

ssi_private->dma_params_tx.shared_peripheral =
of_device_is_compatible(of_get_parent(np),
"fsl,spba-bus");
ssi_private->dma_params_rx.shared_peripheral =
ssi_private->dma_params_tx.shared_peripheral;
}

/* Initialize the the device_attribute structure */
Expand Down
3 changes: 2 additions & 1 deletion trunk/sound/soc/fsl/imx-pcm-dma.c
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ static int snd_imx_open(struct snd_pcm_substream *substream)
dma_params = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);

dma_data = kzalloc(sizeof(*dma_data), GFP_KERNEL);
dma_data->peripheral_type = IMX_DMATYPE_SSI;
dma_data->peripheral_type = dma_params->shared_peripheral ?
IMX_DMATYPE_SSI_SP : IMX_DMATYPE_SSI;
dma_data->priority = DMA_PRIO_HIGH;
dma_data->dma_request = dma_params->dma;

Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/fsl/imx-pcm.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ struct imx_pcm_dma_params {
int dma;
unsigned long dma_addr;
int burstsize;
bool shared_peripheral; /* The peripheral is on SPBA bus */
};

int snd_imx_pcm_mmap(struct snd_pcm_substream *substream,
Expand Down

0 comments on commit 38c1d3b

Please sign in to comment.