# Phat DAC down-mixed to mono audio

**URL:** <https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347>\
**Category:** Support\
**Created:** [May 9, 2016, 9:15pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347 "2016-05-09T21:15:20Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![HarmlessSaucer](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@HarmlessSaucer](https://forums.pimoroni.com/u/HarmlessSaucer)\
**Post date:** [May 9, 2016, 9:15pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/1 "2016-05-09T21:15:20Z")

</div>

Hey guys,

I’m trying to use my Phat DAC in a mono speaker setup, as an airplay receiver.  
I have the Airplay part working great with the Phat DAC, and it sounds great!

However, I’m having some problems getting the Phat DAC setup to down-mix to mono.

I found the following page online:  
[http://alsa.opensrc.org/Asoundrc#Downmix\_stereo\_to\_mono](http://alsa.opensrc.org/Asoundrc#Downmix_stereo_to_mono)

Which says to change `/etc/asound.conf` to the following:

```
pcm.!default makemono

pcm.makemono {
    type route
    slave.pcm "hw:0"
    ttable {
        0.0 1 # in-channel 0, out-channel 0, 100% volume
        1.0 1 # in-channel 1, out-channel 0, 100% volume
    }
}

```

However when I do this, I now don’t any audio at all. Is there something I’m missing? Or is the Phat DAC bypassing some of these settings somehow in it’s setup?

Any help would be appreciated!

---

<div class="post-metadata">

**Author:** ![RogueM](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/roguem/32/311_2.png) [@RogueM](https://forums.pimoroni.com/u/RogueM)\
**Post date:** [May 10, 2016, 10:22am UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/2 "2016-05-10T10:22:05Z")

</div>

What was the content of asound.conf originally? Did you append to or replace what was there (if anything).

---

<div class="post-metadata">

**Author:** ![sandyjmacdonald](https://sea2.discourse-cdn.com/flex016/user_avatar/forums.pimoroni.com/sandyjmacdonald/32/393_2.png) [@sandyjmacdonald](https://forums.pimoroni.com/u/sandyjmacdonald)\
**Post date:** [May 11, 2016, 9:37am UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/3 "2016-05-11T09:37:52Z")

</div>

I reckon that this post below might get you sorted out.

[https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=33431](https://www.raspberrypi.org/forums/viewtopic.php?f=29&t=33431)

You might have to change the settings in the `/etc/shairport-sync.conf` accordingly.

I’ll try to give this a shot later today to see if it actually works. I need to get this working, as I’m working on a little mono Airplay speaker doodad myself!

Let us know how you get on.

---

<div class="post-metadata">

**Author:** ![HarmlessSaucer](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@HarmlessSaucer](https://forums.pimoroni.com/u/HarmlessSaucer)\
**Post date:** [May 14, 2016, 3:57pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/4 "2016-05-14T15:57:24Z")

</div>

Originally it included just:

```
pcm.!default {
 type hw
 card 0
}
ctl.!default {
 type hw
 card 0
}

```

Good spot! I completely didn’t even think that I was overwriting it!  
I’m giving it a go now, appending to the original file.

---

<div class="post-metadata">

**Author:** ![HarmlessSaucer](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@HarmlessSaucer](https://forums.pimoroni.com/u/HarmlessSaucer)\
**Post date:** [May 14, 2016, 4:13pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/5 "2016-05-14T16:13:52Z")

</div>

Thanks for the link!

I had a look at this and the sub-linked page:  
[http://pi.eggum.net/2013/09/airplay-or-shairport-that-is.html](http://pi.eggum.net/2013/09/airplay-or-shairport-that-is.html)

I first tried setting up my `/etc/asound.conf` with the following in it:

```
pcm.card0 {
  type hw
  card 0
}

ctl.card0 {
  type hw
  card 0
}

pcm.monocard {
  slave.pcm card0
  slave.channels 2
  type plug
}

ctl.monocard {
  type hw
  card 0
}

pcm.!default monocard

```

This will send audio via Shairport, but is still Stero (therefore, I’m only getting one channel from my setup.) Looking at the linked page, this is expected from this setup.

So then I tried the following configuration in `/etc/asound.conf`:

```
pcm.card0 {
  type hw
  card 0
}

ctl.card0 {
  type hw
  card 0
}

pcm.monocard {
  slave.pcm card0
  slave.channels 2
# type plug
  type route
  ttable {
    # Copy both input channels to output channel 0 (Left).
    0.0 1
    1.0 1
    # Send nothing to output channel 1 (Right).
    0.1 0
    1.1 0
  }
}

ctl.monocard {
  type hw
  card 0
}

pcm.!default monocard

```

This doesn’t work. It shows that audio is going from the Airplay device to Shairport, and its playing, but I get nothing from the speaker/amp.

@sandyjmacdonald - what did you mean about changing settings within `/etc/shairport-sync.conf` ? That file on my system is blank!

I’ll continue to have a play and post here with my results!

---

<div class="post-metadata">

**Author:** ![HarmlessSaucer](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@HarmlessSaucer](https://forums.pimoroni.com/u/HarmlessSaucer)\
**Post date:** [May 14, 2016, 4:26pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/6 "2016-05-14T16:26:34Z")

</div>

@sandyjmacdonald - Arg! Please excuse my stupidity! You were talking about `/etc/shairport-sync.conf` because you are using Shairport-Sync of course! I’m using some other Shairport fork, that might be why I don’t have this! I’ll investigate how I can edit my ALSA settings in what I have setup.

---

<div class="post-metadata">

**Author:** ![mikebrady](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@mikebrady](https://forums.pimoroni.com/u/mikebrady)\
**Post date:** [September 21, 2016, 8:25pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/7 "2016-09-21T20:25:38Z")

</div>

Hi there. There’s a setting in the Shairport Sync configuration file to output mono on both channels.

---

<div class="post-metadata">

**Author:** ![HarmlessSaucer](https://avatars.discourse-cdn.com/v4/letter/h/958977/32.png) [@HarmlessSaucer](https://forums.pimoroni.com/u/HarmlessSaucer)\
**Post date:** [September 21, 2016, 10:05pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/8 "2016-09-21T22:05:06Z")

</div>

Hey Mike, would you be able to advise me how to do that? That would be awesome if you can, and would solve my issues :D

---

<div class="post-metadata">

**Author:** ![mikebrady](https://avatars.discourse-cdn.com/v4/letter/m/c4cdca/32.png) [@mikebrady](https://forums.pimoroni.com/u/mikebrady)\
**Post date:** [September 22, 2016, 4:00pm UTC](https://forums.pimoroni.com/t/phat-dac-down-mixed-to-mono-audio/2347/9 "2016-09-22T16:00:05Z")

</div>

Hi there. All you have to do is edit the settings file, which should be already installed at `/etc/shairport-sync.conf`. If you scroll down it a bit, you’ll see a `playback_mode = "stereo";` setting. Change the `"stereo"` to `"mono"` and remember to remove the `//` at the start of the line to un-comment it. Restart shairport sync, and that should do it. [Update] If your configuration file does not already have that `playback_mode` setting in it, have a look in `/etc/shairport-sync.conf.sample`, which should have a full set of sample settings, all commented out.
