Skip to content

Commit

Permalink
virtual_oss: Prefix string in devnode field by _PATH_DEV.
Browse files Browse the repository at this point in the history
Signed-off-by: Hans Petter Selasky <hps@selasky.org>
  • Loading branch information
hselasky committed Nov 11, 2021
1 parent 070bfd5 commit ecb0ec9
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions virtual_main.c
Expand Up @@ -32,6 +32,7 @@
#include <sysexits.h>
#include <signal.h>
#include <fcntl.h>
#include <paths.h>

#ifdef HAVE_SNDSTAT
#include <sys/nv.h>
Expand Down Expand Up @@ -1195,8 +1196,8 @@ vclient_ioctl_oss(struct cuse_dev *pdev, int fflags,
memset(&data.audioinfo, 0, sizeof(data.audioinfo));
strlcpy(data.audioinfo.name, pvc->profile->oss_name,
sizeof(data.audioinfo.name));
strlcpy(data.audioinfo.devnode, pvc->profile->oss_name,
sizeof(data.audioinfo.devnode));
snprintf(data.audioinfo.devnode, sizeof(data.audioinfo.devnode),
_PATH_DEV "%s", pvc->profile->oss_name);
data.audioinfo.caps = DSP_CAP_INPUT | DSP_CAP_OUTPUT;
data.audioinfo.iformats = VSUPPORTED_AFMT;
data.audioinfo.oformats = VSUPPORTED_AFMT;
Expand Down

0 comments on commit ecb0ec9

Please sign in to comment.