• 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/asihpi/

Lines Matching defs:dpcm

455 	struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
474 hpi_handle_error(hpi_format_create(&dpcm->format,
479 if (hpi_instream_reset(ss, dpcm->h_stream) != 0)
483 dpcm->h_stream, &dpcm->format) != 0)
487 dpcm->hpi_buffer_attached = 0;
490 err = hpi_stream_host_buffer_attach(ss, dpcm->h_stream,
504 err = hpi_stream_get_info_ex(ss, dpcm->h_stream, NULL,
505 &dpcm->hpi_buffer_attached,
509 dpcm->hpi_buffer_attached);
518 dpcm->bytes_per_sec = bytes_per_sec;
519 dpcm->pcm_size = params_buffer_bytes(params);
520 dpcm->pcm_count = params_period_bytes(params);
522 dpcm->pcm_size, dpcm->pcm_count, bytes_per_sec);
524 dpcm->pcm_irq_pos = 0;
525 dpcm->pcm_buf_pos = 0;
533 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
536 expiry = (dpcm->pcm_count * HZ / dpcm->bytes_per_sec);
539 dpcm->timer.expires = jiffies + expiry;
540 dpcm->respawn_timer = 1;
541 add_timer(&dpcm->timer);
547 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
549 dpcm->respawn_timer = 0;
550 del_timer(&dpcm->timer);
556 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;
592 dpcm->h_stream,
606 hpi_handle_error(hpi_stream_start(ss, dpcm->h_stream));
627 hpi_handle_error(hpi_stream_stop(ss, dpcm->h_stream));
630 hpi_outstream_reset(ss, dpcm->h_stream));
634 dpcm->h_stream));
639 hpi_handle_error(hpi_stream_start(ss, dpcm->h_stream));
645 hpi_handle_error(hpi_stream_stop(ss, dpcm->h_stream));
659 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
660 if (dpcm->hpi_buffer_attached)
661 hpi_stream_host_buffer_detach(ss, dpcm->h_stream);
669 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
670 kfree(dpcm);
720 struct snd_card_asihpi_pcm *dpcm = (struct snd_card_asihpi_pcm *)data;
721 struct snd_card_asihpi *card = snd_pcm_substream_chip(dpcm->substream);
732 snd_pcm_group_for_each_entry(s, dpcm->substream) {
784 remdata = newdata % dpcm->pcm_count;
786 next_jiffies = ((dpcm->pcm_count-remdata) * HZ / dpcm->bytes_per_sec)+1;
788 dpcm->timer.expires = jiffies + next_jiffies;
792 snd_pcm_group_for_each_entry(s, dpcm->substream) {
813 dpcm->pcm_count);
824 if (dpcm->respawn_timer)
825 add_timer(&dpcm->timer);
840 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
844 hpi_handle_error(hpi_outstream_reset(ss, dpcm->h_stream));
845 dpcm->pcm_irq_pos = 0;
846 dpcm->pcm_buf_pos = 0;
855 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
866 err = hpi_outstream_get_info_ex(ss, dpcm->h_stream, NULL,
871 dpcm->pcm_buf_pos = frames_to_bytes(runtime, samples_played);
877 ptr = bytes_to_frames(runtime, dpcm->pcm_buf_pos % dpcm->pcm_size);
930 struct snd_card_asihpi_pcm *dpcm;
934 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL);
935 if (dpcm == NULL)
940 substream->number, &dpcm->h_stream);
943 kfree(dpcm);
954 init_timer(&dpcm->timer);
955 dpcm->timer.data = (unsigned long) dpcm;
956 dpcm->timer.function = snd_card_asihpi_timer_function;
957 dpcm->substream = substream;
958 runtime->private_data = dpcm;
965 snd_card_asihpi_playback_format(card, dpcm->h_stream,
1007 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1009 hpi_handle_error(hpi_outstream_close(ss, dpcm->h_stream));
1022 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1033 hpi_handle_error(hpi_outstream_write_buf(ss, dpcm->h_stream,
1034 runtime->dma_area, len, &dpcm->format));
1046 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1052 hpi_handle_error(hpi_outstream_write_buf(ss, dpcm->h_stream,
1053 runtime->dma_area, len, &dpcm->format));
1086 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1089 substream->number, dpcm->pcm_buf_pos);
1094 return bytes_to_frames(runtime, dpcm->pcm_buf_pos % dpcm->pcm_size);
1106 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1108 hpi_handle_error(hpi_instream_reset(ss, dpcm->h_stream));
1109 dpcm->pcm_irq_pos = 0;
1110 dpcm->pcm_buf_pos = 0;
1168 struct snd_card_asihpi_pcm *dpcm;
1171 dpcm = kzalloc(sizeof(*dpcm), GFP_KERNEL);
1172 if (dpcm == NULL)
1180 substream->number, &dpcm->h_stream));
1182 kfree(dpcm);
1189 init_timer(&dpcm->timer);
1190 dpcm->timer.data = (unsigned long) dpcm;
1191 dpcm->timer.function = snd_card_asihpi_timer_function;
1192 dpcm->substream = substream;
1193 runtime->private_data = dpcm;
1197 snd_card_asihpi_capture_format(card, dpcm->h_stream,
1226 struct snd_card_asihpi_pcm *dpcm = substream->runtime->private_data;
1228 hpi_handle_error(hpi_instream_close(ss, dpcm->h_stream));
1237 struct snd_card_asihpi_pcm *dpcm = runtime->private_data;
1243 hpi_handle_error(hpi_instream_read_buf(ss, dpcm->h_stream,
1247 dpcm->pcm_irq_pos = dpcm->pcm_irq_pos + data_size;