Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 293512
b: refs/heads/master
c: 588fb70
h: refs/heads/master
v: v3
  • Loading branch information
Sangsu Park authored and Mark Brown committed Mar 16, 2012
1 parent d13b708 commit 29c7b2e
Show file tree
Hide file tree
Showing 2 changed files with 13 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: 181a68927b9e6ff7c0ea093c2f056eeb0552a911
refs/heads/master: 588fb705d560cd76d435382fb25bea7349672d80
13 changes: 12 additions & 1 deletion trunk/sound/soc/samsung/i2s.c
Original file line number Diff line number Diff line change
Expand Up @@ -559,6 +559,17 @@ static int i2s_hw_params(struct snd_pcm_substream *substream,
mod |= MOD_DC1_EN;
break;
case 2:
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
i2s->dma_playback.dma_size = 4;
else
i2s->dma_capture.dma_size = 4;
break;
case 1:
if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
i2s->dma_playback.dma_size = 2;
else
i2s->dma_capture.dma_size = 2;

break;
default:
dev_err(&i2s->pdev->dev, "%d channels not supported\n",
Expand Down Expand Up @@ -963,7 +974,7 @@ struct i2s_dai *i2s_alloc_dai(struct platform_device *pdev, bool sec)
i2s->i2s_dai_drv.playback.formats = SAMSUNG_I2S_FMTS;

if (!sec) {
i2s->i2s_dai_drv.capture.channels_min = 2;
i2s->i2s_dai_drv.capture.channels_min = 1;
i2s->i2s_dai_drv.capture.channels_max = 2;
i2s->i2s_dai_drv.capture.rates = SAMSUNG_I2S_RATES;
i2s->i2s_dai_drv.capture.formats = SAMSUNG_I2S_FMTS;
Expand Down

0 comments on commit 29c7b2e

Please sign in to comment.