View previous topic :: View next topic |
Author |
Message |
Fitap Guru
Joined: 13 Mar 2011 Posts: 437 Location: Rosario, Argentina
|
Posted: Mon Oct 22, 2018 2:05 am Post subject: ALSA + Pulseaudio no HDMI sound |
|
|
Hi fellas!
Was a really headache to do enable sound alsa + pulseaudio on my desktop Asus Z97-A.
Code: |
USE="-gnome dvd alsa cdr dbus policykit udisks bluez consoekit pulseaudio"
|
Code: |
equery u alsa-plugins
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-plugins/alsa-plugins-1.1.6:
U I
- - abi_x86_32 : 32-bit (x86) libraries
- - arcam_av : Enables Arcam AV control plugin
- - debug : Enable extra debug codepaths, like asserts and extra output. If you want to get meaningful backtraces see
https://wiki.gentoo.org/wiki/Project:Quality_Assurance/Backtraces
- - ffmpeg : Enable ffmpeg/libav-based audio/video codec support
- - jack : Add support for the JACK Audio Connection Kit
- - libav : Prefer libav over ffmpeg whenever both are supported
- - libsamplerate : Build with support for converting sample rates using libsamplerate
+ + mix : Enables upmix and vdownmix plugin
- - oss : Add support for OSS (Open Sound System)
+ + pulseaudio : Add support for PulseAudio sound server
- - speex : Add support for the speex audio codec (used for speech)
+ + usb_stream : Enables usb_stream plugin
|
Code: |
equery u pulseaudio
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for media-sound/pulseaudio-11.1-r1:
U I
+ + X : Build the X11 publish module to export PulseAudio information through X11 protocol for clients to make use. Don't enable this flag
if you want to use a system wide instance. If unsure, enable this flag.
- - abi_x86_32 : 32-bit (x86) libraries
+ + alsa : Add support for media-libs/alsa-lib (Advanced Linux Sound Architecture)
+ + alsa-plugin : Request installing media-plugins/alsa-plugins with PulseAudio plugin enabled. This ensures that clients supporting ALSA only will
use PulseAudio.
+ + asyncns : Use libasyncns for asynchronous name resolution.
+ + bluetooth : Enable Bluetooth Support
+ + caps : Use Linux capabilities library to control privilege
+ + dbus : Enable dbus support for anything that needs it (gpsd, gnomemeeting, etc)
- - doc : Build the doxygen-described API documentation.
- - equalizer : Enable the equalizer module (requires sci-libs/fftw).
+ + gdbm : Use sys-libs/gdbm to store PulseAudio databases. Recommended for desktop usage. This flag causes the whole package to be licensed
under GPL-2 or later.
+ + glib : (Restricted to <media-sound/pulseaudio-12.0)
Add support to dev-libs/glib-based mainloop for the libpulse client library, to allow using libpulse on glib-based programs.
- - gnome : Use GConf to store user preferences on streams and so on. Don't enable this flag if you want to use a system wide instance. If
unsure, enable this flag.
+ + gtk : Add support for x11-libs/gtk+ (The GIMP Toolkit)
+ + ipv6 : Add support for IP version 6
- - jack : Add support for the JACK Audio Connection Kit
- - libressl : Use dev-libs/libressl instead of dev-libs/openssl when applicable (see also the ssl useflag)
- - libsamplerate : Build with support for converting sample rates using libsamplerate
- - lirc : Add support for lirc (Linux's Infra-Red Remote Control)
- - native-headset : Build with native HSP backend for bluez 5.
- - ofono-headset : Build with oFono HFP backend for bluez 5, requires net-misc/ofono.
+ + orc : Use dev-lang/orc for just-in-time optimization of array operations
+ + qt5 : Add support for the Qt 5 application and UI framework
- - realtime : Makes PulseAudio use RealtimeKit (sys-auth/rtkit) to get real-time priority while running.
- - sox : Add support for Sound eXchange (SoX)
+ + ssl : Use dev-libs/openssl to provide support for RAOP (AirPort) streaming.
- - systemd : Build with sys-apps/systemd support to replace standalone ConsoleKit.
+ + tcpd : Add support for TCP wrappers
- - test : Enable dependencies and/or preparations necessary to run tests (usually controlled by FEATURES=test but can be toggled
independently)
+ + udev : Enable virtual/udev integration (device discovery, power and storage device support, etc)
+ + webrtc-aec : Uses the webrtc.org AudioProcessing library for enhancing VoIP calls greatly in applications that support it by performing acoustic
echo cancellation, analog gain control, noise suppression and other processing.
- - zeroconf : Support for DNS Service Discovery (DNS-SD)
|
Code: |
pacmd list-cards
2 card(s) available.
index: 0
name: <alsa_card.pci-0000_00_03.0>
driver: <module-alsa-card.c>
owner module: 6
properties:
alsa.card = "0"
alsa.card_name = "HDA Intel HDMI"
alsa.long_card_name = "HDA Intel HDMI at 0xdfd34000 irq 31"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:03.0"
sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "0c0c"
device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
device.form_factor = "internal"
device.string = "0"
device.description = "Audio Interno"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: no)
output:hdmi-surround: Digital Surround 5.1 (HDMI) Output (priority 300, available: no)
output:hdmi-surround71: Digital Surround 7.1 (HDMI) Output (priority 300, available: no)
output:hdmi-stereo-extra1: Digital Stereo (HDMI 2) Output (priority 5200, available: unknown)
output:hdmi-surround-extra1: Digital Surround 5.1 (HDMI 2) Output (priority 100, available: unknown)
output:hdmi-stereo-extra2: Digital Stereo (HDMI 3) Output (priority 5200, available: no)
output:hdmi-surround-extra2: Digital Surround 5.1 (HDMI 3) Output (priority 100, available: no)
output:hdmi-surround71-extra2: Digital Surround 7.1 (HDMI 3) Output (priority 100, available: no)
output:hdmi-stereo-extra3: Digital Stereo (HDMI 4) Output (priority 5200, available: no)
output:hdmi-surround-extra3: Digital Surround 5.1 (HDMI 4) Output (priority 100, available: no)
output:hdmi-surround71-extra3: Digital Surround 7.1 (HDMI 4) Output (priority 100, available: no)
off: Apagado (priority 0, available: unknown)
active profile: <output:hdmi-stereo-extra1>
sinks:
alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1/#0: Audio Interno Digital Stereo (HDMI 2)
sources:
alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1.monitor/#0: Monitor of Audio Interno Digital Stereo (HDMI 2)
ports:
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-1: HDMI / DisplayPort 2 (priority 5800, latency offset 0 usec, available: yes)
properties:
device.icon_name = "video-display"
device.product.name = "SONY TV"
hdmi-output-2: HDMI / DisplayPort 3 (priority 5700, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
hdmi-output-3: HDMI / DisplayPort 4 (priority 5600, latency offset 0 usec, available: no)
properties:
device.icon_name = "video-display"
index: 1
name: <alsa_card.pci-0000_00_1b.0>
driver: <module-alsa-card.c>
owner module: 7
properties:
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xdfd30000 irq 30"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "8ca0"
device.product.name = "9 Series Chipset Family HD Audio Controller"
device.form_factor = "internal"
device.string = "1"
device.description = "Audio Interno"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
profiles:
input:analog-stereo: Estéreo Analógico Input (priority 60, available: no)
output:analog-stereo: Estéreo Analógico Output (priority 6000, available: no)
output:analog-stereo+input:analog-stereo: Estéreo Analógico.Duplex (priority 6060, available: no)
output:analog-surround-21: Análogico Envolvente 2.1 Output (priority 800, available: no)
output:analog-surround-21+input:analog-stereo: Análogico Envolvente 2.1 Output + Estéreo Analógico Input (priority 860, available: no)
output:analog-surround-40: Análogo Envolvente 4.0 Output (priority 700, available: no)
output:analog-surround-40+input:analog-stereo: Análogo Envolvente 4.0 Output + Estéreo Analógico Input (priority 760, available: no)
output:analog-surround-41: Análogo Envolvente 4.1 Output (priority 800, available: no)
output:analog-surround-41+input:analog-stereo: Análogo Envolvente 4.1 Output + Estéreo Analógico Input (priority 860, available: no)
output:analog-surround-50: Análogo Envolvente 5.0 Output (priority 700, available: no)
output:analog-surround-50+input:analog-stereo: Análogo Envolvente 5.0 Output + Estéreo Analógico Input (priority 760, available: no)
output:analog-surround-51: Análogo Envolvente 5.1 Output (priority 800, available: no)
output:analog-surround-51+input:analog-stereo: Análogo Envolvente 5.1 Output + Estéreo Analógico Input (priority 860, available: no)
output:hdmi-stereo: Digital Stereo (HDMI) Output (priority 5400, available: unknown)
output:hdmi-stereo+input:analog-stereo: Digital Stereo (HDMI) Output + Estéreo Analógico Input (priority 5460, available: unknown)
off: Apagado (priority 0, available: unknown)
active profile: <output:hdmi-stereo+input:analog-stereo>
sinks:
alsa_output.pci-0000_00_1b.0.hdmi-stereo/#1: Audio Interno Digital Stereo (HDMI)
sources:
alsa_output.pci-0000_00_1b.0.hdmi-stereo.monitor/#1: Monitor of Audio Interno Digital Stereo (HDMI)
alsa_input.pci-0000_00_1b.0.analog-stereo/#2: Audio Interno Estéreo Analógico
ports:
analog-input-front-mic: Front Microphone (priority 8500, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-rear-mic: Rear Microphone (priority 8200, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-input-microphone"
analog-input-linein: En línea (priority 8100, latency offset 0 usec, available: no)
properties:
analog-output-lineout: Line Out (priority 9900, latency offset 0 usec, available: no)
properties:
analog-output-headphones: Auriculares analógicos (priority 9000, latency offset 0 usec, available: no)
properties:
device.icon_name = "audio-headphones"
hdmi-output-0: HDMI / DisplayPort (priority 5900, latency offset 0 usec, available: unknown)
properties:
device.icon_name = "video-display"
|
Code: |
aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
pulse
PulseAudio Sound Server
hdmi:CARD=HDMI,DEV=0
HDA Intel HDMI, HDMI 0
HDMI Audio Output
hdmi:CARD=HDMI,DEV=1
HDA Intel HDMI, HDMI 1
HDMI Audio Output
hdmi:CARD=HDMI,DEV=2
HDA Intel HDMI, HDMI 2
HDMI Audio Output
hdmi:CARD=HDMI,DEV=3
HDA Intel HDMI, HDMI 3
HDMI Audio Output
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
HDMI Audio Output
|
Code: |
dmesg | grep snd
[ 0.714648] snd_hda_intel 0000:00:03.0: enabling device (0000 -> 0002)
[ 0.714915] snd_hda_intel 0000:00:1b.0: enabling device (0000 -> 0002)
[ 0.715267] usbcore: registered new interface driver snd-usb-audio
[ 0.724196] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC892: line_outs=3 (0x14/0x15/0x16/0x0/0x0) type:line
[ 0.724199] snd_hda_codec_realtek hdaudioC1D0: speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[ 0.724202] snd_hda_codec_realtek hdaudioC1D0: hp_outs=1 (0x1b/0x0/0x0/0x0/0x0)
[ 0.724204] snd_hda_codec_realtek hdaudioC1D0: mono: mono_out=0x0
[ 0.724206] snd_hda_codec_realtek hdaudioC1D0: dig-out=0x11/0x1e
[ 0.724208] snd_hda_codec_realtek hdaudioC1D0: inputs:
[ 0.724210] snd_hda_codec_realtek hdaudioC1D0: Front Mic=0x19
[ 0.724212] snd_hda_codec_realtek hdaudioC1D0: Rear Mic=0x18
[ 0.724214] snd_hda_codec_realtek hdaudioC1D0: Line=0x1a
[ 0.781783] snd_hda_intel 0000:00:03.0: bound 0000:00:02.0 (ops i915_audio_component_bind_ops)
|
Code: |
dmesg | grep HDMI
[ 0.789345] input: HDA Intel HDMI HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:03.0/sound/card0/input10
[ 0.789403] input: HDA Intel HDMI HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:03.0/sound/card0/input11
[ 0.789450] input: HDA Intel HDMI HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:03.0/sound/card0/input12
[ 0.789493] input: HDA Intel HDMI HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:03.0/sound/card0/input13
|
Code: |
alsamixer -c 0
─────────────────────────────────────────────────────────────────── AlsaMixer v1.1.6 ────────────────────────────────────────────────────────────────────┐
│ Card: HDA Intel HDMI F1: Help │
│ Chip: Intel Haswell HDMI F2: System information │
│ View: F3:[Playback] F4: Capture F5: All F6: Select sound card │
│ Item: hdmi_volume Esc: Exit │
│ │
│ │
│ ┌──┐ ┌──┐ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ │▒▒│ │▒▒│ │
│ └──┘ ┌──┐ ┌──┐ ┌──┐ ┌──┐ └──┘ │
│ │OO│ │OO│ │OO│ │OO│ │
│ └──┘ └──┘ └──┘ └──┘ │
│ 100<>100 100<>100 │
│ PCM S/PDIF S/PDIF 1 S/PDIF 2 S/PDIF 3 <hdmi_volume > │
│ │
│ │
└─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────┘
|
Code: |
pactl list sinks
Sink #0
State: SUSPENDED
Name: alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1
Description: Audio Interno Digital Stereo (HDMI 2)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 6
Mute: no
Volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Base Volume: 65536 / 100% / 0,00 dB
Monitor Source: alsa_output.pci-0000_00_03.0.hdmi-stereo-extra1.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "HDMI 1"
alsa.id = "HDMI 1"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "7"
alsa.card = "0"
alsa.card_name = "HDA Intel HDMI"
alsa.long_card_name = "HDA Intel HDMI at 0xdfd34000 irq 31"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:03.0"
sysfs.path = "/devices/pci0000:00/0000:00:03.0/sound/card0"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "0c0c"
device.product.name = "Xeon E3-1200 v3/4th Gen Core Processor HD Audio Controller"
device.form_factor = "internal"
device.string = "hdmi:0,1"
device.buffering.buffer_size = "352768"
device.buffering.fragment_size = "176384"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo-extra1"
device.profile.description = "Digital Stereo (HDMI 2)"
device.description = "Audio Interno Digital Stereo (HDMI 2)"
alsa.mixer_name = "Intel Haswell HDMI"
alsa.components = "HDA:80862807,80860101,00100000"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Puertos:
hdmi-output-1: HDMI / DisplayPort 2 (priority: 5800, available)
Puerto Activo: hdmi-output-1
Formats:
pcm
Sink #1
State: SUSPENDED
Name: alsa_output.pci-0000_00_1b.0.hdmi-stereo
Description: Audio Interno Digital Stereo (HDMI)
Driver: module-alsa-card.c
Sample Specification: s16le 2ch 44100Hz
Channel Map: front-left,front-right
Owner Module: 7
Mute: no
Volume: front-left: 65536 / 100% / 0,00 dB, front-right: 65536 / 100% / 0,00 dB
balance 0,00
Base Volume: 65536 / 100% / 0,00 dB
Monitor Source: alsa_output.pci-0000_00_1b.0.hdmi-stereo.monitor
Latency: 0 usec, configured 0 usec
Flags: HARDWARE DECIBEL_VOLUME LATENCY SET_FORMATS
Properties:
alsa.resolution_bits = "16"
device.api = "alsa"
device.class = "sound"
alsa.class = "generic"
alsa.subclass = "generic-mix"
alsa.name = "ALC892 Digital"
alsa.id = "ALC892 Digital"
alsa.subdevice = "0"
alsa.subdevice_name = "subdevice #0"
alsa.device = "3"
alsa.card = "1"
alsa.card_name = "HDA Intel PCH"
alsa.long_card_name = "HDA Intel PCH at 0xdfd30000 irq 30"
alsa.driver_name = "snd_hda_intel"
device.bus_path = "pci-0000:00:1b.0"
sysfs.path = "/devices/pci0000:00/0000:00:1b.0/sound/card1"
device.bus = "pci"
device.vendor.id = "8086"
device.vendor.name = "Intel Corporation"
device.product.id = "8ca0"
device.product.name = "9 Series Chipset Family HD Audio Controller"
device.form_factor = "internal"
device.string = "hdmi:1"
device.buffering.buffer_size = "352800"
device.buffering.fragment_size = "176400"
device.access_mode = "mmap+timer"
device.profile.name = "hdmi-stereo"
device.profile.description = "Digital Stereo (HDMI)"
device.description = "Audio Interno Digital Stereo (HDMI)"
alsa.mixer_name = "Realtek ALC892"
alsa.components = "HDA:10ec0892,1043860b,00100302"
module-udev-detect.discovered = "1"
device.icon_name = "audio-card-pci"
Puertos:
hdmi-output-0: HDMI / DisplayPort (priority: 5900)
Puerto Activo: hdmi-output-0
Formats:
pcm
|
Code: |
fuser -v /dev/snd/*
USER PID ACCESS COMMAND
/dev/snd/controlC0: fitap 3036 F.... pulseaudio
fitap 3126 F.... pulseaudio
/dev/snd/controlC1: fitap 3036 F.... pulseaudio
fitap 3126 F.... pulseaudio
/dev/snd/pcmC0D7p: fitap 3126 F...m pulseaudio
/dev/snd/pcmC1D0c: fitap 3126 F...m pulseaudio
/dev/snd/pcmC1D3p: fitap 3126 F...m pulseaudio
|
Digging over internet some users if using Pulseaudio don't set up ~/.asoundrc or /etc/asound.conf
Any ideas ?
My best. |
|
Back to top |
|
|
fedeliallalinea Administrator
Joined: 08 Mar 2003 Posts: 30915 Location: here
|
Posted: Tue Oct 23, 2018 6:42 pm Post subject: |
|
|
Fitap wrote: | Mods, can move this thread to Multimedia? |
Use report button for that _________________ Questions are guaranteed in life; Answers aren't. |
|
Back to top |
|
|
Fitap Guru
Joined: 13 Mar 2011 Posts: 437 Location: Rosario, Argentina
|
Posted: Wed Oct 24, 2018 1:54 am Post subject: |
|
|
Thanks for the imput fedeliallalinea |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|