From: Takashi Iwai Date: Fri, 12 May 2006 10:09:33 +0000 (+0200) Subject: Fix a typo in pcm_file.c X-Git-Tag: v1.0.12rc1~10 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=308f52e65aa4df84bbb8fe51a00932f55be95b08;p=alsa-lib.git Fix a typo in pcm_file.c Fix a typo in snd_pcm_file_readn(). --- diff --git a/src/pcm/pcm_file.c b/src/pcm/pcm_file.c index 9e419613..359d84da 100644 --- a/src/pcm/pcm_file.c +++ b/src/pcm/pcm_file.c @@ -234,7 +234,7 @@ static snd_pcm_sframes_t snd_pcm_file_readn(snd_pcm_t *pcm, void **bufs, snd_pcm { snd_pcm_file_t *file = pcm->private_data; snd_pcm_channel_area_t areas[pcm->channels]; - snd_pcm_sframes_t n = snd_pcm_writen(file->gen.slave, bufs, size); + snd_pcm_sframes_t n = snd_pcm_readn(file->gen.slave, bufs, size); if (n > 0) { snd_pcm_areas_from_bufs(pcm, areas, bufs); snd_pcm_file_add_frames(pcm, areas, 0, n);