Lines Matching refs:capt
713 chip->capt.hw_buf.area + rec->hw_data, bytes); in snd_cs46xx_cp_trans_copy()
719 snd_pcm_indirect_capture_transfer(substream, &chip->capt.pcm_rec, snd_cs46xx_cp_trans_copy); in snd_cs46xx_capture_transfer()
761 size_t ptr = snd_cs46xx_peek(chip, BA1_CBA) - chip->capt.hw_buf.addr; in snd_cs46xx_capture_direct_pointer()
762 return ptr >> chip->capt.shift; in snd_cs46xx_capture_direct_pointer()
768 size_t ptr = snd_cs46xx_peek(chip, BA1_CBA) - chip->capt.hw_buf.addr; in snd_cs46xx_capture_indirect_pointer()
769 return snd_pcm_indirect_capture_pointer(substream, &chip->capt.pcm_rec, ptr); in snd_cs46xx_capture_indirect_pointer()
850 snd_cs46xx_poke(chip, BA1_CCTL, chip->capt.ctl | tmp); in snd_cs46xx_capture_trigger()
1110 if (runtime->dma_area != chip->capt.hw_buf.area) in snd_cs46xx_capture_hw_params()
1112 runtime->dma_area = chip->capt.hw_buf.area; in snd_cs46xx_capture_hw_params()
1113 runtime->dma_addr = chip->capt.hw_buf.addr; in snd_cs46xx_capture_hw_params()
1114 runtime->dma_bytes = chip->capt.hw_buf.bytes; in snd_cs46xx_capture_hw_params()
1117 if (runtime->dma_area == chip->capt.hw_buf.area) { in snd_cs46xx_capture_hw_params()
1135 if (runtime->dma_area != chip->capt.hw_buf.area) in snd_cs46xx_capture_hw_free()
1149 snd_cs46xx_poke(chip, BA1_CBA, chip->capt.hw_buf.addr); in snd_cs46xx_capture_prepare()
1150 chip->capt.shift = 2; in snd_cs46xx_capture_prepare()
1151 memset(&chip->capt.pcm_rec, 0, sizeof(chip->capt.pcm_rec)); in snd_cs46xx_capture_prepare()
1152 chip->capt.pcm_rec.sw_buffer_size = snd_pcm_lib_buffer_bytes(substream); in snd_cs46xx_capture_prepare()
1153 chip->capt.pcm_rec.hw_buffer_size = runtime->period_size * CS46XX_FRAGS << 2; in snd_cs46xx_capture_prepare()
1186 if (chip->capt.substream) in snd_cs46xx_interrupt()
1187 snd_pcm_period_elapsed(chip->capt.substream); in snd_cs46xx_interrupt()
1216 if (chip->capt.substream) in snd_cs46xx_interrupt()
1217 snd_pcm_period_elapsed(chip->capt.substream); in snd_cs46xx_interrupt()
1410 PAGE_SIZE, &chip->capt.hw_buf) < 0) in snd_cs46xx_capture_open()
1412 chip->capt.substream = substream; in snd_cs46xx_capture_open()
1461 chip->capt.substream = NULL; in snd_cs46xx_capture_close()
1462 snd_dma_free_pages(&chip->capt.hw_buf); in snd_cs46xx_capture_close()
3127 chip->capt.ctl = tmp & 0x0000ffff; in snd_cs46xx_start_dsp()
3688 chip->capt.ctl = tmp & 0x0000ffff; in snd_cs46xx_resume()