[Voyage-linux] Repeated "clicks" in audio output from MPD

Punky Tse (spam-protected)
Sat Jan 7 13:39:58 HKT 2012


Hi Patrick,

You did not answer exactly my 3rd question:
How MPD server access audio files in FreeNAS?  Using wifi or wired cable?

Next, show me the output of "lsusb -v", I would like to know if you are 
using USB Audio Class 1 or Class 2.

On 1/6/2012 11:18 PM, Patrick Keane wrote:
> Hi Punky
>
> Today it will not fail  (produce clicks(, I have booted it up from 
> "cold off" 5 times no clicks at all!
>
> I have looked at all my computers and electronics, I can see nothing  
> on or off  different from when it fails.  I know from previous 
> failures it can be at any time of the day or night.
>
> Here is top output:-
>
> top - 15:06:21 up 11 min,  1 user,  load average: 0.23, 0.15, 0.11
> Tasks:  54 total,   1 running,  52 sleeping,   0 stopped,   1 zombie
> Cpu(s): 15.8%us,  1.3%sy,  0.0%ni, 82.8%id,  0.0%wa,  0.0%hi,  
> 0.0%si,  0.0%st
> Mem:   1001940k total,   267752k used,   734188k free,      488k buffers
> Swap:        0k total,        0k used,        0k free,   230348k cached
>
>   PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
>  2196 mpd       20   0 66324  11m 2660 S 16.2  1.1   0:35.14 mpd
>  2220 root      20   0  2368  996  792 R  0.7  0.1   0:00.19 top
>     1 root      20   0  2068  656  564 S  0.0  0.1   0:02.07 init
>     2 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kthreadd
>     3 root      20   0     0    0    0 S  0.0  0.0   0:00.00 ksoftirqd/0
>     4 root      20   0     0    0    0 S  0.0  0.0   0:00.04 kworker/0:0
>     5 root      20   0     0    0    0 S  0.0  0.0   0:00.01 kworker/u:0
>     6 root      RT   0     0    0    0 S  0.0  0.0   0:00.00 migration/0
>     7 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 khelper
>     8 root      20   0     0    0    0 S  0.0  0.0   0:00.16 kworker/u:1
>   113 root      20   0     0    0    0 S  0.0  0.0   0:00.00 sync_supers
>   115 root      20   0     0    0    0 S  0.0  0.0   0:00.00 bdi-default
>   117 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 kblockd
>   272 root       0 -20     0    0    0 S  0.0  0.0   0:00.00 rpciod
>   293 root      20   0     0    0    0 S  0.0  0.0   0:00.00 kswapd0
>
> Task mpd seems to vary from 12 to 20 % CPU
>
> My Freenas box is wired to my ADSL/router, the MPD server and my Nokia 
> N800 control PDA are WIFI connected.
>
> I have enabled the soundfile plugin, but until it fails or not I don't 
> know whether that did any good
>
> I have set up a recorder to capture the audio output, next time it 
> fails, I will post the  sound file so you can hear for yourself that I 
> am not going mad!
>
> thanks for your help
>
> regards
>
> Patrick
>
>
>
>
>
>
>
>
>
>
>
> On 06
>
> /01/12 13:39, Punky Tse wrote:
>> Hi Patrick,
>>
>> Next things to try:
>>
>> 1. enable the sndfile plug-in back by removing/commenting the lines:
>> decoder {
>>         plugin "sndfile"
>>         enabled "no"
>> }
>>
>> 2. run "top" to see if you mpd process or system consuming high% CPU
>>
>> 3. You mentioned the MPD server access your flac files stored in 
>> FreeNAS.  Do MPD server use wifi or wired cable to connect to FreeNAS?
>>
>> Regards,
>> Punky
>>
>>
>
>> On 1/6/2012 4:54 PM, Patrick Keane wrote:
>>> Hi Punky
>>>
>>> //Already tried  -----  does not improve the problem!
>>>
>>> Thanks
>>>
>>> P
>>>
>>>
>>>
>>> On 06/01/12 01:49, Kim-man 'Punky' TSE wrote:
>>>> Hi Patrick,
>>>>
>>>> Remove the line "format          "44100:16:2" in ALSA configuration 
>>>> of /etc/mpd.conf.  Restart mpd and see how it goes.
>>>>
>>>> audio_output {
>>>>         type            "alsa"
>>>>         name            "My ALSA Device"
>>>>         device          "hw:0,0"        # optional
>>>> #       format          "44100:16:2"    # optional
>>>> #       mixer_device    "default"       # optional
>>>> #       mixer_control   "PCM"           # optional
>>>> #       mixer_index     "0"             # optional
>>>> }
>>
>>
>
>


-- 

Regards,
Kim-man "Punky" Tse

* Open Source Embedded Solutions and Systems
   - Voyage Linux (http://linux.voyage.hk)
   - Voyage ONE   (http://linux.voyage.hk/voyage-one)
   - Voyage MPD   (http://linux.voyage.hk/voyage-mpd)
* Voyage Store   (http://store.voyage.hk)





More information about the Voyage-linux mailing list