[nas] native alsa bottom-end
Paul Fox
pgf at foxharp.boston.ma.us
Fri May 12 17:44:18 MDT 2006
i wrote:
> ... currently i'm having a very odd problem where i
> can play sounds via nasd just fine, but can't control the volume.
okay, i've done some stracing, and it looks a lot like nasd isn't
actually _doing_ anything when it gets the command. i've put strace
output below. i had debug set to 9, so the output's a little messy.
but i don't see any ioctl calls that represent the "set device 1 gain 50"
operation i did with auctl. (note: i currently have the daemon
set to release the device. it doesn't work either way.)
anyone else seen this type of thing?
paul
select(128, [0 1], NULL, NULL, NULL) = 1 (in [0])
gettimeofday({1147477219, 708034}, NULL) = 0
accept(0, 0, NULL) = 4
getpeername(4, {sa_family=AF_INET, sin_port=htons(4682), sin_addr=inet_addr("127.0.0.1")}, [16]) = 0
setsockopt(4, SOL_TCP, TCP_NODELAY, [1], 4) = 0
fcntl64(4, F_SETFL, O_RDONLY|O_NONBLOCK) = 0
select(128, [0 1 4], NULL, NULL, NULL) = 1 (in [4])
read(4, "l\0\2\0\2\0\0\0\0\0\34\10", 4092) = 12
writev(4, [{"\1\0\2\0\2\0K\0\1\0\0\0\0\0@\0\377\377?\0\210\23D\254*"..., 308}], 1) = 308
select(128, [0 1 4], NULL, NULL, NULL) = 1 (in [4])
read(4, "\3\0\r\0\"\0\0\0\0\0\10\0\1\0\0\0\220\254\217\277\310\244"..., 4096) = 56
writev(4, [{"\1\0\2\0\0\0\0\0\355\255\4\10()\7\10\4\0\0\0\0\0\0\0\300"..., 32}], 1) = 32
select(128, [0 1 4], NULL, NULL, NULL) = 1 (in [4])
read(4, "!\0\1\0", 4096) = 4
writev(4, [{"\1\0\3\0\0\0\0\0\0\0\0\0()\7\10\4\0\0\0\1\0\0\0\3001\305"..., 32}], 1) = 32
select(128, [0 1 4], NULL, NULL, NULL) = 1 (in [4])
read(4, "", 4096) = 0
close(4) = 0
write(2, "serverReset();\n", 15serverReset();
) = 15
write(2, "setTimer(rate = 0);\n", 20setTimer(rate = 0);
) = 20
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
rt_sigaction(SIGALRM, {SIG_IGN}, {0x8056390, [ALRM], SA_RESTART}, 8) = 0
ioctl(-1, SNDCTL_DSP_SYNC, 0) = -1 EBADF (Bad file descriptor)
write(2, "closeDevice: out\n", 17closeDevice: out
) = 17
write(2, "closeDevice: output device alrea"..., 42closeDevice: output device already closed
) = 42
write(2, "closeDevice: mixer\n", 19closeDevice: mixer
) = 19
write(2, "closeDevice: mixerdevice already"..., 40closeDevice: mixerdevice already closed
) = 40
write(2, " done.\n", 7 done.
) = 7
stat64("/tmp/.sockets/audiolisten", {st_mode=S_IFSOCK|0777, st_size=0, ...}) = 0
open("/etc/Xlisten.hosts", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
write(2, "AuInitPhysicalDevices();\n", 25AuInitPhysicalDevices();
) = 25
write(2, "Init: will close device when fin"..., 51Init: will close device when finished with stream.
) = 51
write(2, "Init: Leaving the mixer device o"..., 57Init: Leaving the mixer device options alone at startup.
) = 57
rt_sigaction(SIGALRM, {0x8056390, [ALRM], SA_RESTART}, {SIG_IGN}, 8) = 0
write(2, "setTimer(rate = 0);\n", 20setTimer(rate = 0);
) = 20
setitimer(ITIMER_REAL, {it_interval={0, 0}, it_value={0, 0}}, {it_interval={0, 0}, it_value={0, 0}}) = 0
write(2, "createServerComponents(...);\n", 29createServerComponents(...);
) = 29
select(128, [0 1], NULL, NULL, NULL
=---------------------
paul fox, pgf at foxharp.boston.ma.us (arlington, ma, where it's 46.8 degrees)
More information about the Nas
mailing list