ALSA: firewire-motu: register the size of PCM period to AMDTP domain
[linux-2.6-block.git] / sound / firewire / motu / motu-pcm.c
index aa2e584da6fe65bdbf37576ea9718807f8066343..9a54c562494b348ae37d9552ffaed64840ef001b 100644 (file)
@@ -202,9 +202,11 @@ static int pcm_hw_params(struct snd_pcm_substream *substream,
 
        if (substream->runtime->status->state == SNDRV_PCM_STATE_OPEN) {
                unsigned int rate = params_rate(hw_params);
+               unsigned int frames_per_period = params_period_size(hw_params);
 
                mutex_lock(&motu->mutex);
-               err = snd_motu_stream_reserve_duplex(motu, rate);
+               err = snd_motu_stream_reserve_duplex(motu, rate,
+                                                    frames_per_period);
                if (err >= 0)
                        ++motu->substreams_counter;
                mutex_unlock(&motu->mutex);