aboutsummaryrefslogtreecommitdiff
path: root/pcm.c
diff options
context:
space:
mode:
authorSimon Wilson <ksattic@gmail.com>2011-05-30 21:18:26 -0700
committerSimon Wilson <ksattic@gmail.com>2011-05-30 21:44:00 -0700
commit851aa5cc1596af6236c6105a92fb3b575ecb5c1c (patch)
treed2414a65d88b2c617bcbddcd78bfa6770302b792 /pcm.c
parenta1bb1e0a27aeb853697106bc311c5ca77ab782c1 (diff)
pcm: fix minor code errors
Diffstat (limited to 'pcm.c')
-rw-r--r--pcm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/pcm.c b/pcm.c
index 71849a7..eab306f 100644
--- a/pcm.c
+++ b/pcm.c
@@ -138,7 +138,7 @@ struct pcm {
struct pcm_config config;
};
-unsigned int pcm_buffer_size(struct pcm *pcm)
+unsigned int pcm_get_buffer_size(struct pcm *pcm)
{
return pcm->buffer_size;
}
@@ -289,12 +289,12 @@ struct pcm *pcm_open(unsigned int device, unsigned int flags, struct pcm_config
pcm->flags = flags;
pcm->fd = open(dname, O_RDWR);
if (pcm->fd < 0) {
- oops(pcm, errno, "cannot open device '%s'");
+ oops(pcm, errno, "cannot open device '%s'", dname);
return pcm;
}
if (ioctl(pcm->fd, SNDRV_PCM_IOCTL_INFO, &info)) {
- oops(pcm, errno, "cannot get info - %s");
+ oops(pcm, errno, "cannot get info");
goto fail;
}