/* Sets the given PCM operators to the pcm instance.  */
void snd_pcm_set_ops(struct snd_pcm *pcm, int direction, struct snd_pcm_ops *ops)
/* Sets the given PCM operators to the pcm instance.  */
void snd_pcm_set_ops(struct snd_pcm *pcm, int direction, struct snd_pcm_ops *ops)
{
	struct snd_pcm_str *stream = &pcm->streams[direction];
	struct snd_pcm_substream *substream;
	for (substream = stream->substream; substream != NULL; substream = substream->next)
		substream->ops = ops;
}