/linux-2.4.37.9/drivers/sound/ |
D | au1550_i2s.c | 151 } dma_dac, dma_adc; member 259 struct dmabuf *dac = &s->dma_dac; in set_adc_rate() 286 struct dmabuf *dac = &s->dma_dac; in set_dac_rate() 312 struct dmabuf *db = &s->dma_dac; in stop_dac() 391 struct dmabuf *db = &s->dma_dac; in start_dac() 530 return prog_dmabuf(s, &s->dma_dac); in prog_dmabuf_dac() 539 struct dmabuf *db = &s->dma_dac; in dac_dma_interrupt() 662 if (s->dma_dac.mapped || !s->dma_dac.ready || s->dma_dac.stopped) in drain_dac() 667 count = s->dma_dac.count; in drain_dac() 676 SAMP_RATE : s->dma_dac.sample_rate); in drain_dac() [all …]
|
D | esssolo1.c | 216 } dma_dac, dma_adc; member 359 if (!(s->ena & FMODE_WRITE) && (s->dma_dac.mapped || s->dma_dac.count > 0) && s->dma_dac.ready) { in start_dac() 518 if ((c = prog_dmabuf(s, &s->dma_dac))) in prog_dmabuf_dac() 520 …memset(s->dma_dac.rawbuf, (s->fmt & (AFMT_U8 | AFMT_U16_LE)) ? 0 : 0x80, s->dma_dac.dmasize); /* a… in prog_dmabuf_dac() 521 va = s->dma_dac.dmaaddr; in prog_dmabuf_dac() 522 if ((va ^ (va + s->dma_dac.dmasize - 1)) & ~((1<<20)-1)) in prog_dmabuf_dac() 526 outw(s->dma_dac.dmasize, s->iobase+4); in prog_dmabuf_dac() 527 c = - s->dma_dac.fragsamples; in prog_dmabuf_dac() 531 s->dma_dac.ready = 1; in prog_dmabuf_dac() 579 hwptr = (s->dma_dac.dmasize - inw(s->iobase+4)) % s->dma_dac.dmasize; in solo1_update_ptr() [all …]
|
D | maestro3.c | 248 } dma_dac, dma_adc; member 667 if( (!s->dma_dac.mapped && s->dma_dac.count < 1) || in start_dac() 668 !s->dma_dac.ready || in start_dac() 740 struct dmabuf *db = &s->dma_dac; in m3_play_setup() 1053 virt_to_bus(s->dma_dac.rawbuf); in get_dmaa() 1078 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() 1142 unsigned char *buf = s->dma_dac.rawbuf; in clear_advance() 1143 unsigned bsize = s->dma_dac.dmasize; in clear_advance() 1144 unsigned bptr = s->dma_dac.swptr; in clear_advance() 1145 unsigned len = s->dma_dac.fragsize; in clear_advance() [all …]
|
D | au1550_psc.c | 147 } dma_dac, dma_adc; member 362 struct dmabuf *dac = &s->dma_dac; in set_adc_rate() 414 struct dmabuf *dac = &s->dma_dac; in set_dac_rate() 469 struct dmabuf *db = &s->dma_dac; in stop_dac() 603 struct dmabuf *db = &s->dma_dac; in start_dac() 738 return prog_dmabuf(s, &s->dma_dac); in prog_dmabuf_dac() 747 struct dmabuf *db = &s->dma_dac; in dac_dma_interrupt() 866 if (s->dma_dac.mapped || !s->dma_dac.ready || s->dma_dac.stopped) in drain_dac() 871 count = s->dma_dac.count; in drain_dac() 873 if (count <= s->dma_dac.fragsize) in drain_dac() [all …]
|
D | sonicvibes.c | 356 } dma_dac, dma_adc; member 679 if ((s->dma_dac.mapped || s->dma_dac.count > 0) && s->dma_dac.ready) { in start_dac() 724 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() 809 unsigned char *buf = s->dma_dac.rawbuf; in clear_advance() 810 unsigned bsize = s->dma_dac.dmasize; in clear_advance() 811 unsigned bptr = s->dma_dac.swptr; in clear_advance() 812 unsigned len = s->dma_dac.fragsize; in clear_advance() 847 if (s->dma_dac.ready) { in sv_update_ptr() 848 hwptr = (s->dma_dac.dmasize - get_dmaa(s)) % s->dma_dac.dmasize; in sv_update_ptr() 849 diff = (s->dma_dac.dmasize + hwptr - s->dma_dac.hwptr) % s->dma_dac.dmasize; in sv_update_ptr() [all …]
|
D | au1000.c | 164 } dma_dac , dma_adc; member 347 struct dmabuf *dac = &s->dma_dac; in set_adc_rate() 391 struct dmabuf *dac = &s->dma_dac; in set_dac_rate() 437 struct dmabuf *db = &s->dma_dac; in stop_dac() 505 struct dmabuf *db = &s->dma_dac; in start_dac() 707 return prog_dmabuf(s, &s->dma_dac); in prog_dmabuf_dac() 715 struct dmabuf *dac = &s->dma_dac; in dac_dma_interrupt() 928 if (s->dma_dac.mapped || !s->dma_dac.ready || s->dma_dac.stopped) in drain_dac() 933 count = s->dma_dac.count; in drain_dac() 942 48000 : s->dma_dac.sample_rate); in drain_dac() [all …]
|
D | maestro.c | 432 } dma_dac, dma_adc; member 1321 if ( (s->dma_dac.mapped || s->dma_dac.count > 0) && in start_dac() 1322 s->dma_dac.ready && in start_dac() 1401 if(!channel) ess->dma_dac.base = pa&0xFFFF; in ess_play_setup() 1607 offset-=s->dma_dac.base; in get_dmaa() 1705 if (s->dma_dac.fragsize == 0) dac_rate = BOB_MIN; in calc_bob_rate() 1708 (s->dma_dac.fragsize) ; in calc_bob_rate() 1737 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() 1803 unsigned char *buf = s->dma_dac.rawbuf; in clear_advance() 1804 unsigned bsize = s->dma_dac.dmasize; in clear_advance() [all …]
|
D | cmpci.c | 393 } dma_dac, dma_adc; member 525 curr_addr = s->dma_dac.dmasize - curr_addr; in get_dmadac() 1115 if ((s->dma_dac.mapped || s->dma_dac.count > 0) && s->dma_dac.ready) { in start_dac_unlocked() 1229 struct dmabuf *db = rec ? &s->dma_adc : &s->dma_dac; in prog_dmabuf() 1315 unsigned char *buf = s->dma_dac.rawbuf; in clear_advance() 1317 unsigned bsize = s->dma_dac.dmasize; in clear_advance() 1318 unsigned bptr = s->dma_dac.swptr; in clear_advance() 1319 unsigned len = s->dma_dac.fragsize; in clear_advance() 1360 if (s->dma_dac.count + (signed)s->dma_dac.fragsize <= (signed)s->dma_dac.dmasize) in cm_update_ptr() 1380 if (s->dma_dac.ready) { in cm_update_ptr() [all …]
|
D | swarm_cs4297a.c | 312 serdma_t dma_dac, dma_adc; member 333 s->dma_dac.ready = 1; in prog_dmabuf_dac() 674 init_serdma(&s->dma_dac)) in dma_init() 685 s->dma_dac.descrtab[i].descr_a = M_DMA_SERRX_SOP | V_DMA_DSCRA_A_SIZE(1) | in dma_init() 686 (s->dma_dac.dma_buf_phys + i*FRAME_BYTES); in dma_init() 687 s->dma_dac.descrtab[i].descr_b = V_DMA_DSCRB_PKT_SIZE(FRAME_BYTES); in dma_init() 701 out64(s->dma_dac.descrtab_phys, SS_CSR(R_SER_DMA_DSCR_BASE_TX)); in dma_init() 731 serdma_t *d = &s->dma_dac; in serdma_reg_access() 746 interruptible_sleep_on(&s->dma_dac.reg_wait); in serdma_reg_access() 833 if (!(s->ena & FMODE_WRITE) && (s->dma_dac.mapped || in start_dac() [all …]
|
D | ite8172.c | 322 } dma_dac, dma_adc; member 561 struct dmabuf* db = &s->dma_dac; in stop_dac() 585 struct dmabuf* db = &s->dma_dac; in start_dac() 754 return prog_dmabuf(s, &s->dma_dac, s->dacrate, in prog_dmabuf_dac() 765 struct dmabuf* dac = &s->dma_dac; in it8172_interrupt() 1020 if (s->dma_dac.mapped || !s->dma_dac.ready || s->dma_dac.stopped) in drain_dac() 1025 count = s->dma_dac.count; in drain_dac() 1173 struct dmabuf *db = &s->dma_dac; in it8172_write() 1264 if (!s->dma_dac.ready) in it8172_poll() 1266 poll_wait(file, &s->dma_dac.wait, wait); in it8172_poll() [all …]
|
D | nec_vrc5477.c | 225 } dma_dac, dma_adc; member 408 struct dmabuf* db = &s->dma_dac; in stop_dac() 448 struct dmabuf* db = &s->dma_dac; in start_dac() 705 return prog_dmabuf(s, &s->dma_dac, s->dacRate); in prog_dmabuf_dac() 755 struct dmabuf* dac = &s->dma_dac; in vrc5477_ac97_dac_interrupt() 912 if (!s->dma_dac.ready) in drain_dac() 917 count = s->dma_dac.count; in drain_dac() 1097 struct dmabuf *db = &s->dma_dac; in copy_two_channel_dac_from_user() 1132 struct dmabuf *db = &s->dma_dac; in copy_dac_from_user() 1228 struct dmabuf *db = &s->dma_dac; in vrc5477_ac97_write() [all …]
|
/linux-2.4.37.9/drivers/sound/cs4281/ |
D | cs4281m.c | 315 } dma_dac, dma_adc; member 1632 if (!(s->ena & FMODE_WRITE) && (s->dma_dac.mapped || in start_dac() 1633 (s->dma_dac.count > 0 in start_dac() 1634 && s->dma_dac.ready)) in start_dac() 1959 s->dma_dac.type = CS_TYPE_DAC; in prog_dmabuf_dac() 1960 if ((c = prog_dmabuf(s, &s->dma_dac))) in prog_dmabuf_dac() 1962 memset(s->dma_dac.rawbuf, in prog_dmabuf_dac() 1964 s->dma_dac.dmasize); in prog_dmabuf_dac() 1966 va = virt_to_bus(s->dma_dac.rawbuf); in prog_dmabuf_dac() 1968 count = s->dma_dac.dmasize; in prog_dmabuf_dac() [all …]
|