Lines Matching refs:subs

216 static int emu8k_pcm_open(struct snd_pcm_substream *subs)
218 struct snd_emu8000 *emu = snd_pcm_substream_chip(subs);
220 struct snd_pcm_runtime *runtime = subs->runtime;
227 rec->substream = subs;
244 static int emu8k_pcm_close(struct snd_pcm_substream *subs)
246 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
248 subs->runtime->private_data = NULL;
373 static int emu8k_pcm_trigger(struct snd_pcm_substream *subs, int cmd)
375 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
451 static int emu8k_pcm_copy(struct snd_pcm_substream *subs,
455 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
464 static int emu8k_pcm_copy_kernel(struct snd_pcm_substream *subs,
468 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
478 static int emu8k_pcm_silence(struct snd_pcm_substream *subs,
481 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
519 static int emu8k_pcm_copy(struct snd_pcm_substream *subs,
523 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
526 pos = bytes_to_frames(subs->runtime, pos);
527 count = bytes_to_frames(subs->runtime, count);
532 static int emu8k_pcm_copy_kernel(struct snd_pcm_substream *subs,
536 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
539 pos = bytes_to_frames(subs->runtime, pos);
540 count = bytes_to_frames(subs->runtime, count);
545 static int emu8k_pcm_silence(struct snd_pcm_substream *subs,
548 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
551 pos = bytes_to_frames(subs->runtime, pos);
552 count = bytes_to_frames(subs->runtime, count);
562 static int emu8k_pcm_hw_params(struct snd_pcm_substream *subs,
565 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
579 subs->dma_buffer.bytes = params_buffer_bytes(hw_params);
587 static int emu8k_pcm_hw_free(struct snd_pcm_substream *subs)
589 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
605 static int emu8k_pcm_prepare(struct snd_pcm_substream *subs)
607 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
609 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate);
613 rec->buf_size = subs->runtime->buffer_size;
614 rec->period_size = subs->runtime->period_size;
615 rec->voices = subs->runtime->channels;
651 static snd_pcm_uframes_t emu8k_pcm_pointer(struct snd_pcm_substream *subs)
653 struct snd_emu8k_pcm *rec = subs->runtime->private_data;