I have ALSA on Ubuntu 11.04 version. When I play aplay through my normal user, I am able to get the output. When I do this with the root user, the command hangs: below stuff happens
root@myuser:~# aplay -l **** List of PLAYBACK Hardware Devices ****
Also if I export the $HOME to /home/myuser/ then it works. So whats wrong for running the aplay command with a root.