Fixed mixer chunk load and line ending detection for good.

This commit is contained in:
Lorenz Meier
2013-10-13 11:44:26 +02:00
parent 42b75ae896
commit 1dc9569e31
9 changed files with 229 additions and 56 deletions
+1 -1
View File
@@ -102,7 +102,7 @@ load(const char *devname, const char *fname)
if (ioctl(dev, MIXERIOCRESET, 0))
err(1, "can't reset mixers on %s", devname);
load_mixer_file(fname, &buf[0]);
load_mixer_file(fname, &buf[0], sizeof(buf));
/* XXX pass the buffer to the device */
int ret = ioctl(dev, MIXERIOCLOADBUF, (unsigned long)buf);