ac3 passthrough via HDMI (MOSTLY SOLVED)

Questions about hardware and drivers
Forum rules
Before you post please read this

ac3 passthrough via HDMI (MOSTLY SOLVED)

Postby kristhor on Thu May 17, 2012 11:25 am

Hi! I just installed the latest LMDE yesterday. I was using Mint 11 before. My computer is connected to a A/V surround reciever via HDMI. I took some playing around to get sound through HDMI by default which i achive by changing the contents of the asound.conf file to:

pcm.dmixer {
type dmix
ipc_key 2048
slave {
pcm "hw:1,7" # Always use pure hw. dmix will reformat/resample audio.
period_size 512 # If you get stuttering/or non-working audio, fiddle around with these
buffer_size 4096
rate 48000 # HDMI, I'll assume 48kHz
format S16_LE # Should be default for pretty much any soundcard.
}
bindings {
0 0
1 1
}
}

pcm.!default {
type plug
slave.pcm dmixer
}

and now sound works perfectly with all applications via HDMI.

My problem is getting AC3 passthrough to work. I had it working in Mint 11 where I got dolby digital surround using vlc player by selecting alsa (with hdmi) and spdif in the sound prefereces. Now I get nothing!! I did get surround also working in mint 11 with gnome mplayer and smplayer using the same method as for vlc. I do have liba52 installed. I unistalled pulseaudio as I did before with mint 11 to get it to work. Im using the same hardware as with mint 11.

Code: Select all
aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=PCH
    HDA Intel PCH, ALC887-VD Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    Front speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
    HDA Intel PCH, ALC887-VD Digital
    IEC958 (S/PDIF) Digital Audio Output
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output
sysdefault:CARD=Headset
    Logitech Wireless Headset, USB Audio
    Default Audio Device
front:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    Front speakers
surround40:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    IEC958 (S/PDIF) Digital Audio Outpu


and

Code: Select all
lspci
01:00.1 Audio device: nVidia Corporation Device 0e0c (rev a1)
   Subsystem: ASUSTeK Computer Inc. Device 8390
   Flags: bus master, fast devsel, latency 0, IRQ 17
   Memory at fa080000 (32-bit, non-prefetchable) [size=16K]
   Capabilities: <access denied>
   Kernel driver in use: snd_hda_intel


does anyone know what Im missing?
Last edited by kristhor on Thu Jun 07, 2012 1:33 pm, edited 1 time in total.
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Linux Mint is funded by ads and donations.
 

Re: ac3 passthrough via HDMI

Postby kristhor on Thu May 17, 2012 11:28 am

and yes I have everything unmuted in alsamixer.
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Re: ac3 passthrough via HDMI

Postby kristhor on Fri May 18, 2012 8:32 am

Ok some good progress :)

I reinstalled pulseaudio to try and see if i can get it working with that. I read that pulseaudio has matured over the years and its better if I can get it to work with it.
I have gotten the HDMI sound to work with pulseaudio. I have 4 HDMI subdevices (aplay -l) and the only one working was 1,7. But pulseaudio was not loading the correct one. So what I did was in /etc/pulse/default.pa comment out:
"load-module module-udev-detect” with a # and add in its place "load-module module-alsa-sink device=hw:1,7"

then,

killall pulseaudio
sudo alsa reload

So now the HDMI sound works as default on everything. But I still havnt gotten the ac3 passthrough to work :/
I did try to change the asound.conf file to:

pcm.a52 {
@args [CARD]
@args.CARD {
type string
}
type rate
slave {
pcm {
type a52
bitrate 448
channels 6
card $CARD
}
rate 48000 #required somehow, otherwise nothing happens in PulseAudio
}
}



since I have the a52 plugin in libasound2-plugins and I have:
/usr/lib/x86_64-linux-gnu/alsa-lib/libasound_module_pcm_a52.so

but still no luck with ac3/spdif in VLC

anyone?
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Re: ac3 passthrough via HDMI

Postby kristhor on Fri May 18, 2012 10:57 pm

ok a big breakthrough, I get ac3 passthrough with Dolby when i use mplayer:

mplayer -ao alsa:device=hw=1.7 -ac hwdts,hwac3 movie.avi

so its definately working. But I cant seem to figure out how to get it to work with the GUI players (vlc, GNOME Mplayer, SMplayer) and if i run the smplayer in terminal with the same options it just crashes.
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Re: ac3 passthrough via HDMI

Postby kristhor on Fri May 18, 2012 11:10 pm

So basically this is my setup now:
I have LMDE 201204 with pulseaudio installed, Nvidia gtx 560ti, hdmi to a A/V receiver.
my asound.conf is:

pcm.pulse {
type pulse
}
ctl.pulse {
type pulse
}
pcm.!default {
type pulse
}
ctl.!default {
type pulse
}


In /etc/pulse/default.pa instead of comment out:
"load-module module-udev-detect” with a # and add in its place "load-module module-alsa-sink device=hw:1,7"
I left "load-module module-udev-detect" as it is and just added "load-module module-alsa-sink device=hw:1,7"
cos without the "load-module module-udev-detect" I didnt get other devices loaded (wireless headphone etc. And I use 1,7 cos HDMI 1,7 worked for me when I tested with aplay but that may be different for someone else.

then....

killall pulseaudio
sudo alsa reload

and that added an extra HD option in pulse volume control that I could choose and gave me sound over HDMI.

and then I get ac3 passthrough but at this stage only with mplayer in terminal with:

mplayer -ao alsa:device=hw=1.7 -ac hwdts,hwac3 movie.avi

so it is sort of solved now, except I would like to be able to use it without the command line in vlc for example. But I did add those options in /etc/mplayer.conf so now I can just type mplayer movie.avi

So the final problem is to get this working with other players (preferably vlc or smplayer) with point and click.
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Re: ac3 passthrough via HDMI

Postby kristhor on Mon May 21, 2012 4:33 pm

Does anyone have an idea of how to convert the mplayer command into vlc command? Ive been going through the command line options in vlc which are pretty extensive. But I cant get it to work.
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Re: ac3 passthrough via HDMI

Postby spottyrover on Wed Jun 06, 2012 9:00 am

I'm not sure if this is relevent but usually when I have a sound problem with passthrough I startup gnome-alsa-mixer and check or uncheck the iec958 boxes. Most of the time this fixes the problem. As I seem to find that most versions of linux do not like to go between
dolby prologic and dts easily.
spottyrover
Level 1
Level 1
 
Posts: 9
Joined: Mon Mar 29, 2010 1:11 am

Re: ac3 passthrough via HDMI (MOSTLY SOLVED)

Postby kristhor on Sat Jun 09, 2012 8:51 pm

some extra input....

I notice that sometimes pulseaudio doesnt load! and i cant load it manually with pulsaudio --start and there is no volume icon in the taskbar! When that happines its because the nvidia soundcard doesnt load as card 1 (aplay -l) but as card 2! And lately it has been mostly loading as card 2. So I have to change the mplayer config file and the module loaded in default.pa from 1,7 to 2,7:

load-module module-alsa-sink device=hw:2,7

this is a bit annoying that it doesnt number the soundcard consistently between boots!
kristhor
Level 2
Level 2
 
Posts: 91
Joined: Fri Apr 17, 2009 9:40 pm

Re: ac3 passthrough via HDMI

Postby jimbob87 on Mon Nov 26, 2012 3:02 pm

spottyrover wrote:I'm not sure if this is relevent but usually when I have a sound problem with passthrough I startup gnome-alsa-mixer and check or uncheck the iec958 boxes. Most of the time this fixes the problem.


This is exactly what solved it for me, installed it check the tickbox and I now have sound via HDMI.

Cheers.
jimbob87
Level 1
Level 1
 
Posts: 12
Joined: Fri Oct 12, 2012 10:03 am

Re: ac3 passthrough via HDMI (MOSTLY SOLVED)

Postby zbyna on Sat Feb 16, 2013 2:14 pm

Hi,
I struggled with his issue too, :)
I have "only" PCM 3/2/1 pass-through to my receiver.

I added to

default.pa:
Code: Select all
load-module module-alsa-sink device=hw:0,7 channels=6 channel_map=front-left,front-right,front-center,lfe,rear-left,rear-right


daemon.conf:
Code: Select all
enable-remixing = yes
enable-lfe-remixing = yes


then I see on my receiver PCM 3/2/1 if I play video with ac3 or dts sound with smplayer and vlc.

I am on:
3.7.7-030707-generic (#201302111436 SMP Mon Feb 11 19:37:32 UTC 2013)
Nvidia 313.09
zbyna
Level 1
Level 1
 
Posts: 3
Joined: Sat Feb 16, 2013 1:25 pm

Re: ac3 passthrough via HDMI (MOSTLY SOLVED)

Postby zbyna on Wed Feb 20, 2013 6:50 pm

It seems it is possible to use pulse audio and direct passthrough (DTS AC3 ... ) with ALSA without extra configuration
(means kill and start pulse audio ... ) via HDMI

My specs:
LinuxMint 14 (nadia) gcc 4.7 (x86_64-linux-gnu)
GeForce GTX 570 with driver NVIDIA UNIX x86_64 Kernel Module 313.09
kernel 3.7.7-030707-generic
Xorg version 1.13.1.901 (1.13.2 RC 1)
pulse audio version: 3.0.0 from http://packages.ubuntu.com/raring/amd64/pulseaudio/download
https://launchpad.net/ubuntu/+source/pulseaudio
ALSA version: 1.0.25 from stable Mint repository

Code: Select all
 aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia_1 [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: NVidia_1 [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 3: Headset [Logitech Wireless Headset], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


Code: Select all
aplay -L
default
    Playback/recording through the PulseAudio sound server
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output
dmix:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Direct sample mixing device
dsnoop:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Direct sample snooping device
hw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
plughw:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=7
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=8
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia,DEV=9
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
hdmi:CARD=NVidia_1,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia_1,DEV=1
    HDA NVidia, HDMI 1
    HDMI Audio Output
dmix:CARD=NVidia_1,DEV=3
    HDA NVidia, HDMI 0
    Direct sample mixing device
dmix:CARD=NVidia_1,DEV=7
    HDA NVidia, HDMI 1
    Direct sample mixing device
dsnoop:CARD=NVidia_1,DEV=3
    HDA NVidia, HDMI 0
    Direct sample snooping device
dsnoop:CARD=NVidia_1,DEV=7
    HDA NVidia, HDMI 1
    Direct sample snooping device
hw:CARD=NVidia_1,DEV=3
    HDA NVidia, HDMI 0
    Direct hardware device without any conversions
hw:CARD=NVidia_1,DEV=7
    HDA NVidia, HDMI 1
    Direct hardware device without any conversions
plughw:CARD=NVidia_1,DEV=3
    HDA NVidia, HDMI 0
    Hardware device with all software conversions
plughw:CARD=NVidia_1,DEV=7
    HDA NVidia, HDMI 1
    Hardware device with all software conversions
sysdefault:CARD=Headset
    Logitech Wireless Headset, USB Audio
    Default Audio Device
front:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    Front speakers
surround40:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
dmix:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    Direct sample mixing device
dsnoop:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    Direct sample snooping device
hw:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    Direct hardware device without any conversions
plughw:CARD=Headset,DEV=0
    Logitech Wireless Headset, USB Audio
    Hardware device with all software conversions


1. there is no need to add extra sink (load-module module-alsa-sink device=hw:0,7) to default.pa
it seems that pulse audio send sound to all streams and bug Under-Enumeration of HDMI Devices was corrected
see ftp://download.nvidia.com/XFree86/gpu-hdmi-audio-document/gpu-hdmi-audio.html#_under_enumeration_of_hdmi_devices
my default.pa :
Code: Select all
#!/usr/bin/pulseaudio -nF
#
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

# This startup script is used only if PulseAudio is started per-user
# (i.e. not in system mode)

.nofail

### Load something into the sample cache
#load-sample-lazy x11-bell /usr/share/sounds/gtk-events/activate.wav
#load-sample-lazy pulse-hotplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-coldplug /usr/share/sounds/startup3.wav
#load-sample-lazy pulse-access /usr/share/sounds/generic.wav

.fail

### Automatically restore the volume of streams and devices
load-module module-device-restore
load-module module-stream-restore
load-module module-card-restore

### Automatically augment property information from .desktop files
### stored in /usr/share/application
load-module module-augment-properties

### Load audio drivers statically
### (it's probably better to not load these drivers manually, but instead
### use module-udev-detect -- see below -- for doing this automatically)
#load-module module-alsa-sink
#load-module module-alsa-source device=hw:1,0
#load-module module-oss device="/dev/dsp" sink_name=output source_name=input
#load-module module-oss-mmap device="/dev/dsp" sink_name=output source_name=input
#load-module module-null-sink
#load-module module-pipe-sink

### Automatically load driver modules depending on the hardware available
.ifexists module-udev-detect.so
load-module module-udev-detect use_ucm=0
.else
### Use the static hardware detection module (for systems that lack udev support)
load-module module-detect
.endif

### Automatically connect sink and source if JACK server is present
.ifexists module-jackdbus-detect.so
.nofail
load-module module-jackdbus-detect
.fail
.endif

### Automatically load driver modules for Bluetooth hardware
.ifexists module-bluetooth-policy.so
load-module module-bluetooth-policy
.endif

.ifexists module-bluetooth-discover.so
load-module module-bluetooth-discover
.endif

### Load several protocols
.ifexists module-esound-protocol-unix.so
load-module module-esound-protocol-unix
.endif
load-module module-native-protocol-unix

### Network access (may be configured with paprefs, so leave this commented
### here if you plan to use paprefs)
#load-module module-esound-protocol-tcp
#load-module module-native-protocol-tcp
#load-module module-zeroconf-publish

### Load the RTP receiver module (also configured via paprefs, see above)
#load-module module-rtp-recv

### Load the RTP sender module (also configured via paprefs, see above)
#load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 sink_properties="device.description='RTP Multicast Sink'"
#load-module module-rtp-send source=rtp.monitor

### Load additional modules from GConf settings. This can be configured with the paprefs tool.
### Please keep in mind that the modules configured by paprefs might conflict with manually
### loaded modules.
.ifexists module-gconf.so
.nofail
load-module module-gconf
.fail
.endif

### Automatically restore the default sink/source when changed by the user
### during runtime
### NOTE: This should be loaded as early as possible so that subsequent modules
### that look up the default sink/source get the right value
load-module module-default-device-restore

### Automatically move streams to the default sink if the sink they are
### connected to dies, similar for sources
load-module module-rescue-streams

### Make sure we always have a sink around, even if it is a null sink.
load-module module-always-sink

### Honour intended role device property
load-module module-intended-roles

### Automatically suspend sinks/sources that become idle for too long
load-module module-suspend-on-idle

### If autoexit on idle is enabled we want to make sure we only quit
### when no local session needs us anymore.
.ifexists module-console-kit.so
load-module module-console-kit
.endif
.ifexists module-systemd-login.so
load-module module-systemd-login
.endif

### Enable positioned event sounds
load-module module-position-event-sounds

### Cork music/video streams when a phone stream is active
#load-module module-role-cork

### Modules to allow autoloading of filters (such as echo cancellation)
### on demand. module-filter-heuristics tries to determine what filters
### make sense, and module-filter-apply does the heavy-lifting of
### loading modules and rerouting streams.
load-module module-filter-heuristics
load-module module-filter-apply

### Load DBus protocol
#.ifexists module-dbus-protocol.so
#load-module module-dbus-protocol
#.endif

# X11 modules should not be started from default.pa so that one daemon
# can be shared by multiple sessions.

### Load X11 bell module
#load-module module-x11-bell sample=bell-windowing-system

### Register ourselves in the X11 session manager
#load-module module-x11-xsmp

### Publish connection data in the X11 root window
#.ifexists module-x11-publish.so
#.nofail
#load-module module-x11-publish
#.fail
#.endif

load-module module-switch-on-port-available

### Make some devices default
#set-default-sink output
#set-default-source input


2. I added some extra chars (logical id stream) to profile's description to spot which profile belongs to hw:0,7 (logical stream id 1, physical stream id 7, card id 0) in Pulse Audio Volume Control
file is extra-hdmi.conf in /usr/share/pulseaudio/alsa-mixer/profile-sets :

Code: Select all
# This file is part of PulseAudio.
#
# PulseAudio is free software; you can redistribute it and/or modify
# it under the terms of the GNU Lesser General Public License as
# published by the Free Software Foundation; either version 2.1 of the
# License, or (at your option) any later version.
#
# PulseAudio is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with PulseAudio; if not, write to the Free Software Foundation,
# Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.

; This is a profile for Nvidia and Intel cards - some cards have four HDMI codecs,
; and which ones are working seems to vary a lot between GPU boards. In addition,
; Nvidia and Intel make southbridges as well, so we need to keep the existing
; analog profiles.
; (And by not adding all these extra profiles to default.conf, we make sure
; there is no performance hit for non-Nvidia/Intel cards.)

[General]
auto-profiles = yes

[Mapping analog-mono]
device-strings = hw:%f
channel-map = mono
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line
priority = 1

[Mapping analog-stereo]
device-strings = front:%f hw:%f
channel-map = left,right
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker analog-output-headphones analog-output-headphones-2 analog-output-mono
paths-input = analog-input-front-mic analog-input-rear-mic analog-input-internal-mic analog-input-dock-mic analog-input analog-input-mic analog-input-linein analog-input-aux analog-input-video analog-input-tvtuner analog-input-fm analog-input-mic-line analog-input-headphone-mic
priority = 10

[Mapping analog-surround-40]
device-strings = surround40:%f
channel-map = front-left,front-right,rear-left,rear-right
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
priority = 7
direction = output

[Mapping analog-surround-41]
device-strings = surround41:%f
channel-map = front-left,front-right,rear-left,rear-right,lfe
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
priority = 8
direction = output

[Mapping analog-surround-50]
device-strings = surround50:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
priority = 7
direction = output

[Mapping analog-surround-51]
device-strings = surround51:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
priority = 8
direction = output

[Mapping analog-surround-71]
device-strings = surround71:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe,side-left,side-right
description = Analog Surround 7.1
paths-output = analog-output analog-output-speaker analog-output-desktop-speaker
priority = 7
direction = output

[Mapping iec958-stereo]
device-strings = iec958:%f
channel-map = left,right
paths-input = iec958-stereo-input
paths-output = iec958-stereo-output
priority = 5

[Mapping iec958-ac3-surround-40]
device-strings = a52:%f
channel-map = front-left,front-right,rear-left,rear-right
priority = 2
direction = output

[Mapping iec958-ac3-surround-51]
device-strings = a52:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 3
direction = output

[Mapping iec958-dts-surround-51]
device-strings = dca:%f
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 3
direction = output

[Mapping hdmi-stereo]
device-strings = hdmi:%f
description = Digital Stereo (HDMI-0)
paths-output = hdmi-output-0
channel-map = left,right
priority = 4
direction = output

[Mapping hdmi-surround]
description = Digital Surround 5.1 (HDMI-0)
device-strings = hdmi:%f
paths-output = hdmi-output-0
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 3
direction = output

[Mapping hdmi-stereo-extra1]
description = Digital Stereo (HDMI-1)
device-strings = hdmi:%f,1
paths-output = hdmi-output-1
channel-map = left,right
priority = 2
direction = output

[Mapping hdmi-surround-extra1]
description = Digital Surround 5.1 (HDMI-1)
device-strings = hdmi:%f,1
paths-output = hdmi-output-1
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 1
direction = output

[Mapping hdmi-stereo-extra2]
description = Digital Stereo (HDMI-2)
device-strings = hdmi:%f,2
paths-output = hdmi-output-2
channel-map = left,right
priority = 2
direction = output

[Mapping hdmi-surround-extra2]
description = Digital Surround 5.1 (HDMI-2)
device-strings = hdmi:%f,2
paths-output = hdmi-output-2
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 1
direction = output

[Mapping hdmi-stereo-extra3]
description = Digital Stereo (HDMI-3)
device-strings = hdmi:%f,3
paths-output = hdmi-output-3
channel-map = left,right
priority = 2
direction = output

[Mapping hdmi-surround-extra3]
description = Digital Surround 5.1 (HDMI-3)
device-strings = hdmi:%f,3
paths-output = hdmi-output-3
channel-map = front-left,front-right,rear-left,rear-right,front-center,lfe
priority = 1
direction = output


3. I added enable-lfe-remixing = yes to daemon.conf in /etc/pulse to enable subwoofer

If I need :) to see DTS on my receiver panel (DTS pass-through) I have to shut all application which uses pulseaudio
means firefox with flashplayer, Pulse Audio Volume Control, Clementine ... and then
for example in SMplayer choose AC3, DTS passthrough and ALSA (0.7 - HDA Nvidia)
If any pulse audio application is running even if pacmd list-sink-inputs is empty pass-throuh is not possible

It works in XBMC Frodo too, but it is needed to pause movie for a while to get rid off video tearing

So for me it is definitive solution, pulse audio allows other application to use ALSA 8)
In my opinion it should be said FINALLY :D
zbyna
Level 1
Level 1
 
Posts: 3
Joined: Sat Feb 16, 2013 1:25 pm

Linux Mint is funded by ads and donations.
 

Return to Hardware Support

Who is online

Users browsing this forum: Luxian and 6 guests