[Voyage-linux] RE: Voyage MPD & alsaequal

Demian Martin (spam-protected)
Sat Feb 19 11:20:14 HKT 2011


Navas:

I use either plughw or hw directly in MPD’s config file to prevent resampling. I didn’t know that there was an alsa plug for equalization until I saw your post. In my use equalization would be considered a bad thing so I have not looked too much. I know that some success can be had with brutfir but that may be too complex for what you want. Usually when equalization or other effects are required a more powerful PC is also required. 

 

I’ll look at this some more since it’s interesting to me and see what I can find out. You may have lucked into a really optimal combination of pieces before.

                            -Demian

 

From: Navas Abubacker [mailto:navas at truebilling.com] 
Sent: Friday, February 18, 2011 6:45 PM
To: Demian Martin
Cc: Kim-man 'Punky' TSE; voyage-linux at list.voyage.hk
Subject: Re: Voyage MPD & alsaequal

 

Hi Demina,

I appreciate your reply, I am using the same alsaequal and was following the instruction on the site. Can you suggest me any alternative equalizers for alsa?

Also can you please guide me how to prevent the resampling?

On Sat, Feb 19, 2011 at 6:56 AM, Demian Martin <demianm_1 at yahoo.com> wrote:


Navas:
Looking at your results I suspect several things are going on behind the
scenes. Most likely the new ALSA code for the equalizer may be working a
high or very high precision which will really stress an Alix card. I know
that the quality resamplers will cause the same problems on an alix. Are
there options on the ALSA equalizer? I found this reference to it
http://www.thedigitalmachine.net/alsaequal.html . Its not a core alsa
component. If that reference is the one you are using there may be other
less demanding equalizers. Its ability to use plugins is very interesting.
Also make sure no resampling is going on in the background or it may be the
core problem.
            -Demian

Date: Sat, 19 Feb 2011 06:05:39 +0530
From: Navas Abubacker <navas at truebilling.com>
Subject: Re: [Voyage-linux] Voyage MPD & alsaequal
To: Punky Tse <punkytse at punknix.com>
Cc: voyage-linux at voyage.hk
Message-ID:
       <AANLkTin3-AW+xuG8N4x0gsFmHu8QOAKerUDsBjnL81dB at mail.gmail.com <mailto:AANLkTin3-AW%2BxuG8N4x0gsFmHu8QOAKerUDsBjnL81dB at mail.gmail.com> >
Content-Type: text/plain; charset="utf-8"


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

********************************************




-- 
Thanks
Navas

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://list.voyage.hk/pipermail/voyage-linux/attachments/20110218/76a50631/attachment.html>


More information about the Voyage-linux mailing list