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 2011-04-06 23:56:05

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

USB audio:

Dear all,

I know, this has been asked already in the forum.
But I could not find any solution. Maybe someone could help me.

I just bought an USB audio card and installed the drivers as described on the site http://dns323.kood.org/hardware:sound.
I really like the idea to just have one system running (and consuming power) and to control it via my tablet.

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.

Currently 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?

Unfortunately I am not really familiar with Linux.
Thanks for any help!
Best regards
Gerhard

Offline

 

#2 2011-04-22 01:08:10

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

Re: USB audio:

Today I tried it again with a new "fresh" system and firmware 1.10B7.

Again I have the same situation.
The drivers are loaded successfully, I can hear music on my usb audio stick.
But when the music stops, the system hangs.
Only after a reboot, I can play music again.

What could be the problem?
How to compile the necessary modules (ko-file)?

I also tried to run alt-f, but the sound modules are not included (at least I could not find them).

Thanks for any help.
Best regards
Gerhard

Offline

 

#3 2011-04-27 02:08:36

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

Re: USB audio:

After playing around a little bit more, I found out the following on http://buffalo.nas-central.org/index.ph … nd_card.3F

At least for my DNS-323 with firmware 1.10B7 I just need the following to hear music over my USB audio stick

insmod soundcore
insmod audio

a "lsmod" gives

Module                  Size  Used by    Not tainted
audio                  40512  1
soundcore               7620  2 audio
usblp                  10976  0
sd_mod                 14484  8

and "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 c36ea4c0
usbcore: registered new driver audio
drivers/usb/class/audio.c: v1.0.0:USB Audio Class driver

If I try to play some music by typing the following, it works. I can hear music.

High Performance MPEG 1.0/2.0/2.5 Audio Player for Layers 1, 2 and 3
        version 1.13.1; written and copyright by Michael Hipp and others
        free software (LGPL/GPL) without any warranty but with best wishes

Directory: /mnt/HD_a2/Steiner/Musik/Music/Guns N' Roses/Use Your Illusion I/
Playing MPEG stream 1 of 1: Live and let die.mp3 ...
Title:   Live and let die                Artist: Guns N' Roses
Comment:                                 Album:  Use your Illusion I
Year:    1992                            Genre:  Rock
MPEG 1.0 layer III, 128 kbit/s, 44100 Hz joint-stereo
Note: Illegal Audio-MPEG-Header 0x41504554 at offset 2919712.
Note: Trying to resync...
Note: Hit end of (available) data during resync.

[3:02] Decoding of Live and let die.mp3 finished.

But still the same problem.
After 3:02 the process hangs!
Starting a new telnet session I can see the process via "ps":

2044 root     mpg123 /mnt/HD_a2/Steiner/Musik/Music/Guns N' Roses/Use Your Illusion I/Live and let die.mp3

But I can't kill the process.
So all I can do is reboot the DNS-323 :-(

Unfortunately I found at the end of the above mentioned webpage the following hint:

Using OSS I could get sound playback (including mp3 decoding using mpd) but when the buffer was empty (press stop / file end / etc) it would hang the process and only a reboot would regain control. This was using a cheap "3D Sound" usb device with a JMTek chipset (ID 0c76:1605).

So it seems I have this chip.
Does anybody know how to check this?

It seems alsa is not running correctly as the "how-to" describes on http://dns323.kood.org/hardware:sound
Does anybody know how to get alsa running on DNS-323?

Thanks for any help.
Best regards
Gerhard

Offline

 

#4 2011-05-01 20:22:09

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

Re: USB audio:

Meanwhile I tried another USB audiostick, but it was even worser.
So at least with the Terratec Aureon Dual I have the described troubles and the music player hangs after stopping music playback.

With the Speed-Link Vigo USB Audio Card it was worser, sometimes no sound, but always the player hangs after stopping music playback.

It seems to be a difficult topic as no answer came although almost 300 people read the thread.
Currently I am out of any idea how to go on.

Unfortunately I have to stop my activities due to lack of knowledge and time and so I have to search for an alternative way.
Maybe http://dns323.kood.org/forum/viewtopic.php?id=4440 would be a good idea and worth to follow.

Thanks and best regards
Gerhard

Offline

 

#5 2011-05-01 20:45:36

Mijzelf
Member / Developer
Registered: 2008-07-05
Posts: 709

Re: USB audio:

I had the same problem with my ZyXEL NSA-220 (Same SoC, other kernel version). I found no other way to solve it then booting a custom kernel using reloaded.ko.
It seems that selecting the kernelmodule usb_audio.ko in .config also changes something in the kernel.

Offline

 

#6 2011-05-01 22:41:34

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

Re: USB audio:

Sorry, but I am not familiar with Linux on this level.
I even can't compile a kernel as I am not able to install gcc (I tried, but I failed).

Offline

 

Board footer

Powered by PunBB
© Copyright 2002–2010 PunBB