User Tools

Site Tools


doc:appunti:linux:sa:mpd

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
doc:appunti:linux:sa:mpd [2012/08/17 14:36] – [Test ALSA] niccolodoc:appunti:linux:sa:mpd [2012/08/17 14:52] – [Test ALSA] niccolo
Line 115: Line 115:
 </code> </code>
  
-La soluzione per primi due problemi è creare un file di configurazione **''/etc/asound.conf''**:+La soluzione a tutti i problemi è creare un file di configurazione **''/etc/asound.conf''**:
  
 <file> <file>
 +# Give an alias to PCM device hw:1,0 (card 1, device 0):
 +pcm.def_pcm {
 +    type hw
 +    card 1
 +    device 0
 +}
 +# Default (virtual) PCM device goes through the "plug" plugin (which does
 +# rate and channels resampling on-the-fly) to the real PCM device:
 pcm.!default { pcm.!default {
     type plug     type plug
     slave {     slave {
-        pcm "hw:1,0"+        pcm def_pcm
     }     }
 } }
 +# Default control (e.g. for mixer) is card 1:
 +ctl.!default {
 +    type hw
 +    card 1
 </file> </file>
  
doc/appunti/linux/sa/mpd.txt · Last modified: 2012/08/17 15:14 by niccolo