#include <linux/device.h>
#include <linux/err.h>
#include <linux/firewire.h>
#include <linux/module.h>
#include <linux/slab.h>
#include <sound/pcm.h>
#include "amdtp.h"
Go to the source code of this file.
#define AMDTP_FDF_AM824 (0 << 19) |
#define AMDTP_FDF_SFC_SHIFT 16 |
#define CIP_EOH (1u << 31) |
#define CIP_FMT_AM (0x10 << 24) |
#define CYCLES_PER_SECOND 8000 |
#define INTERRUPT_INTERVAL 16 |
#define TICKS_PER_CYCLE 3072 |
#define TRANSFER_DELAY_TICKS 0x2e00 /* 479.17 µs */ |
amdtp_out_stream_destroy - free stream resources : the AMDTP output stream to destroy
Definition at line 63 of file amdtp.c.
amdtp_out_stream_get_max_payload - get the stream's packet size : the AMDTP output stream
This function must not be called before the stream has been configured with amdtp_out_stream_set_hw_params(), amdtp_out_stream_set_pcm(), and amdtp_out_stream_set_midi().
Definition at line 116 of file amdtp.c.
amdtp_out_stream_init - initialize an AMDTP output stream structure : the AMDTP output stream to initialize : the target of the stream : the packet transmission method to use
Definition at line 42 of file amdtp.c.
amdtp_out_stream_pcm_abort - abort the running PCM device : the AMDTP stream about to be stopped
If the isochronous stream needs to be stopped asynchronously, call this function first to stop the PCM device.
Definition at line 598 of file amdtp.c.
amdtp_out_stream_pcm_pointer - get the PCM buffer position : the AMDTP output stream that transports the PCM data
Returns the current buffer position, in frames.
Definition at line 542 of file amdtp.c.
amdtp_out_stream_pcm_prepare - prepare PCM device for running : the AMDTP output stream
This function should be called from the PCM device's .prepare callback.
Definition at line 176 of file amdtp.c.
amdtp_out_stream_set_pcm_format - set the PCM format : the AMDTP output stream to configure : the format of the ALSA PCM device
The sample format must be set before the stream is started, and must not be changed while the stream is running.
Definition at line 150 of file amdtp.c.
amdtp_out_stream_set_rate - set the sample rate : the AMDTP output stream to configure : the sample rate
The sample rate must be set before the stream is started, and must not be changed while the stream is running.
Definition at line 79 of file amdtp.c.
amdtp_out_stream_start - start sending packets : the AMDTP output stream to start : the isochronous channel on the bus : firewire speed code
The stream cannot be started until it has been configured with amdtp_out_stream_set_hw_params(), amdtp_out_stream_set_pcm(), and amdtp_out_stream_set_midi(); and it must be started before any PCM or MIDI device can be started.
Definition at line 462 of file amdtp.c.
amdtp_out_stream_stop - stop sending packets : the AMDTP output stream to stop
All PCM and MIDI devices of the stream must be stopped before the stream itself can be stopped.
Definition at line 572 of file amdtp.c.
amdtp_out_stream_update - update the stream after a bus reset : the AMDTP output stream
Definition at line 558 of file amdtp.c.