Lines Matching defs:substream

1287 static int snd_korg1212_copy_to(struct snd_pcm_substream *substream,
1290 struct snd_pcm_runtime *runtime = substream->runtime;
1291 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1320 static int snd_korg1212_copy_from(struct snd_pcm_substream *substream,
1323 struct snd_pcm_runtime *runtime = substream->runtime;
1324 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1365 static int snd_korg1212_playback_open(struct snd_pcm_substream *substream)
1368 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1369 struct snd_pcm_runtime *runtime = substream->runtime;
1377 snd_pcm_set_runtime_buffer(substream, korg1212->dma_play);
1381 korg1212->playback_substream = substream;
1396 static int snd_korg1212_capture_open(struct snd_pcm_substream *substream)
1399 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1400 struct snd_pcm_runtime *runtime = substream->runtime;
1408 snd_pcm_set_runtime_buffer(substream, korg1212->dma_rec);
1412 korg1212->capture_substream = substream;
1424 static int snd_korg1212_playback_close(struct snd_pcm_substream *substream)
1427 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1446 static int snd_korg1212_capture_close(struct snd_pcm_substream *substream)
1449 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1466 static int snd_korg1212_ioctl(struct snd_pcm_substream *substream,
1480 return snd_pcm_lib_ioctl(substream, cmd, arg);
1483 static int snd_korg1212_hw_params(struct snd_pcm_substream *substream,
1487 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1497 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
1536 static int snd_korg1212_prepare(struct snd_pcm_substream *substream)
1538 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1568 static int snd_korg1212_trigger(struct snd_pcm_substream *substream,
1571 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1609 static snd_pcm_uframes_t snd_korg1212_playback_pointer(struct snd_pcm_substream *substream)
1611 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1622 static snd_pcm_uframes_t snd_korg1212_capture_pointer(struct snd_pcm_substream *substream)
1624 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1635 static int snd_korg1212_playback_copy(struct snd_pcm_substream *substream,
1639 return snd_korg1212_copy_from(substream, src, pos, count);
1642 static int snd_korg1212_playback_silence(struct snd_pcm_substream *substream,
1647 struct snd_pcm_runtime *runtime = substream->runtime;
1648 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1655 static int snd_korg1212_capture_copy(struct snd_pcm_substream *substream,
1659 return snd_korg1212_copy_to(substream, dst, pos, count);