Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 148215
b: refs/heads/master
c: 8eb9fea
h: refs/heads/master
i:
  148213: d07f17b
  148211: 38dfa3d
  148207: 046ce5b
v: v3
  • Loading branch information
Eric Miao authored and Mark Brown committed Apr 23, 2009
1 parent b011805 commit 02d9a5e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 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: 049da6393fb30b62e418beb59a74dfcad513fc6d
refs/heads/master: 8eb9feabe566d8272510d5fb33f55a72e3ab3ce4
6 changes: 3 additions & 3 deletions trunk/sound/soc/pxa/pxa-ssp.c
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ struct pxa2xx_pcm_dma_data {
};

static struct pxa2xx_pcm_dma_params *
ssp_get_dma_params(struct ssp_device *ssp, int stereo, int out)
ssp_get_dma_params(struct ssp_device *ssp, int width4, int out)
{
struct pxa2xx_pcm_dma_data *dma;

Expand All @@ -76,13 +76,13 @@ ssp_get_dma_params(struct ssp_device *ssp, int stereo, int out)
return NULL;

snprintf(dma->name, 20, "SSP%d PCM %s %s", ssp->port_id,
stereo ? "Stereo" : "Mono", out ? "out" : "in");
width4 ? "32-bit" : "16-bit", out ? "out" : "in");

dma->params.name = dma->name;
dma->params.drcmr = &DRCMR(out ? ssp->drcmr_tx : ssp->drcmr_rx);
dma->params.dcmd = (out ? (DCMD_INCSRCADDR | DCMD_FLOWTRG) :
(DCMD_INCTRGADDR | DCMD_FLOWSRC)) |
(stereo ? DCMD_WIDTH4 : DCMD_WIDTH2) | DCMD_BURST16;
(width4 ? DCMD_WIDTH4 : DCMD_WIDTH2) | DCMD_BURST16;
dma->params.dev_addr = ssp->phys_base + SSDR;

return &dma->params;
Expand Down

0 comments on commit 02d9a5e

Please sign in to comment.