forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-09-20 cf4ce59b3b70238352c7f1729f0f7223214828ad
kernel/sound/firewire/dice/dice.h
....@@ -1,10 +1,9 @@
1
+/* SPDX-License-Identifier: GPL-2.0-only */
12 /*
23 * dice.h - a part of driver for Dice based devices
34 *
45 * Copyright (c) Clemens Ladisch
56 * Copyright (c) 2014 Takashi Sakamoto
6
- *
7
- * Licensed under the terms of the GNU General Public License, version 2.
87 */
98
109 #ifndef SOUND_DICE_H_INCLUDED
....@@ -113,6 +112,8 @@
113112 bool global_enabled;
114113 struct completion clock_accepted;
115114 unsigned int substreams_counter;
115
+
116
+ struct amdtp_domain domain;
116117 };
117118
118119 enum snd_dice_addr_type {
....@@ -205,10 +206,13 @@
205206
206207 int snd_dice_stream_get_rate_mode(struct snd_dice *dice, unsigned int rate,
207208 enum snd_dice_rate_mode *mode);
208
-int snd_dice_stream_start_duplex(struct snd_dice *dice, unsigned int rate);
209
+int snd_dice_stream_start_duplex(struct snd_dice *dice);
209210 void snd_dice_stream_stop_duplex(struct snd_dice *dice);
210211 int snd_dice_stream_init_duplex(struct snd_dice *dice);
211212 void snd_dice_stream_destroy_duplex(struct snd_dice *dice);
213
+int snd_dice_stream_reserve_duplex(struct snd_dice *dice, unsigned int rate,
214
+ unsigned int events_per_period,
215
+ unsigned int events_per_buffer);
212216 void snd_dice_stream_update_duplex(struct snd_dice *dice);
213217 int snd_dice_stream_detect_current_formats(struct snd_dice *dice);
214218
....@@ -225,7 +229,9 @@
225229
226230 int snd_dice_detect_tcelectronic_formats(struct snd_dice *dice);
227231 int snd_dice_detect_alesis_formats(struct snd_dice *dice);
232
+int snd_dice_detect_alesis_mastercontrol_formats(struct snd_dice *dice);
228233 int snd_dice_detect_extension_formats(struct snd_dice *dice);
229234 int snd_dice_detect_mytek_formats(struct snd_dice *dice);
235
+int snd_dice_detect_presonus_formats(struct snd_dice *dice);
230236
231237 #endif