DSM-G600, DNS-3xx and NSA-220 Hack Forum

Unfortunately no one can be told what fun_plug is - you have to see it for yourself.

You are not logged in.

Announcement

#1 2008-10-13 00:47:24

ale99
New member
Registered: 2008-10-06
Posts: 3

MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

Hi there,
I have a problem with MPD hanging when stop is issues. Here is my scenario:
- DNS- 323 firmware 1.05
- chroot Etch
- I have installed Sound drivers as described in the Wiki, except for the audio.ko. Instead I installed Debian ALSA drivers (base and utils.)
- I have installed MPD using apt-get. I can create database using --create-db. My music client is Ario.
- My mounts are:
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw)
proc on /proc type proc (rw,nodiratime)
/dev/loop0 on /sys/crfs type cramfs (ro)
/dev/md0 on /mnt/HD_a2 type ext2 (rw)
/dev/sda4 on /mnt/HD_a4 type ext2 (rw)
/dev/sdb4 on /mnt/HD_b4 type ext2 (rw)
devpts on /dev/pts type devpts (rw)
none on /proc/bus/usb type usbfs (rw)
/dev/md0 on /mnt/HD_a2/etch/mnt/HD_a2 type ext2 (rw)
/dev/root on /mnt/HD_a2/etch/mnt/root type ext2 (rw)
/dev/root on /mnt/HD_a2/etch/dev type ext2 (rw)
/dev/root on /mnt/HD_a2/etch/sys type ext2 (rw)
/dev/loop0 on /mnt/HD_a2/etch/sys/crfs type cramfs (ro)
/dev/root on /mnt/HD_a2/etch/web type ext2 (rw)
proc on /mnt/HD_a2/etch/proc type proc (rw,nodiratime)
/dev/root on /mnt/HD_a2/etch/var type ext2 (rw)
Ario reads the music database ok.
MPD plays through ALSA.
Problem: when I click the Stop button with Ario the MPD server loses the connection with the client. I can see that there are still 3 MPD services running when invoking ps aux. However, I can't kill the processes.

Could someone have any idea why would MPD hang on stop? I am running MPD under mpd user.
I am so close of getting my DNS-323 to be a music server. I am at a dead-end with no ideas what to look for. Could some please advise on possible reasons for the problem?
Thanks all,
Ale99

Offline

 

#2 2008-10-29 21:28:43

ale99
New member
Registered: 2008-10-06
Posts: 3

Re: MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

Please help; I got the unit to play music. However, MPD stops working or responding when stop, or skip track is invoked. Before I start MPD I can kill the service. Once it is stack I cannot kill it, and there are three instances. The client is Ario from another PC.

MPD audio plays with ALSA
I can run MPD either Debian Chroot, or optware

I don't know where to look for info. The verbose MPD log shows nothing when it is stack.

Anyone with insight about where I should be looking next would be greatly appreciated.
Ale99

Offline

 

#3 2010-10-03 17:49:09

pete
New member
Registered: 2010-03-28
Posts: 3

Re: MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

On my DNS-323 I have the same problem but the configuration is an other.
- DNS-323 firmware 1.08
- fun_plug
- optware with mpd from optware
- sound drivers from wiki including audio.ko
  - Wiki: http://dns323.kood.org/hardware:sound
- Created the two device files only without creating the group:
  - mknod -m 660 /dev/mixer c 14 0
  - mknod -m 660 /dev/dsp c 14 3

As describe by ale99 the sound is playing until I click stop or want to switch to an other track using the Ario client. The Minion client does not work
at all.

If I redirect the output in a pipe as described in the thread below instead of using the drivers it works fine.
http://dns323.kood.org/forum/viewtopic.php?id=4440
This means that the problem is located in the area of the drivers.

Is it possible to redirect the output to for example sox to work around this problem?

Thanks for help.

Last edited by pete (2010-10-03 18:54:25)

Offline

 

#4 2010-10-03 20:10:58

haim
Member
Registered: 2010-01-13
Posts: 83

Re: MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

Sorry to but in, but if you are playing through ALSA, where is the sound going?  Do you have a usb soundcard attached?  Or does ALSA have some net streaming possibilities....google search suggests not.

Offline

 

#5 2010-10-04 19:09:01

pete
New member
Registered: 2010-03-28
Posts: 3

Re: MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

Yes, I have a USB soundcard attached.

Offline

 

#6 2011-03-09 12:14:47

gestein
Member
Registered: 2011-03-09
Posts: 10

Re: MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

Dear all,

is there any solution for this?
I just bought an USB audio card and installed the drivers as described on the site http://dns323.kood.org/hardware:sound.

It seems to work as I can hear the sond that is played with mpg123 (via ssh on my receiver.
But when the song ends, mpg123 does not stop. Instead it blocks ssh and the drivers completely.
I have to reboot my DNS 323.

I am using FW 1.09.

The drivers seem to be loaded correctly as dmesg gives:
usbaudio: device 2 audiocontrol interface 0 has 1 input and 1 output AudioStreaming interfaces
usbaudio: valid input sample rate 48000
usbaudio: valid input sample rate 44100
usbaudio: device 2 interface 2 altsetting 1: format 0x00000010 sratelo 44100 sratehi 48000 attributes 0x01
usbaudio: valid output sample rate 48000
usbaudio: valid output sample rate 44100
usbaudio: device 2 interface 1 altsetting 1: format 0x80000010 sratelo 44100 sratehi 48000 attributes 0x01
usbaudio: registered dsp 14,3
usbaudio: constructing mixer for Terminal 6 type 0x0301
usbaudio: warning: found 1 of 2 logical channels.
usbaudio: assuming that a stereo channel connected directly to a mixer is missing in search (got Labtec headset?). Should be fine.
usbaudio: registered mixer 14,0
usbaudio: constructing mixer for Terminal 7 type 0x0101
usbaudio: registered mixer 14,16
usb_audio_parsecontrol: usb_audio_state at c2a9d620
usbcore: registered new driver audio
drivers/usb/class/audio.c: v1.0.0:USB Audio Class driver
usbcore: registered new driver snd-usb-audio

lsmod gives:
Module                  Size  Used by    Not tainted
snd_usb_audio          64512  0
snd_usb_lib            13984  1 snd_usb_audio
snd_rawmidi            20768  1 snd_usb_lib
snd_seq_device          6696  1 snd_rawmidi
audio                  40512  2
snd_pcm_oss            49472  0
snd_mixer_oss          15808  1 snd_pcm_oss
snd_pcm                81512  2 snd_usb_audio,snd_pcm_oss
snd_timer              21380  1 snd_pcm
snd_hwdep               7396  0
snd                    43064  8 snd_usb_audio,snd_rawmidi,snd_seq_device,snd_pcm_oss,snd_mixer_oss,snd_pcm,snd_timer,snd_hwdep
snd_page_alloc          7492  1 snd_pcm
soundcore               7620  5 audio,snd
usblp                  10976  0
sd_mod                 14484  8

During installation I also did:
cd /dev
mknod -m 660 mixer c 14 0; chgrp audio mixer
mknod -m 660 mixer1 c 14 16; chgrp audio mixer1
mknod -m 660 dsp c 14 3; chgrp audio dsp
mknod -m 660 dsp1 c 14 19; chgrp audio dsp1

But when doing e.g. "chgrp audio mixer", I get the following error:
chgrp: unknown group name: audio

Is this a problem?
How should I create the group audio?

Is it maybe a problem that the drivers are built for FW 1.03 as mentioned on the site http://dns323.kood.org/hardware:sound?
Where to get drivers for newer FW?

Thanks for any help!
Best regards
Gerhard

Offline

 

#7 2012-09-16 15:47:30

gestein
Member
Registered: 2011-03-09
Posts: 10

Re: MPD plays on DNS-323 with ALSA but hangs when trying to Stop the music

Did anyone found a solution for this meanwhile?

Thanks, Gerhard

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB