forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/firewire/bebob/bebob.h
....@@ -1,9 +1,8 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * bebob.h - a part of driver for BeBoB based devices
34 *
45 * Copyright (c) 2013-2014 Takashi Sakamoto
5
- *
6
- * Licensed under the terms of the GNU General Public License, version 2.
76 */
87
98 #ifndef SOUND_BEBOB_H_INCLUDED
....@@ -93,8 +92,6 @@
9392 unsigned int midi_input_ports;
9493 unsigned int midi_output_ports;
9594
96
- bool connected;
97
-
9895 struct amdtp_stream tx_stream;
9996 struct amdtp_stream rx_stream;
10097 struct cmp_connection out_conn;
....@@ -118,6 +115,8 @@
118115
119116 /* For BeBoB version quirk. */
120117 unsigned int version;
118
+
119
+ struct amdtp_domain domain;
121120 };
122121
123122 static inline int
....@@ -218,7 +217,10 @@
218217 enum snd_bebob_clock_type *src);
219218 int snd_bebob_stream_discover(struct snd_bebob *bebob);
220219 int snd_bebob_stream_init_duplex(struct snd_bebob *bebob);
221
-int snd_bebob_stream_start_duplex(struct snd_bebob *bebob, unsigned int rate);
220
+int snd_bebob_stream_reserve_duplex(struct snd_bebob *bebob, unsigned int rate,
221
+ unsigned int frames_per_period,
222
+ unsigned int frames_per_buffer);
223
+int snd_bebob_stream_start_duplex(struct snd_bebob *bebob);
222224 void snd_bebob_stream_stop_duplex(struct snd_bebob *bebob);
223225 void snd_bebob_stream_destroy_duplex(struct snd_bebob *bebob);
224226