*/
#include "pcm.h"
+#include "pcm-indirect.h"
#include "rawmidi.h"
#include "ac97_codec.h"
#include "cs46xx_dsp_spos.h"
unsigned int ctl;
unsigned int shift; /* Shift count to trasform frames in bytes */
- unsigned int sw_bufsize;
- unsigned int sw_data; /* Offset to next dst (or src) in sw ring buffer */
- unsigned int sw_io;
- int sw_ready; /* Bytes ready to be transferred to/from hw */
- unsigned int hw_data; /* Offset to next dst (or src) in hw ring buffer */
- unsigned int hw_io; /* Ring buffer hw pointer */
- int hw_ready; /* Bytes ready for play (or captured) in hw ring buffer */
- size_t appl_ptr; /* Last seen appl_ptr */
+ snd_pcm_indirect_t pcm_rec;
snd_pcm_substream_t *substream;
pcm_channel_descriptor_t * pcm_channel;
typedef struct {
char name[24];
unsigned long base;
- unsigned long remap_addr;
+ void __iomem *remap_addr;
unsigned long size;
struct resource *resource;
} snd_cs46xx_region_t;
unsigned int ctl;
unsigned int shift; /* Shift count to trasform frames in bytes */
- unsigned int sw_bufsize;
- unsigned int sw_data; /* Offset to next dst (or src) in sw ring buffer */
- unsigned int sw_io;
- int sw_ready; /* Bytes ready to be transferred to/from hw */
- unsigned int hw_data; /* Offset to next dst (or src) in hw ring buffer */
- unsigned int hw_io; /* Ring buffer hw pointer */
- int hw_ready; /* Bytes ready for play (or captured) in hw ring buffer */
- size_t appl_ptr; /* Last seen appl_ptr */
+ snd_pcm_indirect_t pcm_rec;
snd_pcm_substream_t *substream;
} capt;
unsigned int midcr;
unsigned int uartm;
- struct snd_dma_device dma_dev;
-
int amplifier;
void (*amplifier_ctrl)(cs46xx_t *, int);
void (*active_ctrl)(cs46xx_t *, int);