Quantcast
Channel: Pimoroni Buccaneers - Latest posts
Viewing all articles
Browse latest Browse all 54482

Howto: get PHAT DAC to play all system sound + software volume control

$
0
0

Ok if anyone is interested this seemed to work on a fresh updated SD

sudo nano /boot/config
edit bottom to look like this this:

# Enable audio (loads snd_bcm2835)
#dtparam=audio=on
dtoverlay=i2s-mmap
dtoverlay=hifiberry-dac

mkae
sudo nano /etc/asound.conf

pcm.dmixer { 
    type dmix 
    ipc_key 1024
    ipc_key_add_uid false
    ipc_perm 0666			# mixing for all users
    slave { 
        pcm "hw:0,0" 
        period_time 0 
        period_size 1024 
        buffer_size 8192
        rate 44100
    }
    bindings { 
        0 0 
        1 1 
    } 
} 

pcm.dsp0 { 
    type plug 
    slave.pcm "dmixer" 
} 

pcm.!default { 
    type plug 
    slave.pcm "dmixer" 
} 

pcm.default { 
   type plug 
   slave.pcm "dmixer" 
} 

ctl.mixer0 { 
    type hw 
    card 0 
}

sudo apt-get update && sudo apt-get dist-upgrade

sudo apt-get --purge autoremove pulseaudio

sudo apt-get remove jack-daemon

sudo apt-get install mpd mpc pianobar alsa-base alsa-oss alsa-tools alsa-utils alsaplayer-alsa alsaplayer-common gstreamer0.10-alsa gstreamer1.0-alsa alsa-oss oss-compat libsmartcols1 jackd libjack-jackd2-0:armhf qjackctl esound-common libasound2:armhf libasound2-data libasound2-plugins libsoundtouch0:armhf libtext-soundex-perl libsdl-mixer1.2:armhf pimixer

For mpd to work comment out pre configured audio output and add this in its place.
sudo nano /etc/mpd.conf

audio_output {
        type                    "alsa"
        name                    "Sound Card"
        options                 "dev=dmixer"
}

If you try this let me know if it works for you. I have yet to try espeak with this.


Viewing all articles
Browse latest Browse all 54482

Latest Images

Trending Articles



Latest Images