13 Mar
2012
13 Mar
'12
11:48 p.m.
On Tue, Mar 13, 2012 at 04:11:41PM +0100, Ola Lilja wrote:
+static const char *stream_str(struct snd_pcm_substream *substream) +{
- if (substream->stream == SNDRV_PCM_STREAM_PLAYBACK)
return "Playback";
- else
return "Capture";
+}
You know how I was mentioning that this isn't at all driver specific...
- cdesc = dma_dev->device_prep_dma_cyclic(ux500_pcm_data->pipeid, dma_addr,
period_cnt * period_len, period_len,
direction);
You're using dmaengine here it seems. Please refactor to use the dmaengine helper library that was recently contributed by Lars-Peter - it should save a bunch of code and make rolling out dmaengine framework improvements much easier.