forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-10-22 8ac6c7a54ed1b98d142dce24b11c6de6a1e239a5
kernel/sound/firewire/fireworks/fireworks.h
....@@ -1,10 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * fireworks.h - a part of driver for Fireworks based devices
34 *
45 * Copyright (c) 2009-2010 Clemens Ladisch
56 * Copyright (c) 2013-2014 Takashi Sakamoto
6
- *
7
- * Licensed under the terms of the GNU General Public License, version 2.
87 */
98 #ifndef SOUND_FIREWORKS_H_INCLUDED
109 #define SOUND_FIREWORKS_H_INCLUDED
....@@ -89,8 +88,7 @@
8988 struct amdtp_stream rx_stream;
9089 struct cmp_connection out_conn;
9190 struct cmp_connection in_conn;
92
- unsigned int capture_substreams;
93
- unsigned int playback_substreams;
91
+ unsigned int substreams_counter;
9492
9593 /* hardware metering parameters */
9694 unsigned int phys_out;
....@@ -109,6 +107,8 @@
109107 u8 *resp_buf;
110108 u8 *pull_ptr;
111109 u8 *push_ptr;
110
+
111
+ struct amdtp_domain domain;
112112 };
113113
114114 int snd_efw_transaction_cmd(struct fw_unit *unit,
....@@ -177,7 +177,7 @@
177177 u32 in_meters;
178178 u32 reserved4;
179179 u32 reserved5;
180
- u32 values[0];
180
+ u32 values[];
181181 } __packed;
182182 enum snd_efw_clock_source {
183183 SND_EFW_CLOCK_SOURCE_INTERNAL = 0,
....@@ -207,7 +207,10 @@
207207 int snd_efw_command_set_sampling_rate(struct snd_efw *efw, unsigned int rate);
208208
209209 int snd_efw_stream_init_duplex(struct snd_efw *efw);
210
-int snd_efw_stream_start_duplex(struct snd_efw *efw, unsigned int rate);
210
+int snd_efw_stream_reserve_duplex(struct snd_efw *efw, unsigned int rate,
211
+ unsigned int frames_per_period,
212
+ unsigned int frames_per_buffer);
213
+int snd_efw_stream_start_duplex(struct snd_efw *efw);
211214 void snd_efw_stream_stop_duplex(struct snd_efw *efw);
212215 void snd_efw_stream_update_duplex(struct snd_efw *efw);
213216 void snd_efw_stream_destroy_duplex(struct snd_efw *efw);