<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:p="urn:schemas-microsoft-com:office:powerpoint" xmlns:a="urn:schemas-microsoft-com:office:access" xmlns:dt="uuid:C2F41010-65B3-11d1-A29F-00AA00C14882" xmlns:s="uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882" xmlns:rs="urn:schemas-microsoft-com:rowset" xmlns:z="#RowsetSchema" xmlns:b="urn:schemas-microsoft-com:office:publisher" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:c="urn:schemas-microsoft-com:office:component:spreadsheet" xmlns:odc="urn:schemas-microsoft-com:office:odc" xmlns:oa="urn:schemas-microsoft-com:office:activation" xmlns:html="http://www.w3.org/TR/REC-html40" xmlns:q="http://schemas.xmlsoap.org/soap/envelope/" xmlns:rtc="http://microsoft.com/officenet/conferencing" xmlns:D="DAV:" xmlns:Repl="http://schemas.microsoft.com/repl/" xmlns:mt="http://schemas.microsoft.com/sharepoint/soap/meetings/" xmlns:x2="http://schemas.microsoft.com/office/excel/2003/xml" xmlns:ppda="http://www.passport.com/NameSpace.xsd" xmlns:ois="http://schemas.microsoft.com/sharepoint/soap/ois/" xmlns:dir="http://schemas.microsoft.com/sharepoint/soap/directory/" xmlns:ds="http://www.w3.org/2000/09/xmldsig#" xmlns:dsp="http://schemas.microsoft.com/sharepoint/dsp" xmlns:udc="http://schemas.microsoft.com/data/udc" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:sub="http://schemas.microsoft.com/sharepoint/soap/2002/1/alerts/" xmlns:ec="http://www.w3.org/2001/04/xmlenc#" xmlns:sp="http://schemas.microsoft.com/sharepoint/" xmlns:sps="http://schemas.microsoft.com/sharepoint/soap/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:udcs="http://schemas.microsoft.com/data/udc/soap" xmlns:udcxf="http://schemas.microsoft.com/data/udc/xmlfile" xmlns:udcp2p="http://schemas.microsoft.com/data/udc/parttopart" xmlns:wf="http://schemas.microsoft.com/sharepoint/soap/workflow/" xmlns:dsss="http://schemas.microsoft.com/office/2006/digsig-setup" xmlns:dssi="http://schemas.microsoft.com/office/2006/digsig" xmlns:mdssi="http://schemas.openxmlformats.org/package/2006/digital-signature" xmlns:mver="http://schemas.openxmlformats.org/markup-compatibility/2006" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns:mrels="http://schemas.openxmlformats.org/package/2006/relationships" xmlns:spwp="http://microsoft.com/sharepoint/webpartpages" xmlns:ex12t="http://schemas.microsoft.com/exchange/services/2006/types" xmlns:ex12m="http://schemas.microsoft.com/exchange/services/2006/messages" xmlns:pptsl="http://schemas.microsoft.com/sharepoint/soap/SlideLibrary/" xmlns:spsl="http://microsoft.com/webservices/SharePointPortalServer/PublishedLinksService" xmlns:Z="urn:schemas-microsoft-com:" xmlns:st="" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 12 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
span.EmailStyle17
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
.MsoChpDefault
{mso-style-type:export-only;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=EN-US link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>Navas:<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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. <o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'>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.<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'> -Demian<o:p></o:p></span></p><p class=MsoNormal><span style='font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D'><o:p> </o:p></span></p><div style='border:none;border-top:solid #B5C4DF 1.0pt;padding:3.0pt 0in 0in 0in'><p class=MsoNormal><b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'>From:</span></b><span style='font-size:10.0pt;font-family:"Tahoma","sans-serif"'> Navas Abubacker [mailto:navas@truebilling.com] <br><b>Sent:</b> Friday, February 18, 2011 6:45 PM<br><b>To:</b> Demian Martin<br><b>Cc:</b> Kim-man 'Punky' TSE; voyage-linux@list.voyage.hk<br><b>Subject:</b> Re: Voyage MPD & alsaequal<o:p></o:p></span></p></div><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='margin-bottom:12.0pt'>Hi Demina,<br><br>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?<br><br>Also can you please guide me how to prevent the resampling?<o:p></o:p></p><div><p class=MsoNormal>On Sat, Feb 19, 2011 at 6:56 AM, Demian Martin <<a href="mailto:demianm_1@yahoo.com">demianm_1@yahoo.com</a>> wrote:<o:p></o:p></p><p class=MsoNormal><br>Navas:<br>Looking at your results I suspect several things are going on behind the<br>scenes. Most likely the new ALSA code for the equalizer may be working a<br>high or very high precision which will really stress an Alix card. I know<br>that the quality resamplers will cause the same problems on an alix. Are<br>there options on the ALSA equalizer? I found this reference to it<br><a href="http://www.thedigitalmachine.net/alsaequal.html" target="_blank">http://www.thedigitalmachine.net/alsaequal.html</a> . Its not a core alsa<br>component. If that reference is the one you are using there may be other<br>less demanding equalizers. Its ability to use plugins is very interesting.<br>Also make sure no resampling is going on in the background or it may be the<br>core problem.<br> -Demian<br><br>Date: Sat, 19 Feb 2011 06:05:39 +0530<br>From: Navas Abubacker <<a href="mailto:navas@truebilling.com">navas@truebilling.com</a>><br>Subject: Re: [Voyage-linux] Voyage MPD & alsaequal<br>To: Punky Tse <<a href="mailto:punkytse@punknix.com">punkytse@punknix.com</a>><br>Cc: <a href="mailto:voyage-linux@voyage.hk">voyage-linux@voyage.hk</a><br>Message-ID:<br> <<a href="mailto:AANLkTin3-AW%2BxuG8N4x0gsFmHu8QOAKerUDsBjnL81dB@mail.gmail.com">AANLkTin3-AW+xuG8N4x0gsFmHu8QOAKerUDsBjnL81dB@mail.gmail.com</a>><br>Content-Type: text/plain; charset="utf-8"<o:p></o:p></p><div><div><p class=MsoNormal><br>Hi Punky,<br><br>Thanks for your reply and yes you are right<br><br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br> 4644 mpd 20 0 73816 14m 6688 S 97.1 6.1 0:28.72 mpd<br><br>mpd consumes 97% of CPU, but I was using alsaequal with MPD on Voyage 0.6.5<br>with no problem. I have seen the CPU utilization before, it was in the range<br>of 30-50%. I am not sure what caused this usage?<br><br><br>This is while playing mp3 without alsaequal<br><br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br> 4697 mpd 20 0 72148 13m 6148 S 10.5 5.7 0:04.57 mpd<br><br>and this one is for a flac without alsaequal<br><br> PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND<br> 4697 mpd 20 0 72148 13m 6252 S 8.2 5.8 0:12.72 mpd<br><br>Please help<br><br><br>On Fri, Feb 18, 2011 at 10:38 PM, Punky Tse <<a href="mailto:punkytse@punknix.com">punkytse@punknix.com</a>> wrote:<br><br>> Hi Navas,<br>><br>> Take a look to top or load avg. to see if it is CPU bound.<br>><br>> Regards,<br>> Punky<br>><br>><br>><br>> On 18/2/2011 23:42, Navas Abubacker wrote:<br>><br>>> Hi,<br>>><br>>> I am trying to get the equalizer with Voyage MPD on a alix3 box. But for<br>>> some reason the sound is breaking up,<br>>><br>>> I can see "alsamixer -D equal" working and when I debug the mpd I am<br>>> getting the output like this<br>>><br>>> root@voyage:~# mpd --no-daemon --stderr -v /etc/mpd.conf<br>>> config: loading file /etc/mpd.conf<br>>> path: path_set_fs_charset: fs charset is: UTF-8<br>>> database: reading DB<br>>> disabling the <a href="http://last.fm" target="_blank">last.fm</a> <<a href="http://last.fm" target="_blank">http://last.fm</a>> playlist plugin because account is<br>>> not configured<br>>><br>>> daemon: opening pid file<br>>> daemon: writing pid file<br>>> state_file: Loading state file /var/lib/mpd/state<br>>> database: get song: En Jannal Vandha - TamilLatestMusic.blogspot.com.mp3<br>>> playlist: play 0:"En Jannal Vandha - TamilLatestMusic.blogspot.com.mp3"<br>>> decoder_thread: clearing mixramp tags<br>>> decoder_control: mixramp_start = NULL<br>>> decoder_control: mixramp_prev_end = NULL<br>>> mad: detected LAME version 3.99 ("LAME3.99a")<br>>> mad: LAME peak found: 0.000000<br>>> mad: LAME track gain found: -10.600000<br>>> mad: encoder delay is 576, encoder padding is 324<br>>> decoder: audio_format=44100:24:2, seekable=true<br>>> alsa: buffer: size=1881..15052 time=42653..341316<br>>> alsa: period: size=940..941 time=21333..21334<br>>> alsa: default period_time = buffer_time/4 = 341315/4 = 85328<br>>> alsa: buffer_size=15052 period_size=940<br>>> output: opened plugin=alsa name="equal" audio_format=44100:24:2<br>>> alsa: Underrun on ALSA device "plug:plugequal"<br>>> alsa: Underrun on ALSA device "plug:plugequal"<br>>> alsa: Underrun on ALSA device "plug:plugequal"<br>>> alsa: Underrun on ALSA device "plug:plugequal"<br>>> alsa: Underrun on ALSA device "plug:plugequal"<br>>> alsa: Underrun on ALSA device "plug:plugequal"<br>>><br>>><br>>> for every alsa: Underrun on ALSA device "plug:plugequal" it is breaking<br>>> up.<br>>><br>>> here are my configurations<br>>><br>>> root@voyage:~# dmesg | grep usb<br>>> [ 5.723640] input: C-Media USB Audio Device as<br>>> /devices/pci0000:00/0000:00:0f.4/usb2/2-3/2-3:1.3/input/input1<br>>> [ 5.724435] generic-usb 0003:0D8C:000C.0001: input,hidraw0: USB HID<br>>> v1.00 Device [C-Media USB Audio Device ] on usb-0000:00:0f.4-3/input3<br>>> [ 5.725529] usbcore: registered new interface driver usbhid<br>>> [ 5.725617] usbhid: USB HID core driver<br>>> [ 10.824108] usbcore: registered new interface driver snd-usb-audio<br>>><br>>><br>>> root@voyage:~# lsusb<br>>> Bus 002 Device 002: ID 0d8c:000c C-Media Electronics, Inc. Audio Adapter<br>>><br>>><br>>> root@voyage:~# nano /etc/asound.conf<br>>> ctl.equal {<br>>> type equal;<br>>> }<br>>><br>>> pcm.plugequal {<br>>> type equal;<br>>> slave.pcm "plug:dmix";<br>>> }<br>>><br>>> #pcm.equal {<br>>> # Or if you want the equalizer to be your<br>>> # default soundcard uncomment the following<br>>> # line and comment the above line.<br>>> pcm.!default {<br>>> type plug;<br>>> slave.pcm plugequal;<br>>> }<br>>><br>>> root@voyage:~# nano /etc/mpd.conf<br>>> ..............................<br>>> audio_output {<br>>> type "alsa"<br>>> name "equal"<br>>> device "plug:plugequal"<br>>> }<br>>> ........................<br>>><br>>><br>>> Please help<br>>><br>>> --<br>>> Thanks<br>>> Navas<br>>><br>><br>><br><br><br>--<br>Thanks<br>Navas<o:p></o:p></p></div></div><p class=MsoNormal style='margin-bottom:12.0pt'>********************************************<o:p></o:p></p></div><p class=MsoNormal><br><br clear=all><br>-- <br>Thanks<br>Navas<o:p></o:p></p></div></body></html>