ALSA: oxfw: share PCM buffer size for both direction
[sfrench/cifs-2.6.git] / sound / firewire / oxfw / oxfw-stream.c
index 318de8217b3ad208214c7c73e32b4b2be0de3a36..995e9c5bd84bd8f0dcfa6c94f082f7cd4d464d0f 100644 (file)
@@ -245,7 +245,8 @@ static int keep_resources(struct snd_oxfw *oxfw, struct amdtp_stream *stream)
 int snd_oxfw_stream_reserve_duplex(struct snd_oxfw *oxfw,
                                   struct amdtp_stream *stream,
                                   unsigned int rate, unsigned int pcm_channels,
-                                  unsigned int frames_per_period)
+                                  unsigned int frames_per_period,
+                                  unsigned int frames_per_buffer)
 {
        struct snd_oxfw_stream_formation formation;
        enum avc_general_plug_dir dir;
@@ -308,7 +309,7 @@ int snd_oxfw_stream_reserve_duplex(struct snd_oxfw *oxfw,
                }
 
                err = amdtp_domain_set_events_per_period(&oxfw->domain,
-                                                       frames_per_period, 0);
+                                       frames_per_period, frames_per_buffer);
                if (err < 0) {
                        cmp_connection_release(&oxfw->in_conn);
                        if (oxfw->has_output)