Skip to content

Commit

Permalink
Merge pull request #11 from dfollent/feature/audacity
Browse files Browse the repository at this point in the history
Feature/audacity
  • Loading branch information
dfollent authored Feb 4, 2019
2 parents 7b44b31 + 9c12d41 commit 1d5a172
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# VocalFusion Raspberry Pi Setup Change Log

## 1.3.2

* Added audacity installation and setup for XVF3510

## 1.3.1

* Added reset for XVF3510
Expand Down
15 changes: 14 additions & 1 deletion setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ sudo sed -i -e 's/dtparam=audio=on/#dtparam=audio=on/' /boot/config.txt
sudo sed -i -e 's/#dtparam=i2s=on/dtparam=i2s=on/' /boot/config.txt

echo "Installing Raspberry Pi kernel headers"
sudo apt-get install raspberrypi-kernel-headers
sudo apt-get install -y raspberrypi-kernel-headers



# Build loader and insert it into the kernel
Expand Down Expand Up @@ -79,6 +80,18 @@ if [ $# -ge 1 ] && [ $1 = "xvf3510" ] ; then
echo "python $RPI_SETUP_DIR/resources/clk_dac_setup/reset_xvf3510.py" >> $i2s_clk_dac_script
fi

if [ $# -ge 1 ] && [ $1 = "xvf3510" ] ; then
sudo apt-get install -y audacity
audacity_script=$RPI_SETUP_DIR/resources/run_audacity.sh
rm -f $audacity_script
echo "#!/usr/bin/env bash" >> $audacity_script
echo "/usr/bin/audacity &" >> $audacity_script
echo "sleep 5" >> $audacity_script
echo "sudo $RPI_SETUP_DIR/resources/clk_dac_setup/setup_bclk >> /dev/null" >> $audacity_script
sudo chmod +x $audacity_script
sudo mv $audacity_script /usr/local/bin/audacity
fi

# Configure the I2C - disable the default built-in driver
sudo sed -i -e 's/#\?dtparam=i2c_arm=on/dtparam=i2c_arm=off/' /boot/config.txt
if ! grep -q "i2c-bcm2708" /etc/modules-load.d/modules.conf; then
Expand Down

0 comments on commit 1d5a172

Please sign in to comment.