Some AD1848 cleanups I forgot
This commit is contained in:
@@ -25,31 +25,21 @@
|
||||
|
||||
typedef struct {
|
||||
int index;
|
||||
uint8_t regs[32]; /* 16 original + 16 CS4231A extensions */
|
||||
uint8_t status;
|
||||
uint8_t regs[32], status; /* 16 original registers + 16 CS4231A extensions */
|
||||
|
||||
int trd;
|
||||
int mce;
|
||||
|
||||
int count;
|
||||
int trd, mce, count;
|
||||
|
||||
int16_t out_l, out_r;
|
||||
|
||||
double cd_vol_l, cd_vol_r;
|
||||
|
||||
int enable;
|
||||
|
||||
int irq, dma;
|
||||
|
||||
int freq;
|
||||
int enable, irq, dma, freq;
|
||||
|
||||
pc_timer_t timer_count;
|
||||
uint64_t timer_latch;
|
||||
|
||||
int16_t buffer[SOUNDBUFLEN * 2];
|
||||
int pos;
|
||||
|
||||
int type;
|
||||
int pos, type;
|
||||
} ad1848_t;
|
||||
|
||||
|
||||
|
||||
@@ -109,7 +109,7 @@ ad1848_write(uint16_t addr, uint8_t val, void *priv)
|
||||
case 7: freq /= 2560; break;
|
||||
}
|
||||
ad1848->freq = freq;
|
||||
ad1848->timer_latch = (uint64_t)((double)TIMER_USEC * (1000000.0 / (double)ad1848->freq));
|
||||
ad1848->timer_latch = (uint64_t) ((double) TIMER_USEC * (1000000.0 / (double) ad1848->freq));
|
||||
break;
|
||||
|
||||
case 9:
|
||||
|
||||
Reference in New Issue
Block a user