Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
raspberry:pi_ogg_player [2016/12/11 10:55]
admin [USB Sound]
raspberry:pi_ogg_player [2017/03/28 18:02]
admin [Upgrade]
Line 21: Line 21:
   $ sudo apt-get install zip, htop   $ sudo apt-get install zip, htop
   $ sudo apt-get install python3, python3-pygame, python3-pyqt5, python3-pip, idle   $ sudo apt-get install python3, python3-pygame, python3-pyqt5, python3-pip, idle
 +
 ---- ----
 ==== Rotate the Display ==== ==== Rotate the Display ====
Line 72: Line 73:
 ---- ----
 ==== USB Sound ==== ==== USB Sound ====
-  $ lsusb +
-   +
-  $ amixer +
-  +
   $ alsamixer   $ alsamixer
 +
 +find the soundcard number:\\
 +  $ aplay -l
      
 in:\\ in:\\
- $ sudo nano /etc/asound.conf +<del>  $ sudo nano /etc/asound.conf</del> 
-  +  $ sudo nano ~/.asoundrc 
 +write (with your card number):\\
   pcm.!default {   pcm.!default {
-  type hw card 1+    type hw 
 +    card 1
   }   }
   ctl.!default {   ctl.!default {
-  type hw card 1+    type hw 
 +    card 1
   }   }
  
-or:\\ +and in:\\ 
-[[http://plugable.com/2014/11/06/how-to-switch-to-usb-audio-on-raspberry-pi/]]\\ +  $ sudo nano /usr/share/alsa/alsa.conf 
- +change:\\  
-find the soundcard:\\ +  defaults.ctl.card 0 
-  $ aplay -l +  defaults.pcm.card 
-In:\\ +to (depends on your number):\\ 
-  $ sudo nano /etc/modprobe.d/alsa-base.conf +  defaults.ctl.card 
-change:\\ +  defaults.pcm.card 1
-  options snd-usb-audio index=-2 +
-to:\\ +
-  options snd-usb-audio index=+
-add the following on the next line:\\ +
-  options snd_bcm2835 index=+
-  +
  
 ---- ----