<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel>
        <title>Marantz receiver Airplay with power and volume control</title>
        <description> Thank you for providing a Debian distribution for so many devices. I used a Dockstar to bridge a Marantz receiver onto the network with full power and volume control.

It requires a USB sound device that is supported by ALSA, a USB serial adapter and a Marantz receiver that has a serial port (but not an ethernet otherwise I think it already has Airplay built in to the network interface. I&amp;#039;m using a Marantz SR5003.

Get your sound card working under alsa and make sure that aplay can output sound by default. I had to adjust my asound.conf. This will vary based on what USB sound device you use.


defaults.pcm.card 0
defaults.ctl.card 0

pcm.!default {
  type hw
  card 0
  device 0
}

You will need to install alsa-utils libasound2-plugins shairport-sync alsa-ucm-conf python3-serial.

Add user shairport-sync to the dialout group so it can access the USB serial device.


adduser shairport-sync dialout

In shairport-sync.conf there are a few options to adjust. I set wait_for_completion = &amp;quot;yes&amp;quot; so that power and volume commands would not overlap. Then set run_this_when_volume_is_set to the attached python script volume_is_set.py, same for run_this_after_exiting_active_state and run_this_before_entering_active_state. Note that the scripts will log to /tmp/event.log as they are now, comment out the log related statements if desired. Also set ignore_volume_control = &amp;quot;yes&amp;quot; and then run alsamixer and set to 0db so that the sound card outputs full volume and shairport-sync will not adjust the alsa volume, the volume will be set by the serial commands to the Marantz receiver.

I did make a decision to limit the volume range on the Marantz from -71dB to 0dB. It goes higher, 14dB, I thought 0db was enough in case something went wrong.

This should be adaptable to any receiver that has a serial port.</description>
        <link>https://forum.doozan.com/read.php?2,137685,137685#msg-137685</link>
        <lastBuildDate>Wed, 11 Mar 2026 18:31:09 -0500</lastBuildDate>
        <generator>Phorum 5.2.23</generator>
        <item>
            <guid>https://forum.doozan.com/read.php?2,137685,137691#msg-137691</guid>
            <title>Re: Marantz receiver Airplay with power and volume control</title>
            <link>https://forum.doozan.com/read.php?2,137685,137691#msg-137691</link>
            <description><![CDATA[ It seems I forgot more than one detail. I experienced audio dropout during volume changes. I disabled some features in shairport-sync and no longer have any dropout.<br />
<br />
<pre class="bbcode">
interpolation = &quot;basic&quot;;
log_verbosity = 0;
metadata =
{
	enabled = &quot;no&quot;;</pre>
<br />
<br />
I&#039;ve attached my complete configuration file in case I missed anything.]]></description>
            <dc:creator>frankusb</dc:creator>
            <category>Debian</category>
            <pubDate>Mon, 10 Jun 2024 07:59:50 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,137685,137688#msg-137688</guid>
            <title>Re: Marantz receiver Airplay with power and volume control</title>
            <link>https://forum.doozan.com/read.php?2,137685,137688#msg-137688</link>
            <description><![CDATA[ I forgot one detail, the power on script sets the input to CD. @SRC:C You can set it to other inputs, see <a href="https://www.remotecentral.com/cgi-bin/mboard/rs232-ip/thread.cgi?110"  rel="nofollow">here</a>.<br />
<br />
<pre class="bbcode">
Main Zone Source TV,@SRC:1
Main Zone Source DVD,@SRC:2
Main Zone Source VCR,@SRC:3
Main Zone Source DSS,@SRC:4
Main Zone Source AUX,@SRC:9
Main Zone Source CD/CDR,@SRC:C
Main Zone Source FM,@SRC:G
Main Zone Source AM,@SRC:H
Main Zone Source XM,@SRC:J
Main Zone Source Sirius,@SRC:K
Main Zone Source BD,@SRC:M
Main Zone Source M-Xport,@SRC:N
</pre>]]></description>
            <dc:creator>frankusb</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 09 Jun 2024 18:33:23 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,137685,137687#msg-137687</guid>
            <title>Re: Marantz receiver Airplay with power and volume control</title>
            <link>https://forum.doozan.com/read.php?2,137685,137687#msg-137687</link>
            <description><![CDATA[ frankusb,<br />
<br />
Very nice tutorial! Thanks for you contribution. I&#039;ll add this to the Wiki thread.]]></description>
            <dc:creator>bodhi</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 09 Jun 2024 17:00:15 -0500</pubDate>
        </item>
        <item>
            <guid>https://forum.doozan.com/read.php?2,137685,137685#msg-137685</guid>
            <title>Marantz receiver Airplay with power and volume control</title>
            <link>https://forum.doozan.com/read.php?2,137685,137685#msg-137685</link>
            <description><![CDATA[ Thank you for providing a Debian distribution for so many devices. I used a Dockstar to bridge a Marantz receiver onto the network with full power and volume control.<br />
<br />
It requires a USB sound device that is supported by ALSA, a USB serial adapter and a Marantz receiver that has a serial port (but not an ethernet otherwise I think it already has Airplay built in to the network interface. I&#039;m using a Marantz SR5003.<br />
<br />
Get your sound card working under alsa and make sure that aplay can output sound by default. I had to adjust my asound.conf. This will vary based on what USB sound device you use.<br />
<br />
<pre class="bbcode">
defaults.pcm.card 0
defaults.ctl.card 0

pcm.!default {
  type hw
  card 0
  device 0
}</pre>
<br />
You will need to install alsa-utils libasound2-plugins shairport-sync alsa-ucm-conf python3-serial.<br />
<br />
Add user shairport-sync to the dialout group so it can access the USB serial device.<br />
<br />
<pre class="bbcode">
adduser shairport-sync dialout</pre>
<br />
In shairport-sync.conf there are a few options to adjust. I set wait_for_completion = &quot;yes&quot; so that power and volume commands would not overlap. Then set run_this_when_volume_is_set to the attached python script volume_is_set.py, same for run_this_after_exiting_active_state and run_this_before_entering_active_state. Note that the scripts will log to /tmp/event.log as they are now, comment out the log related statements if desired. Also set ignore_volume_control = &quot;yes&quot; and then run alsamixer and set to 0db so that the sound card outputs full volume and shairport-sync will not adjust the alsa volume, the volume will be set by the serial commands to the Marantz receiver.<br />
<br />
I did make a decision to limit the volume range on the Marantz from -71dB to 0dB. It goes higher, 14dB, I thought 0db was enough in case something went wrong.<br />
<br />
This should be adaptable to any receiver that has a serial port.]]></description>
            <dc:creator>frankusb</dc:creator>
            <category>Debian</category>
            <pubDate>Sun, 09 Jun 2024 15:19:48 -0500</pubDate>
        </item>
    </channel>
</rss>
