<div dir="ltr">Thank you very much for sharing! Nice...<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Aug 18, 2013 at 4:00 PM, Muffinman <span dir="ltr"><<a href="mailto:news@koster.tk" target="_blank">news@koster.tk</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hello all,<br>
<br>
A while back I asked on this mailinglist on how to control volume of an<br>
amplifier via MPD through a serial connection (rs232/ttl). Time passed<br>
without an answer, so I did some digging and learned C. While building<br>
the app I figured I might as well expand compatibility. While it doesn't<br>
support every amplifier (with a serial connection), it does have quit<br>
broad support and can in some cases be extended if needed. In addition,<br>
in combination with MPoD/MPaD it also give control over input, power,<br>
and whatever options the amp has. Last, but not least: it syncs data<br>
both ways, from computer to amp and back.<br>
<br>
In short, the inner workings: applications such as MPD, but also<br>
shairport (dev 1.0), have the option to use a different soundcard for<br>
mixer controls. Therefore, we set MPD etc. to send volume control data<br>
to a dummy soundcard. Alsa notifies the application volume has changed<br>
which in turn sends the appropriate serial command to the amplifier. For<br>
other options icm with MPoD/MPaD a small PHP script notifies the<br>
application what to do. The amplifier in turn notifies the application<br>
of any changes in volume, power, or input changes (if needed by explicit<br>
request of the application).<br>
<br>
Broad support is somewhat frustrated by strange decisions of<br>
manufacturers to have a bit of silly serial command structures:<br>
completely different commands & structures for incoming and outgoing<br>
commands (Parasound) or have a completely different volume range for<br>
incoming (-93, 14) and outgoing volume commands (-150, -50, Classe).<br>
Anyways, in such cases support is limited (for now at least).<br>
<br>
Initially I've created the app for Leema Acoustics, so that's 100%<br>
supported. The following brands (fully or partially) supported:<br>
Cambridge Audio, Classe, NAD, Parasound. Ayre should be supported, but I<br>
don't have enough documentation on that to be sure. Cyrus can have<br>
support if anyone cares. Other than Leema (and Classe to some extent) I<br>
have not done any testing yet. But looking at the relevant documentation<br>
and having hooked up my computer to Classe, NAD... it should work. Once<br>
I have gotten myself the required cables I will hook them up and do some<br>
real testing. Though anyone else willing to do some testing is very<br>
welcome.<br>
<br>
Enough introductory talk: after reading the few notes below, all files<br>
and instructions can be downloaded at the ftp address below.<br>
- I don't take any responsibility for anything that may or may not happen.<br>
- The app is still in beta and needs further testing.<br>
- Be very careful when installing and testing regardless of its beta<br>
state: unplug speakers when testing or disconnect any sources. If<br>
something goes wrong, either faulty configuration or a bug, volume could<br>
go to unwanted heights (though I've never experienced that result).<br>
- The application allows volume limits to be configured, use it. You<br>
don't need to go to 100% volume through MPD, more likely, you don't want<br>
that. So, don't configure it.<br>
- Be careful of security. Anyone with access to your computer can modify<br>
its configuration. Well, use your imagination, the results in potentia.<br>
- Any suggestions/improvements of the code are welcome: I'm a beginner<br>
and probably violate every rule in the book.<br>
<br>
<a href="ftp://muffins.diskstation.me" target="_blank">ftp://muffins.diskstation.me</a> (guest login).<br>
<br>
If any question, please do ask.<br>
<br>
Kind regards, Maarten<br>
<br>
_______________________________________________<br>
Voyage-linux mailing list<br>
<a href="mailto:Voyage-linux@list.voyage.hk">Voyage-linux@list.voyage.hk</a><br>
<a href="http://list.voyage.hk/mailman/listinfo/voyage-linux" target="_blank">http://list.voyage.hk/mailman/listinfo/voyage-linux</a><br>
</blockquote></div><br></div>