• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/sound/pci/cs5535audio/

Lines Matching defs:cs5535au

95 	struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
99 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_FRONT_DAC];
101 cs5535au->playback_substream = substream;
102 runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK]);
118 static int cs5535audio_build_dma_packets(struct cs5535audio *cs5535au,
133 snd_dma_pci_data(cs5535au->pci),
167 spin_lock_irq(&cs5535au->reg_lock);
168 dma->ops->disable_dma(cs5535au);
169 dma->ops->setup_prd(cs5535au, jmpprd_addr);
170 spin_unlock_irq(&cs5535au->reg_lock);
174 static void cs5535audio_playback_enable_dma(struct cs5535audio *cs5535au)
176 cs_writeb(cs5535au, ACC_BM0_CMD, BM_CTL_EN);
179 static void cs5535audio_playback_disable_dma(struct cs5535audio *cs5535au)
181 cs_writeb(cs5535au, ACC_BM0_CMD, 0);
184 static void cs5535audio_playback_pause_dma(struct cs5535audio *cs5535au)
186 cs_writeb(cs5535au, ACC_BM0_CMD, BM_CTL_PAUSE);
189 static void cs5535audio_playback_setup_prd(struct cs5535audio *cs5535au,
192 cs_writel(cs5535au, ACC_BM0_PRD, prd_addr);
195 static u32 cs5535audio_playback_read_prd(struct cs5535audio *cs5535au)
197 return cs_readl(cs5535au, ACC_BM0_PRD);
200 static u32 cs5535audio_playback_read_dma_pntr(struct cs5535audio *cs5535au)
202 return cs_readl(cs5535au, ACC_BM0_PNTR);
205 static void cs5535audio_capture_enable_dma(struct cs5535audio *cs5535au)
207 cs_writeb(cs5535au, ACC_BM1_CMD, BM_CTL_EN);
210 static void cs5535audio_capture_disable_dma(struct cs5535audio *cs5535au)
212 cs_writeb(cs5535au, ACC_BM1_CMD, 0);
215 static void cs5535audio_capture_pause_dma(struct cs5535audio *cs5535au)
217 cs_writeb(cs5535au, ACC_BM1_CMD, BM_CTL_PAUSE);
220 static void cs5535audio_capture_setup_prd(struct cs5535audio *cs5535au,
223 cs_writel(cs5535au, ACC_BM1_PRD, prd_addr);
226 static u32 cs5535audio_capture_read_prd(struct cs5535audio *cs5535au)
228 return cs_readl(cs5535au, ACC_BM1_PRD);
231 static u32 cs5535audio_capture_read_dma_pntr(struct cs5535audio *cs5535au)
233 return cs_readl(cs5535au, ACC_BM1_PNTR);
236 static void cs5535audio_clear_dma_packets(struct cs5535audio *cs5535au,
248 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
259 err = cs5535audio_build_dma_packets(cs5535au, dma, substream,
270 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
274 if (substream == cs5535au->playback_substream)
275 snd_ac97_update_power(cs5535au->ac97,
278 snd_ac97_update_power(cs5535au->ac97,
282 cs5535audio_clear_dma_packets(cs5535au, dma, substream);
288 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
289 return snd_ac97_set_rate(cs5535au->ac97, AC97_PCM_FRONT_DAC_RATE,
295 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
299 spin_lock(&cs5535au->reg_lock);
302 dma->ops->pause_dma(cs5535au);
305 dma->ops->enable_dma(cs5535au);
308 dma->ops->enable_dma(cs5535au);
311 dma->ops->enable_dma(cs5535au);
314 dma->ops->disable_dma(cs5535au);
317 dma->ops->disable_dma(cs5535au);
324 spin_unlock(&cs5535au->reg_lock);
331 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
336 curdma = dma->ops->read_dma_pntr(cs5535au);
354 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
358 runtime->hw.rates = cs5535au->ac97->rates[AC97_RATES_ADC];
360 cs5535au->capture_substream = substream;
361 runtime->private_data = &(cs5535au->dmas[CS5535AUDIO_DMA_CAPTURE]);
365 olpc_capture_open(cs5535au->ac97);
371 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
372 olpc_capture_close(cs5535au->ac97);
378 struct cs5535audio *cs5535au = snd_pcm_substream_chip(substream);
379 return snd_ac97_set_rate(cs5535au->ac97, AC97_PCM_LR_ADC_RATE,
425 int __devinit snd_cs5535audio_pcm(struct cs5535audio *cs5535au)
430 err = snd_pcm_new(cs5535au->card, "CS5535 Audio", 0, 1, 1, &pcm);
434 cs5535au->dmas[CS5535AUDIO_DMA_PLAYBACK].ops =
436 cs5535au->dmas[CS5535AUDIO_DMA_CAPTURE].ops =
443 pcm->private_data = cs5535au;
448 snd_dma_pci_data(cs5535au->pci),
450 cs5535au->pcm = pcm;