Renamed stop -> drop in API

This commit is contained in:
Abramo Bagnara 2000-10-02 06:59:59 +00:00
parent ebae7ebeb2
commit 057f56de06
10 changed files with 21 additions and 24 deletions

View file

@ -198,11 +198,11 @@ static int snd_pcm_hw_start(snd_pcm_t *pcm)
return 0;
}
static int snd_pcm_hw_stop(snd_pcm_t *pcm)
static int snd_pcm_hw_drop(snd_pcm_t *pcm)
{
snd_pcm_hw_t *hw = pcm->private;
int fd = hw->fd;
if (ioctl(fd, SND_PCM_IOCTL_STOP) < 0)
if (ioctl(fd, SND_PCM_IOCTL_DROP) < 0)
return -errno;
return 0;
}
@ -453,7 +453,7 @@ struct snd_pcm_fast_ops snd_pcm_hw_fast_ops = {
delay: snd_pcm_hw_delay,
prepare: snd_pcm_hw_prepare,
start: snd_pcm_hw_start,
stop: snd_pcm_hw_stop,
drop: snd_pcm_hw_drop,
drain: snd_pcm_hw_drain,
pause: snd_pcm_hw_pause,
rewind: snd_pcm_hw_rewind,