ALSA: firewire-lib: add an argument for Dice's dual wire mode
[firefly-linux-kernel-4.4.55.git] / sound / firewire / bebob / bebob_stream.c
index 5be5242e1ed86a535b875346429f5113d37dcad5..920a3b8844eef02678edf54451a3d4e7ea24c91f 100644 (file)
@@ -427,12 +427,19 @@ make_both_connections(struct snd_bebob *bebob, unsigned int rate)
        index = get_formation_index(rate);
        pcm_channels = bebob->tx_stream_formations[index].pcm;
        midi_channels = bebob->tx_stream_formations[index].midi;
-       amdtp_stream_set_parameters(&bebob->tx_stream,
-                                   rate, pcm_channels, midi_channels * 8);
+       err = amdtp_stream_set_parameters(&bebob->tx_stream, rate,
+                                         pcm_channels, midi_channels * 8,
+                                         false);
+       if (err < 0)
+               goto end;
+
        pcm_channels = bebob->rx_stream_formations[index].pcm;
        midi_channels = bebob->rx_stream_formations[index].midi;
-       amdtp_stream_set_parameters(&bebob->rx_stream,
-                                   rate, pcm_channels, midi_channels * 8);
+       err = amdtp_stream_set_parameters(&bebob->rx_stream, rate,
+                                         pcm_channels, midi_channels * 8,
+                                         false);
+       if (err < 0)
+               goto end;
 
        /* establish connections for both streams */
        err = cmp_connection_establish(&bebob->out_conn,