playlistfs didn't set volume properly. Reference: /n/atom/patch/applied/playlistfsvol Date: Tue Mar 18 05:43:23 CET 2014 Signed-off-by: quanstro@quanstro.net --- /sys/src/games/music/playlistfs/volume.c Tue Mar 18 05:42:45 2014 +++ /sys/src/games/music/playlistfs/volume.c Tue Mar 18 05:42:46 2014 @@ -65,27 +65,14 @@ void volumeset(int *v) { - int fd, i; - char buf[256], *p; + int fd; - fd = open("/dev/audioctl", OWRITE); + fd = open("/dev/volume", OWRITE); if (fd < 0){ - fd = open("/dev/volume", OWRITE); - if (fd < 0){ - fprint(2, "Can't set volume: %r"); - return; - } - fprint(fd, "audio out %d", v[0]); - send(volumechan, v); - } else { - p = buf; - for (i = 0; i < 8; i++){ - if (v[i] == Undef) break; - p = seprint(p, buf+sizeof buf, (p==buf)?"volume out '%d":" %d", - minvolume + v[i] * (maxvolume-minvolume) / 100); - } - p = seprint(p, buf+sizeof buf, "'\n"); - write(fd, buf, p-buf); + fprint(2, "Can't set volume: %r"); + return; } + fprint(fd, "%d", v[0]); + send(volumechan, v); close(fd); }