summaryrefslogtreecommitdiff
path: root/cookbooks
diff options
context:
space:
mode:
Diffstat (limited to 'cookbooks')
-rw-r--r--cookbooks/gnuradio/recipes/default.rb11
-rw-r--r--cookbooks/gnuradio/recipes/packages.rb2
2 files changed, 13 insertions, 0 deletions
diff --git a/cookbooks/gnuradio/recipes/default.rb b/cookbooks/gnuradio/recipes/default.rb
index e936588..53ffe64 100644
--- a/cookbooks/gnuradio/recipes/default.rb
+++ b/cookbooks/gnuradio/recipes/default.rb
@@ -115,3 +115,14 @@ bash 'Compile gqrx' do
make
EOH
end
+
+bash 'Configure sound (alsa)' do
+ cwd '/'
+ code <<-EOH
+ adduser vagrant audio
+ amixer -c 0 -- sset Master playback -10dB
+ amixer -c 0 -- sset Master unmute
+ amixer -c 0 -- sset PCM playback -10dB
+ amixer -c 0 -- sset PCM unmute
+ EOH
+end
diff --git a/cookbooks/gnuradio/recipes/packages.rb b/cookbooks/gnuradio/recipes/packages.rb
index d99489b..8201da3 100644
--- a/cookbooks/gnuradio/recipes/packages.rb
+++ b/cookbooks/gnuradio/recipes/packages.rb
@@ -49,3 +49,5 @@ package 'liborc-0.4-0'
package 'liborc-0.4-dev'
package 'libasound2-dev'
package 'python-gtk2'
+package 'alsa-oss'
+package 'alsa-utils'