Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Display Port HDMI Adapter TV No HDMI Audio Device [solved]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1676
Location: San Jose, CA

PostPosted: Wed Sep 02, 2020 1:25 am    Post subject: Display Port HDMI Adapter TV No HDMI Audio Device [solved] Reply with quote

I have an HP EliteDesk Mini that I'm using for a media PC, running Gentoo of course.

It has dual displayport and VGA output. I bought a DP to HDMI adapter, it works fine for video, but there is no audio via HDMI.

The really disconcerting thing is: HDMI audio is not listed in lspci:

Code:
mythtv@FamilyPC ~ $ lspci -k
00:00.0 Host bridge: Intel Corporation Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers (rev 07)
        Subsystem: Hewlett-Packard Company Xeon E3-1200 v5/E3-1500 v5/6th Gen Core Processor Host Bridge/DRAM Registers
        Kernel driver in use: skl_uncore
00:02.0 VGA compatible controller: Intel Corporation HD Graphics 530 (rev 06)
        DeviceName: Onboard IGD
        Subsystem: Hewlett-Packard Company HD Graphics 530
        Kernel driver in use: i915
        Kernel modules: i915
00:14.0 USB controller: Intel Corporation 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family USB 3.0 xHCI Controller
        Kernel driver in use: xhci_hcd
        Kernel modules: xhci_pci
00:14.2 Signal processing controller: Intel Corporation 100 Series/C230 Series Chipset Family Thermal Subsystem (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Thermal Subsystem
        Kernel driver in use: intel_pch_thermal
        Kernel modules: intel_pch_thermal
00:16.0 Communication controller: Intel Corporation 100 Series/C230 Series Chipset Family MEI Controller #1 (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family MEI Controller
        Kernel driver in use: mei_me
00:16.3 Serial controller: Intel Corporation 100 Series/C230 Series Chipset Family KT Redirection (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family KT Redirection
        Kernel driver in use: serial
00:17.0 SATA controller: Intel Corporation Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode] (rev 31)
        Subsystem: Hewlett-Packard Company Q170/Q150/B150/H170/H110/Z170/CM236 Chipset SATA Controller [AHCI Mode]
        Kernel driver in use: ahci
00:1f.0 ISA bridge: Intel Corporation Q170 Chipset LPC/eSPI Controller (rev 31)
        Subsystem: Hewlett-Packard Company Q170 Chipset LPC/eSPI Controller
00:1f.2 Memory controller: Intel Corporation 100 Series/C230 Series Chipset Family Power Management Controller (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family Power Management Controller
00:1f.3 Audio device: Intel Corporation 100 Series/C230 Series Chipset Family HD Audio Controller (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family HD Audio Controller
        Kernel driver in use: snd_hda_intel
00:1f.4 SMBus: Intel Corporation 100 Series/C230 Series Chipset Family SMBus (rev 31)
        Subsystem: Hewlett-Packard Company 100 Series/C230 Series Chipset Family SMBus
        Kernel driver in use: i801_smbus
        Kernel modules: i2c_i801
00:1f.6 Ethernet controller: Intel Corporation Ethernet Connection (2) I219-LM (rev 31)
        DeviceName: Onboard Lan
        Subsystem: Hewlett-Packard Company Ethernet Connection (2) I219-LM
        Kernel driver in use: e1000e
        Kernel modules: e1000e


I installed the latest BIOS.

I've tried enabling all the audio modules for intel SOC and that was a disaster as the analog HDAUDIO disappeared and aplay -L indicated no audio cards available. I looked at dmesg during that time and couldn't see an audio driver loading...

Here is aplay -L

Code:
mythtv@FamilyPC ~ $ aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
lavrate
    Rate Converter Plugin Using Libav/FFmpeg Library
jack
    JACK Audio Connection Kit
pulse
    PulseAudio Sound Server
upmix
    Plugin for channel upmix (4,6,8)
vdownmix
    Plugin for channel downmix (stereo) with a simple spacialization
sysdefault:CARD=PCH
    HDA Intel PCH, ALC221 Analog
    Default Audio Device
front:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    Front output / input
surround21:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
    HDA Intel PCH, ALC221 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
usbstream:CARD=PCH
    HDA Intel PCH
    USB Stream Output



Pulse does not seem to help:

Code:
mythtv@FamilyPC ~ $ !52
pacmd list-sinks
1 sink(s) available.
  * index: 0
        name: <alsa_output.pci-0000_00_1f.3.analog-stereo>
        driver: <module-alsa-card.c>
        flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
        state: SUSPENDED
        suspend cause: IDLE
        priority: 9039
        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
        volume steps: 65537
        muted: no
        current latency: 0.00 ms
        max request: 0 KiB
        max rewind: 0 KiB
        monitor source: 0
        sample spec: s16le 2ch 44100Hz
        channel map: front-left,front-right
                     Stereo
        used by: 0
        linked by: 0
        configured latency: 0.00 ms; range is 0.50 .. 2000.00 ms
        card: 0 <alsa_card.pci-0000_00_1f.3>
        module: 6
        properties:
                alsa.resolution_bits = "16"
                device.api = "alsa"
                device.class = "sound"
                alsa.class = "generic"
                alsa.subclass = "generic-mix"
                alsa.name = "ALC221 Analog"
                alsa.id = "ALC221 Analog"
                alsa.subdevice = "0"
                alsa.subdevice_name = "subdevice #0"
                alsa.device = "0"
                alsa.card = "0"
                alsa.card_name = "HDA Intel PCH"
                alsa.long_card_name = "HDA Intel PCH at 0xe1044000 irq 122"
                alsa.driver_name = "snd_hda_intel"
                device.bus_path = "pci-0000:00:1f.3"
                sysfs.path = "/devices/pci0000:00/0000:00:1f.3/sound/card0"
                device.bus = "pci"
                device.vendor.id = "8086"
                device.vendor.name = "Intel Corporation"
                device.product.id = "a170"
                device.product.name = "100 Series/C230 Series Chipset Family HD Audio Controller"
                device.form_factor = "internal"
                device.string = "front:0"
                device.buffering.buffer_size = "352800"
                device.buffering.fragment_size = "176400"
                device.access_mode = "mmap+timer"
                device.profile.name = "analog-stereo"
                device.profile.description = "Analog Stereo"
                device.description = "Built-in Audio Analog Stereo"
                alsa.mixer_name = "Realtek ALC221"
                alsa.components = "HDA:10ec0221,103c8055,00100103 HDA:80862809,80860101,00100000"
                module-udev-detect.discovered = "1"
                device.icon_name = "audio-card-pci"
        ports:
                analog-output-speaker: Speakers (priority 10000, latency offset 0 usec, available: unknown)
                        properties:
                                device.icon_name = "audio-speakers"
                analog-output-headphones: Headphones (priority 9900, latency offset 0 usec, available: no)
                        properties:
                                device.icon_name = "audio-headphones"
        active port: <analog-output-speaker>


Here's the loaded modules.

Code:
mythtv@FamilyPC ~ $ lsmod
Module                  Size  Used by
fuse                  118784  2
hid_logitech_hidpp     40960  0
input_leds             16384  0
led_class              16384  1 input_leds
joydev                 24576  0
hid_logitech_dj        28672  0
binfmt_misc            16384  1
coretemp               16384  0
hwmon                  20480  1 coretemp
hp_wmi                 16384  0
sparse_keymap          16384  1 hp_wmi
wmi_bmof               16384  0
x86_pkg_temp_thermal    16384  0
efi_pstore             16384  0
intel_powerclamp       16384  0
i915                 2314240  29
aesni_intel           368640  0
crypto_simd            16384  1 aesni_intel
i2c_algo_bit           16384  1 i915
cryptd                 20480  1 crypto_simd
glue_helper            16384  1 aesni_intel
efivars                20480  1 efi_pstore
e1000e                217088  0
drm_kms_helper        188416  1 i915
ptp                    20480  1 e1000e
i2c_i801               28672  0
syscopyarea            16384  1 drm_kms_helper
pps_core               16384  1 ptp
i2c_smbus              16384  1 i2c_i801
sysfillrect            16384  1 drm_kms_helper
sysimgblt              16384  1 drm_kms_helper
fb_sys_fops            16384  1 drm_kms_helper
xhci_pci               16384  0
drm                   430080  10 drm_kms_helper,i915
xhci_hcd              155648  1 xhci_pci
intel_gtt              24576  1 i915
intel_pch_thermal      16384  0
wmi                    24576  2 hp_wmi,wmi_bmof
video                  45056  1 i915
backlight              16384  3 video,i915,drm
efivarfs               16384  1



I can't figure out how to get this to work. Man I never thought I would be defeated on this project by audio.

If anyone knows what could be wrong, please let me know. I'm stuck at the moment.


Edit: I forgot that for some reason, intel sound drivers must be compiled as modules for them to work. Once I changed to M in the kernel, HDMI audio worked.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1404

PostPosted: Wed Sep 16, 2020 2:37 am    Post subject: Reply with quote

What is the make/model of the adapter and device ?
I dont think many devices implement audio-out over a digital video interconnect.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
RayDude
Veteran
Veteran


Joined: 29 May 2004
Posts: 1676
Location: San Jose, CA

PostPosted: Wed Sep 16, 2020 11:40 pm    Post subject: Reply with quote

turtles wrote:
What is the make/model of the adapter and device ?
I dont think many devices implement audio-out over a digital video interconnect.


I figured it out.

For some reason, on older intel core chipsets, if you compile the audio drivers statically into the kernel, the drivers sometimes don't work. I've had this problem before, but it has been a while since I encountered it.

I simply changed the ALSA and PCI audio drivers to [M], rebuilt the kernel and reboot and then digital audio worked.

Thanks for posting.
_________________
Some day there will only be free software.
Back to top
View user's profile Send private message
turtles
Veteran
Veteran


Joined: 31 Dec 2004
Posts: 1404

PostPosted: Thu Sep 17, 2020 11:13 pm    Post subject: Reply with quote

Wow thats good to know.
_________________
Donate to Gentoo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
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