|
@@ -541,11 +541,11 @@ static int aaci_pcm_prepare(struct snd_pcm_substream *substream)
|
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
|
struct snd_pcm_runtime *runtime = substream->runtime;
|
|
struct aaci_runtime *aacirun = runtime->private_data;
|
|
struct aaci_runtime *aacirun = runtime->private_data;
|
|
|
|
|
|
|
|
+ aacirun->period = snd_pcm_lib_period_bytes(substream);
|
|
aacirun->start = runtime->dma_area;
|
|
aacirun->start = runtime->dma_area;
|
|
aacirun->end = aacirun->start + snd_pcm_lib_buffer_bytes(substream);
|
|
aacirun->end = aacirun->start + snd_pcm_lib_buffer_bytes(substream);
|
|
aacirun->ptr = aacirun->start;
|
|
aacirun->ptr = aacirun->start;
|
|
- aacirun->period =
|
|
|
|
- aacirun->bytes = frames_to_bytes(runtime, runtime->period_size);
|
|
|
|
|
|
+ aacirun->bytes = aacirun->period;
|
|
|
|
|
|
return 0;
|
|
return 0;
|
|
}
|
|
}
|