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;
437 static int emu8k_pcm_copy(struct snd_pcm_substream *subs,
441 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
451 static int emu8k_pcm_silence(struct snd_pcm_substream *subs,
454 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
491 static int emu8k_pcm_copy(struct snd_pcm_substream *subs,
495 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
498 pos = bytes_to_frames(subs->runtime, pos);
499 count = bytes_to_frames(subs->runtime, count);
504 static int emu8k_pcm_silence(struct snd_pcm_substream *subs,
507 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
510 pos = bytes_to_frames(subs->runtime, pos);
511 count = bytes_to_frames(subs->runtime, count);
521 static int emu8k_pcm_hw_params(struct snd_pcm_substream *subs,
524 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
538 subs->dma_buffer.bytes = params_buffer_bytes(hw_params);
546 static int emu8k_pcm_hw_free(struct snd_pcm_substream *subs)
548 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
564 static int emu8k_pcm_prepare(struct snd_pcm_substream *subs)
566 struct snd_emu8k_pcm *rec = subs->runtime->private_data;
568 rec->pitch = 0xe000 + calc_rate_offset(subs->runtime->rate);
572 rec->buf_size = subs->runtime->buffer_size;
573 rec->period_size = subs->runtime->period_size;
574 rec->voices = subs->runtime->channels;
611 static snd_pcm_uframes_t emu8k_pcm_pointer(struct snd_pcm_substream *subs)
613 struct snd_emu8k_pcm *rec = subs->runtime->private_data;