#include "./fireworks.h"
#define READY_TIMEOUT_MS …
static int init_stream(struct snd_efw *efw, struct amdtp_stream *stream)
{ … }
static int start_stream(struct snd_efw *efw, struct amdtp_stream *stream,
unsigned int rate)
{ … }
static void destroy_stream(struct snd_efw *efw, struct amdtp_stream *stream)
{ … }
static int
check_connection_used_by_others(struct snd_efw *efw, struct amdtp_stream *s)
{ … }
int snd_efw_stream_init_duplex(struct snd_efw *efw)
{ … }
static int keep_resources(struct snd_efw *efw, struct amdtp_stream *stream,
unsigned int rate, unsigned int mode)
{ … }
int snd_efw_stream_reserve_duplex(struct snd_efw *efw, unsigned int rate,
unsigned int frames_per_period,
unsigned int frames_per_buffer)
{ … }
int snd_efw_stream_start_duplex(struct snd_efw *efw)
{ … }
void snd_efw_stream_stop_duplex(struct snd_efw *efw)
{ … }
void snd_efw_stream_update_duplex(struct snd_efw *efw)
{ … }
void snd_efw_stream_destroy_duplex(struct snd_efw *efw)
{ … }
void snd_efw_stream_lock_changed(struct snd_efw *efw)
{ … }
int snd_efw_stream_lock_try(struct snd_efw *efw)
{ … }
void snd_efw_stream_lock_release(struct snd_efw *efw)
{ … }