Lines Matching defs:substream

1288 static int snd_korg1212_copy_to(struct snd_pcm_substream *substream,
1292 struct snd_pcm_runtime *runtime = substream->runtime;
1293 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1325 static int snd_korg1212_copy_from(struct snd_pcm_substream *substream,
1329 struct snd_pcm_runtime *runtime = substream->runtime;
1330 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1374 static int snd_korg1212_playback_open(struct snd_pcm_substream *substream)
1377 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1378 struct snd_pcm_runtime *runtime = substream->runtime;
1386 snd_pcm_set_runtime_buffer(substream, &korg1212->dma_play);
1390 korg1212->playback_substream = substream;
1405 static int snd_korg1212_capture_open(struct snd_pcm_substream *substream)
1408 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1409 struct snd_pcm_runtime *runtime = substream->runtime;
1417 snd_pcm_set_runtime_buffer(substream, &korg1212->dma_rec);
1421 korg1212->capture_substream = substream;
1433 static int snd_korg1212_playback_close(struct snd_pcm_substream *substream)
1436 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1455 static int snd_korg1212_capture_close(struct snd_pcm_substream *substream)
1458 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1475 static int snd_korg1212_ioctl(struct snd_pcm_substream *substream,
1489 return snd_pcm_lib_ioctl(substream, cmd, arg);
1492 static int snd_korg1212_hw_params(struct snd_pcm_substream *substream,
1496 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1506 if (substream->pstr->stream == SNDRV_PCM_STREAM_PLAYBACK) {
1544 static int snd_korg1212_prepare(struct snd_pcm_substream *substream)
1546 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1576 static int snd_korg1212_trigger(struct snd_pcm_substream *substream,
1579 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1617 static snd_pcm_uframes_t snd_korg1212_playback_pointer(struct snd_pcm_substream *substream)
1619 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1630 static snd_pcm_uframes_t snd_korg1212_capture_pointer(struct snd_pcm_substream *substream)
1632 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1643 static int snd_korg1212_playback_copy(struct snd_pcm_substream *substream,
1647 return snd_korg1212_copy_from(substream, src, pos, count, false);
1650 static int snd_korg1212_playback_copy_kernel(struct snd_pcm_substream *substream,
1654 return snd_korg1212_copy_from(substream, (void __user *)src,
1658 static int snd_korg1212_playback_silence(struct snd_pcm_substream *substream,
1663 struct snd_pcm_runtime *runtime = substream->runtime;
1664 struct snd_korg1212 *korg1212 = snd_pcm_substream_chip(substream);
1671 static int snd_korg1212_capture_copy(struct snd_pcm_substream *substream,
1675 return snd_korg1212_copy_to(substream, dst, pos, count, false);
1678 static int snd_korg1212_capture_copy_kernel(struct snd_pcm_substream *substream,
1682 return snd_korg1212_copy_to(substream, (void __user *)dst,