Merge remote-tracking branch 'asoc/topic/omap' into asoc-next

This commit is contained in:
Mark Brown 2013-02-11 11:06:38 +00:00
commit f0fab49461
2 changed files with 5 additions and 11 deletions

View File

@ -110,6 +110,8 @@ static int omap_hdmi_dai_hw_params(struct snd_pcm_substream *substream,
/* /*
* fill the IEC-60958 channel status word * fill the IEC-60958 channel status word
*/ */
/* initialize the word bytes */
memset(iec->status, 0, sizeof(iec->status));
/* specify IEC-60958-3 (commercial use) */ /* specify IEC-60958-3 (commercial use) */
iec->status[0] &= ~IEC958_AES0_PROFESSIONAL; iec->status[0] &= ~IEC958_AES0_PROFESSIONAL;

View File

@ -174,23 +174,15 @@ static snd_pcm_uframes_t omap_pcm_pointer(struct snd_pcm_substream *substream)
static int omap_pcm_open(struct snd_pcm_substream *substream) static int omap_pcm_open(struct snd_pcm_substream *substream)
{ {
struct snd_pcm_runtime *runtime = substream->runtime;
struct snd_soc_pcm_runtime *rtd = substream->private_data; struct snd_soc_pcm_runtime *rtd = substream->private_data;
struct omap_pcm_dma_data *dma_data; struct omap_pcm_dma_data *dma_data;
int ret;
snd_soc_set_runtime_hwparams(substream, &omap_pcm_hardware); snd_soc_set_runtime_hwparams(substream, &omap_pcm_hardware);
/* Ensure that buffer size is a multiple of period size */
ret = snd_pcm_hw_constraint_integer(runtime,
SNDRV_PCM_HW_PARAM_PERIODS);
if (ret < 0)
return ret;
dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream); dma_data = snd_soc_dai_get_dma_data(rtd->cpu_dai, substream);
ret = snd_dmaengine_pcm_open(substream, omap_dma_filter_fn,
&dma_data->dma_req); return snd_dmaengine_pcm_open(substream, omap_dma_filter_fn,
return ret; &dma_data->dma_req);
} }
static int omap_pcm_close(struct snd_pcm_substream *substream) static int omap_pcm_close(struct snd_pcm_substream *substream)