Lines Matching refs:dac

83 	struct hal2_codec dac;
303 if (hal2->dac.pbus.pbus->pbdma_ctrl & HPC3_PDMACTRL_INT) {
304 snd_pcm_period_elapsed(hal2->dac.substream);
335 unsigned int master = hal2->dac.master;
336 int inc = hal2->dac.inc;
337 int mod = hal2->dac.mod;
358 struct hal2_pbus *pbus = &hal2->dac.pbus;
365 sample_size = 2 * hal2->dac.voices;
385 | (hal2->dac.voices << H2I_C1_DATAT_SHIFT));
415 struct hal2_pbus *pbus = &hal2->dac.pbus;
417 pbus->pbus->pbdma_dptr = hal2->dac.desc_dma;
435 hal2->dac.pbus.pbus->pbdma_ctrl = HPC3_PDMACTRL_LD;
517 return hal2_alloc_dmabuf(hal2, &hal2->dac, DMA_TO_DEVICE);
524 hal2_free_dmabuf(hal2, &hal2->dac, DMA_TO_DEVICE);
532 struct hal2_codec *dac = &hal2->dac;
534 dac->voices = runtime->channels;
535 dac->sample_rate = hal2_compute_rate(dac, runtime->rate);
536 memset(&dac->pcm_indirect, 0, sizeof(dac->pcm_indirect));
537 dac->pcm_indirect.hw_buffer_size = H2_BUF_SIZE;
538 dac->pcm_indirect.hw_queue_size = H2_BUF_SIZE / 2;
539 dac->pcm_indirect.hw_io = dac->buffer_dma;
540 dac->pcm_indirect.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream);
541 dac->substream = substream;
567 struct hal2_codec *dac = &hal2->dac;
569 return snd_pcm_indirect_playback_pointer(substream, &dac->pcm_indirect,
570 dac->pbus.pbus->pbdma_bptr);
577 unsigned char *buf = hal2->dac.buffer + rec->hw_data;
581 hal2->dac.buffer_dma + rec->hw_data, bytes,
589 struct hal2_codec *dac = &hal2->dac;
592 &dac->pcm_indirect,
799 hal2_init_codec(&hal2->dac, hpc3, 0);
825 hpc3->pbus_dmacfg[hal2->dac.pbus.pbusnr][0] = 0x8208844;