[Voyage-linux] Voyage MPD & alsaequal

Navas Abubacker (spam-protected)
Sat Feb 19 08:35:39 HKT 2011


Hi Punky,

Thanks for your reply and yes you are right

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4644 mpd       20   0 73816  14m 6688 S 97.1  6.1   0:28.72 mpd

mpd consumes 97% of CPU, but I was using alsaequal with MPD on Voyage 0.6.5
with no problem. I have seen the CPU utilization before, it was in the range
of 30-50%. I am not sure what caused this usage?


This is while playing mp3 without alsaequal

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4697 mpd       20   0 72148  13m 6148 S 10.5  5.7   0:04.57 mpd

and this one is for a flac without alsaequal

 PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 4697 mpd       20   0 72148  13m 6252 S  8.2  5.8   0:12.72 mpd

Please help


On Fri, Feb 18, 2011 at 10:38 PM, Punky Tse <punkytse at punknix.com> wrote:

> Hi Navas,
>
> Take a look to top or load avg. to see if it is CPU bound.
>
> Regards,
> Punky
>
>
>
> On 18/2/2011 23:42, Navas Abubacker wrote:
>
>> Hi,
>>
>> I am trying to get the equalizer with Voyage MPD on a alix3 box. But for
>> some reason the sound is breaking up,
>>
>> I can see "alsamixer -D equal" working and when I debug the mpd I am
>> getting the output like this
>>
>> root at voyage:~# mpd --no-daemon --stderr -v /etc/mpd.conf
>> config: loading file /etc/mpd.conf
>> path: path_set_fs_charset: fs charset is: UTF-8
>> database: reading DB
>> disabling the last.fm <http://last.fm> playlist plugin because account is
>> not configured
>>
>> daemon: opening pid file
>> daemon: writing pid file
>> state_file: Loading state file /var/lib/mpd/state
>> database: get song: En Jannal Vandha - TamilLatestMusic.blogspot.com.mp3
>> playlist: play 0:"En Jannal Vandha - TamilLatestMusic.blogspot.com.mp3"
>> decoder_thread: clearing mixramp tags
>> decoder_control: mixramp_start = NULL
>> decoder_control: mixramp_prev_end = NULL
>> mad: detected LAME version 3.99 ("LAME3.99a")
>> mad: LAME peak found: 0.000000
>> mad: LAME track gain found: -10.600000
>> mad: encoder delay is 576, encoder padding is 324
>> decoder: audio_format=44100:24:2, seekable=true
>> alsa: buffer: size=1881..15052 time=42653..341316
>> alsa: period: size=940..941 time=21333..21334
>> alsa: default period_time = buffer_time/4 = 341315/4 = 85328
>> alsa: buffer_size=15052 period_size=940
>> output: opened plugin=alsa name="equal" audio_format=44100:24:2
>> alsa: Underrun on ALSA device "plug:plugequal"
>> alsa: Underrun on ALSA device "plug:plugequal"
>> alsa: Underrun on ALSA device "plug:plugequal"
>> alsa: Underrun on ALSA device "plug:plugequal"
>> alsa: Underrun on ALSA device "plug:plugequal"
>> alsa: Underrun on ALSA device "plug:plugequal"
>>
>>
>> for every alsa: Underrun on ALSA device "plug:plugequal" it is breaking
>> up.
>>
>> here are my configurations
>>
>> root at voyage:~# dmesg | grep usb
>> [    5.723640] input: C-Media USB Audio Device    as
>> /devices/pci0000:00/0000:00:0f.4/usb2/2-3/2-3:1.3/input/input1
>> [    5.724435] generic-usb 0003:0D8C:000C.0001: input,hidraw0: USB HID
>> v1.00 Device [C-Media USB Audio Device   ] on usb-0000:00:0f.4-3/input3
>> [    5.725529] usbcore: registered new interface driver usbhid
>> [    5.725617] usbhid: USB HID core driver
>> [   10.824108] usbcore: registered new interface driver snd-usb-audio
>>
>>
>> root at voyage:~# lsusb
>> Bus 002 Device 002: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter
>>
>>
>> root at voyage:~# nano /etc/asound.conf
>> ctl.equal {
>>  type equal;
>> }
>>
>> pcm.plugequal {
>>  type equal;
>>  slave.pcm "plug:dmix";
>> }
>>
>> #pcm.equal {
>>  # Or if you want the equalizer to be your
>>  # default soundcard uncomment the following
>>  # line and comment the above line.
>>  pcm.!default {
>>  type plug;
>>  slave.pcm plugequal;
>> }
>>
>> root at voyage:~# nano /etc/mpd.conf
>> ..............................
>> audio_output {
>>  type    "alsa"
>>  name    "equal"
>>  device  "plug:plugequal"
>> }
>> ........................
>>
>>
>> Please help
>>
>> --
>> Thanks
>> Navas
>>
>
>


-- 
Thanks
Navas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20110219/d65c6213/attachment.html>


More information about the Voyage-linux mailing list