• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/sound/pci/echoaudio/

Lines Matching refs:pipe

711 this pipe.  Note that _MS_ (mono-to-stereo) playback modes are not used by ALSA
1022 static int allocate_pipes(struct echoaudio *chip, struct audiopipe *pipe,
1047 pipe->index = pipe_index;
1048 pipe->interleave = interleave;
1049 pipe->state = PIPE_STATE_STOPPED;
1052 position for a pipe. The DSP is constantly updating this value as
1054 pipe->dma_counter = &chip->comm_page->position[pipe_index];
1055 *pipe->dma_counter = 0;
1062 static int free_pipes(struct echoaudio *chip, struct audiopipe *pipe)
1067 DE_ACT(("free_pipes: Pipe %d\n", pipe->index));
1068 snd_assert(is_pipe_allocated(chip, pipe->index), return -EINVAL);
1069 snd_assert(pipe->state == PIPE_STATE_STOPPED, return -EINVAL);
1071 for (channel_mask = i = 0; i < pipe->interleave; i++)
1072 channel_mask |= 1 << (pipe->index + i);
1085 static int sglist_init(struct echoaudio *chip, struct audiopipe *pipe)
1087 pipe->sglist_head = 0;
1088 memset(pipe->sgpage.area, 0, PAGE_SIZE);
1089 chip->comm_page->sglist_addr[pipe->index].addr =
1090 cpu_to_le32(pipe->sgpage.addr);
1096 static int sglist_add_mapping(struct echoaudio *chip, struct audiopipe *pipe,
1099 int head = pipe->sglist_head;
1100 struct sg_entry *list = (struct sg_entry *)pipe->sgpage.area;
1105 pipe->sglist_head++;
1115 static inline int sglist_add_irq(struct echoaudio *chip, struct audiopipe *pipe)
1117 return sglist_add_mapping(chip, pipe, 0, 0);
1122 static inline int sglist_wrap(struct echoaudio *chip, struct audiopipe *pipe)
1124 return sglist_add_mapping(chip, pipe, pipe->sgpage.addr, 0);