Difference between revisions of "Audio in 1004"

From LinuxMCE
Jump to: navigation, search
(nVidia GT series HDMI)
Line 16: Line 16:
  
  
'''AlternateSC = 1''' : Should only be necessary with some newer GT series nvidia that do not identify as second card or require backports, also supports other oddball devices.
+
'''AlternateSC = 1''' : Should only be necessary for analog multi-channel.
 
* [http://wiki.linuxmce.org/index.php/Audio_in_1004#AlternateSC_.3D_1 Analog, Optical, Coax, HDMI] are given the card# and the device# to write to the confs.
 
* [http://wiki.linuxmce.org/index.php/Audio_in_1004#AlternateSC_.3D_1 Analog, Optical, Coax, HDMI] are given the card# and the device# to write to the confs.
  
  
'''AlternateSC = 2''' : should only be necessary for analog multi-channel and other oddballs that do not work under other two schemes, covers newer equipment. This additionally changes the [http://wiki.linuxmce.org/index.php/Audio_in_1004#xine.conf xine.conf] scheme.
+
'''AlternateSC = 2''' : Should only be necessary for oddballs that do not work under other two schemes, covers older equipment. This additionally changes the [http://wiki.linuxmce.org/index.php/Audio_in_1004#xine.conf xine.conf] scheme.
 
* [http://wiki.linuxmce.org/index.php/Audio_in_1004#AlternateSC_.3D_2 Analog Multi-channel] are given an extended scheme, including both the card# and device#.
 
* [http://wiki.linuxmce.org/index.php/Audio_in_1004#AlternateSC_.3D_2 Analog Multi-channel] are given an extended scheme, including both the card# and device#.
  
Line 30: Line 30:
 
   
 
   
 
  pcm_slave.analog_convert48k {
 
  pcm_slave.analog_convert48k {
         pcm "hw:0"
+
         pcm "analog_8:0,0"
        rate 48000
+
 
  }
 
  }
 
   
 
   
Line 41: Line 40:
 
  !default {
 
  !default {
 
         type asym
 
         type asym
         playback.pcm "plug:dmix:0"
+
         playback.pcm "analog_playback:0,0"
         capture.pcm "plughw:0"
+
         capture.pcm "plughw:0,0"
 
  }
 
  }
  
 
==AlternateSC = 1==
 
==AlternateSC = 1==
 
===Analog, Optical, Coax, and HDMI===
 
===Analog, Optical, Coax, and HDMI===
</etc/pluto/alsa/virtual_cards.conf>
 
 
pcm_slave.hdmi_convert48k {
 
        pcm "plughw:0,3"
 
        rate 48000
 
}
 
 
pcm.hdmi_playback {
 
        type plug
 
        slave hdmi_convert48k
 
}
 
 
!default {
 
        type asym
 
        playback.pcm "hdmi_playback"
 
        capture.pcm "plughw:0,3"
 
}
 
 
==AlternateSC = 2==
 
===Analog Multi-channel, Optical, Coax, and HDMI===
 
 
  </etc/pluto/alsa/virtual_cards.conf>
 
  </etc/pluto/alsa/virtual_cards.conf>
 
   
 
   
Line 118: Line 97:
 
         playback.pcm "analog_playback:0,0"
 
         playback.pcm "analog_playback:0,0"
 
         capture.pcm "plughw:0,0"
 
         capture.pcm "plughw:0,0"
 +
}
 +
 +
 +
==AlternateSC = 2==
 +
===Analog Multi-channel, Optical, Coax, and HDMI===
 +
</etc/pluto/alsa/virtual_cards.conf>
 +
 +
pcm_slave.hdmi_convert48k {
 +
        pcm "hw:0"
 +
        rate 48000
 +
}
 +
 +
pcm.hdmi_playback {
 +
        type plug
 +
        slave hdmi_convert48k
 +
}
 +
 +
!default {
 +
        type asym
 +
        playback.pcm "hdmi_playback"
 +
        capture.pcm "hw:0"
 
  }
 
  }
  
 
==xine.conf==
 
==xine.conf==
In conditions of null, 0 or 1 values of AlternateSC for multi-channel audio, the last 4 lines of /etc/pluto/xine.conf looks like this
+
In conditions of null, 0 values of AlternateSC for multi-channel audio, the last 4 lines of /etc/pluto/xine.conf looks like this
 
  audio.device.alsa_front_device:plughw:0,3
 
  audio.device.alsa_front_device:plughw:0,3
 
  audio.device.alsa_default_device:plughw:0,3
 
  audio.device.alsa_default_device:plughw:0,3
Line 127: Line 127:
 
  audio.device.alsa_passthrough_device:plughw:0,3
 
  audio.device.alsa_passthrough_device:plughw:0,3
  
In the case AlternateSC = 2, , some sound cards cease functioning when the Pass Through arrangement is specified, instead of just the passthrough device.
+
In the case AlternateSC = 1, some sound cards cease functioning when the Pass Through arrangement is specified, instead of just the passthrough device.
 
  audio.device.alsa_front_device:plughw:0,3
 
  audio.device.alsa_front_device:plughw:0,3
 
  audio.device.alsa_default_device:plughw:0,3
 
  audio.device.alsa_default_device:plughw:0,3

Revision as of 17:17, 7 February 2013

Alternate sound configurations can be set in /etc/pluto.conf. MOST sound cards should work out of the box, and do not require this parameter. This parameter may be written by /usr/pluto/bin/nvidia-install.sh for various GT chipsets. This can be done at avwizard on the Audio Selector step 5, or at any time by running /usr/pluto/bin/SetupAudioVideo.sh NOTE: Audio should NOT be actively playing when running SetupAudioVideo.sh.

Auto-detection is attempted when specific packages are installed, or if the pluto.conf "AlternateSC" setting is null or = 0. In most cases, this value will never exist.

Below are example /etc/asound.conf files generated by these configurations. /etc/pluto/xine.conf files borrow the card# and device# (if any) in the same way as the asound.conf

AlternateSC = null : Most cards function without this parameter, this is the default state.


AlternateSC = 1 : Should only be necessary for analog multi-channel.


AlternateSC = 2 : Should only be necessary for oddballs that do not work under other two schemes, covers older equipment. This additionally changes the xine.conf scheme.


AlternateSC = 0 or null

Analog, Optical, Coax, HDMI

</etc/pluto/alsa/virtual_cards.conf>

pcm_slave.analog_convert48k {
       pcm "analog_8:0,0"
}

pcm.analog_playback {
       type plug
       slave analog_convert48k
}

!default {
       type asym
       playback.pcm "analog_playback:0,0"
       capture.pcm "plughw:0,0"
}

AlternateSC = 1

Analog, Optical, Coax, and HDMI

</etc/pluto/alsa/virtual_cards.conf>

pcm.analog_6 {
       slave.pcm surround51
       slave.rate 48000
       slave.channels 6
       type route
       ttable.0.0 1
       ttable.1.1 1
       ttable.0.2 1
       ttable.1.3 1
       ttable.0.4 0.5
       ttable.1.4 0.5
       ttable.0.5 0.5
       ttable.1.5 0.5
}

pcm.analog_8 {
       slave.pcm multi
       slave.rate 48000
       slave.channels 8
       type route
       ttable.0.0 1.0
       ttable.1.1 1.0
       ttable.2.2 1.0
       ttable.3.3 1.0
       ttable.4.4 1.0
       ttable.5.5 1.0
       ttable.0.6 1.0
       ttable.1.7 1.0
       ttable.2.6 0.7
       ttable.3.7 0.7
       ttable.4.6 0.7
       ttable.4.7 0.7
       ttable.5.6 0.5
       ttable.5.7 0.5
}

pcm_slave.analog_convert48k {
       pcm "analog_8:0,0"
}

pcm.analog_playback {
       type plug
       slave analog_convert48k
}

!default {
       type asym
       playback.pcm "analog_playback:0,0"
       capture.pcm "plughw:0,0"
}


AlternateSC = 2

Analog Multi-channel, Optical, Coax, and HDMI

</etc/pluto/alsa/virtual_cards.conf>

pcm_slave.hdmi_convert48k {
       pcm "hw:0"
       rate 48000
}

pcm.hdmi_playback {
       type plug
       slave hdmi_convert48k
}

!default {
       type asym
       playback.pcm "hdmi_playback"
       capture.pcm "hw:0"
}

xine.conf

In conditions of null, 0 values of AlternateSC for multi-channel audio, the last 4 lines of /etc/pluto/xine.conf looks like this

audio.device.alsa_front_device:plughw:0,3
audio.device.alsa_default_device:plughw:0,3
audio.output.speaker_arrangement:Pass Through
audio.device.alsa_passthrough_device:plughw:0,3

In the case AlternateSC = 1, some sound cards cease functioning when the Pass Through arrangement is specified, instead of just the passthrough device.

audio.device.alsa_front_device:plughw:0,3
audio.device.alsa_default_device:plughw:0,3
audio.device.alsa_passthrough_device:plughw:0,3

All stereo analog appears like so:

audio.device.alsa_front_device:plughw:0,0
audio.device.alsa_default_device:plughw:0,0
audio.output.speaker_arrangement:Stereo 2.0

Except in the case of null or 0, when it appears like so:

audio.device.alsa_front_device:hw:0
audio.device.alsa_default_device:hw:0
audio.output.speaker_arrangement:Stereo 2.0