LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-05-2015, 03:28 AM   #1
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619
Blog Entries: 19

Rep: Reputation: 76
HDMI audio on Intel NUC DN2820FYK


I got a DN2820FYK to play with at work but I can't get the audio to work from HDMI.

It's running Slackware 14.1 32 bit. Aplay -l doesn't even show the hdmi audio out:
Code:
root@darkstar:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 3: ID 2882 Digital [ID 2882 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@darkstar:~# cat /etc/slackware-version 
Slackware 14.1
root@darkstar:~# uname -a
Linux darkstar 3.10.17-smp #2 SMP Wed Oct 23 17:13:14 CDT 2013 i686 Intel(R) Celeron(R) CPU  N2830  @ 2.16GHz GenuineIntel GNU/Linux
root@darkstar:~#
Anyone have any idea how to get audio to be routed to HDMI on the NUC ?

I found a post on the Intell community portal showing how to fix it for ubuntu but that show's no detail as to what was done to fix it !
 
Old 02-05-2015, 07:02 AM   #2
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 7,998

Rep: Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551
Have you verified the card is enabled in the BIOS? Can you also post the output of lspci and lsmod?
 
Old 02-05-2015, 07:42 AM   #3
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
I can get audio from the 3.5 mm audio jack ... I I guess it is enabled. Also aplay -L shows hdmi out:
Code:
root@darkstar:/var/log# aplay -L
null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
sysdefault:CARD=Intel
    HDA Intel, ALC283 Analog
    Default Audio Device
front:CARD=Intel,DEV=0
    HDA Intel, ALC283 Analog
    Front speakers
surround40:CARD=Intel,DEV=0
    HDA Intel, ALC283 Analog
    4.0 Surround output to Front and Rear speakers
surround41:CARD=Intel,DEV=0
    HDA Intel, ALC283 Analog
    4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=Intel,DEV=0
    HDA Intel, ALC283 Analog
    5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=Intel,DEV=0
    HDA Intel, ALC283 Analog
    5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=Intel,DEV=0
    HDA Intel, ALC283 Analog
    7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
hdmi:CARD=Intel,DEV=0
    HDA Intel, ID 2882 Digital
    HDMI Audio Output
root@darkstar:/var/log#
It looks like that card 0 device 3 might be the hdmi output but I can't seem to play to it with
aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav

Here's the other stuff you want:
Code:
root@darkstar:/var/log# lspci
00:00.0 Host bridge: Intel Corporation ValleyView SSA-CUnit (rev 0e)
00:02.0 VGA compatible controller: Intel Corporation ValleyView Gen7 (rev 0e)
00:13.0 SATA controller: Intel Corporation ValleyView 6-Port SATA AHCI Controller (rev 0e)
00:14.0 USB controller: Intel Corporation ValleyView USB xHCI Host Controller (rev 0e)
00:1a.0 Encryption controller: Intel Corporation ValleyView SEC (rev 0e)
00:1b.0 Audio device: Intel Corporation ValleyView High Definition Audio Controller (rev 0e)
00:1c.0 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e)
00:1c.1 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e)
00:1c.2 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e)
00:1c.3 PCI bridge: Intel Corporation ValleyView PCI Express Root Port (rev 0e)
00:1f.0 ISA bridge: Intel Corporation ValleyView Power Control Unit (rev 0e)
00:1f.3 SMBus: Intel Corporation ValleyView SMBus Controller (rev 0e)
02:00.0 Network controller: Intel Corporation Intel(R) Dual Band Wireless-AC 7260 (rev 73)
03:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168 PCI Express Gigabit Ethernet controller (rev 0c)
root@darkstar:/var/log# lsmod
Module                  Size  Used by
ipv6                  246794  14 
lp                      7199  0 
ppdev                   4710  0 
parport_pc             16728  0 
parport                25305  3 lp,ppdev,parport_pc
fuse                   65066  1 
joydev                  7395  0 
hid_generic              741  0 
btusb                  13948  0 
bluetooth             192760  2 btusb
usbhid                 32543  0 
coretemp                4726  0 
acpi_cpufreq            6310  1 
hid                    70283  2 hid_generic,usbhid
i915                  508710  0 
intel_agp               8680  1 i915
mperf                    919  1 acpi_cpufreq
intel_gtt              10512  2 i915,intel_agp
drm_kms_helper         31358  1 i915
processor              24543  1 acpi_cpufreq
drm                   186279  2 i915,drm_kms_helper
agpgart                22075  3 drm,intel_agp,intel_gtt
video                  10142  1 i915
fan                     1965  0 
thermal                 7136  0 
thermal_sys            19013  4 fan,video,thermal,processor
ir_lirc_codec           3559  0 
freq_table              2176  2 acpi_cpufreq,thermal_sys
ir_mce_kbd_decoder      2714  0 
lirc_dev                7375  1 ir_lirc_codec
iwlmvm                 85320  0 
kvm_intel             119658  0 
i2c_algo_bit            4575  1 i915
xhci_hcd               79335  0 
mac80211              373974  1 iwlmvm
snd_hda_codec_realtek    30084  1 
r8169                  51572  0 
snd_hda_intel          29700  3 
mii                     3335  1 r8169
psmouse                72582  0 
i2c_core               17388  4 drm,i915,drm_kms_helper,i2c_algo_bit
kvm                   311379  1 kvm_intel
ir_nec_decoder          1317  0 
ir_sony_decoder         1287  0 
ir_jvc_decoder          1349  0 
ir_rc6_decoder          1605  0 
ir_rc5_decoder          1285  0 
ir_sanyo_decoder        1289  0 
hwmon                   1021  2 coretemp,thermal_sys
snd_hda_codec         123925  2 snd_hda_codec_realtek,snd_hda_intel
snd_hwdep               4738  1 snd_hda_codec
snd_pcm                62870  2 snd_hda_codec,snd_hda_intel
snd_page_alloc          6062  2 snd_pcm,snd_hda_intel
snd_timer              14870  1 snd_pcm
snd                    44159  12 snd_hda_codec_realtek,snd_hwdep,snd_timer,snd_pcm,snd_hda_codec,snd_hda_intel
soundcore               4318  1 snd
rc_rc6_mce              1096  0 
ite_cir                13211  0 
iwlwifi                67983  1 iwlmvm
serio_raw               3545  0 
rc_core                10706  11 ir_lirc_codec,ir_rc5_decoder,ir_nec_decoder,ir_sony_decoder,ir_mce_kbd_decoder,ir_jvc_decoder,ir_rc6_decoder,ir_sanyo_decoder,ite_cir,rc_rc6_mce
evdev                   7552  9 
cfg80211              321151  3 iwlwifi,mac80211,iwlmvm
rfkill                 12610  2 cfg80211,bluetooth
crc32_pclmul            2365  0 
crc32c_intel            1447  0 
button                  3704  1 i915
microcode               8880  0 
loop                   14786  0 
root@darkstar:/var/log#

Last edited by louigi600; 02-05-2015 at 08:27 AM.
 
Old 02-05-2015, 08:48 AM   #4
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
I noticed that I was getting really bad audio quality even out of the headphones so I thought it could be imputable to the kernel modules. I deiced to try using kernel from current ant things started working.

Code:
root@darkstar:~# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC283 Analog [ALC283 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: PCH [HDA Intel PCH], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
root@darkstar:~# aplay -D plughw:1,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
root@darkstar:~#
 
Old 02-05-2015, 09:55 AM   #5
bassmadrigal
LQ Guru
 
Registered: Nov 2003
Location: West Jordan, UT, USA
Distribution: Slackware
Posts: 7,998

Rep: Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551Reputation: 5551
Great! Sounds like the kernel was too old and didn't include proper support for your setup. Glad you got it figured out.
 
Old 02-28-2015, 11:15 AM   #6
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Encouraged by having got everything to work on the one I got to test at work I got one for home (the same model) ... well so the appear externally .... but Intel changed the BIOS my unit comes with EFI Visual BIOS.
OK it can boot and be installed alright but I've still an issue with sound on the HDMI port: xfce seems not to be able to detect the HDMI audio channel.
I can get mplayer to put the audio on the HDMI port ignoring what xfce mixer has to offer as audio out (so I can play videos ok) but, for example, I can't get firefox to use HDMI audi while watching youtube.

The one at work has firefox reproducing sounds and alsamixed also shows the HDMI audio out.
Apart from the bios the only other difference on the unit at work is that it's running slaxbmc 14.1 while the home one is running slackware 14.1 (both with kernel from current).

Anyone know hot to solve this issue ?
 
Old 02-28-2015, 11:56 PM   #7
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by louigi600 View Post
Encouraged by having got everything to work on the one I got to test at work I got one for home (the same model) ... well so the appear externally .... but Intel changed the BIOS my unit comes with EFI Visual BIOS.
OK it can boot and be installed alright but I've still an issue with sound on the HDMI port: xfce seems not to be able to detect the HDMI audio channel.
I can get mplayer to put the audio on the HDMI port ignoring what xfce mixer has to offer as audio out (so I can play videos ok) but, for example, I can't get firefox to use HDMI audi while watching youtube.

The one at work has firefox reproducing sounds and alsamixed also shows the HDMI audio out.
Apart from the bios the only other difference on the unit at work is that it's running slaxbmc 14.1 while the home one is running slackware 14.1 (both with kernel from current).

Anyone know hot to solve this issue ?
An /etc/asound.conf might do the trick.
Code:
pcm.!default {
      type plug
      slave {
      pcm "hw:0,3" # HD audio
      }
       }
 
Old 03-01-2015, 12:59 AM   #8
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Quote:
Originally Posted by JackHair View Post
An /etc/asound.conf might do the trick.
Code:
pcm.!default {
      type plug
      slave {
      pcm "hw:0,3" # HD audio
      }
       }
Ok I put that in /etc/asound.conf and rebooted but nothing changed. I'm oriented in assuming that the damm efi visual bios presents the audio hardware in a slightly different way that ordinary bios and alsa just can't figure out how to handle it:

Code:
bash-4.2# alsactl init 0
Found hardware: "HDA-Intel" "Intel Valleyview2 HDMI" "HDA:10ec0283,80862055,00100003 HDA:80862882,80860101,00100000" "0x8086" "0x2055"
Hardware is initialized using a generic method
bash-4.2# echo $?
99
bash-4.2#
But but mplayer and asplay seem to be able to use it fine if told specifically to use it.
Code:
/usr/bin/mplayer -noquiet -nofs -nomouseinput -sub-fuzziness 1 -identify -slave -vo xv, -ao alsa:device=hw=0.3 -nokeepaspect -nodr -double -input nodefault-bindings:conf=/dev/null -stop-xscreensaver -wid 35651619 -monitorpixelaspect 1 -ass -embeddedfonts -ass-line-spacing 0 -ass-font-scale 1 -noflip-hebrew -ass-styles /root/.config/smplayer/styles.ass -subfont-autoscale 0 -subfont-osd-scale 20 -subfont-text-scale 20 -subcp ISO-8859-1 -subpos 100 -volume 100 -cache 2048 -osdlevel 0 -vf-add screenshot -noslices -channels 2 -af scaletempo,equalizer=0:0:0:0:0:0:0:0:0:0 -softvol -softvol-max 110 /mnt/nas/old/fantascienza/il_tagliaerbe.avi

bash-4.2# aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
bash-4.2#
Both produce sound trough HDMI on the TV.
Is there a way to force xfce to use that as default audio output ?
 
Old 03-01-2015, 01:20 AM   #9
kkady32
Member
 
Registered: Dec 2010
Distribution: Slackware64-current
Posts: 115

Rep: Reputation: 42
try to put this in /etc/modprobe.d/alsa.conf:
Code:
options snd-hda-intel id=HDMI index=0
options snd-hda-intel id=PCH index=1

Last edited by kkady32; 03-01-2015 at 01:22 AM.
 
Old 03-01-2015, 01:56 AM   #10
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Quote:
Originally Posted by kkady32 View Post
try to put this in /etc/modprobe.d/alsa.conf:
Code:
options snd-hda-intel id=HDMI index=0
options snd-hda-intel id=PCH index=1
I prefer putting that stuff in /lib/modprobe.d in any case I had already tried something similar (copied from the working unit without efi visual bios):
Code:
bash-4.2# cat /lib/modprobe.d/alsa.conf 
options snd_mia index=0
options snd_hda_intel index=1
bash-4.2#
Both produce had the same outcome:
Code:
bash-4.2# alsamixer 
cannot open mixer: No such file or directory
bash-4.2# alsactl init 1
Found hardware: "HDA-Intel" "Intel Valleyview2 HDMI" "HDA:10ec0283,80862055,00100003 HDA:80862882,80860101,00100000" "0x8086" "0x2055"
Hardware is initialized using a generic method
bash-4.2# echo $?
99
bash-4.2# alsactl init 0
alsactl: init:1777: Cannot find soundcard '0'...
bash-4.2#
I can't get the visual bios to display properly on the tv ... but when I had the thing connected to a PC monitor I remember that intel wanted feedback via email for the visual bios: anyone have the email off hand ? I want to tell intel that the new visual bios sucks and give them a link to this thread !!!
 
Old 03-01-2015, 02:02 AM   #11
kkady32
Member
 
Registered: Dec 2010
Distribution: Slackware64-current
Posts: 115

Rep: Reputation: 42
I'm curios to try my settings but is your options.
What is your output from:
cat /proc/asound/card*

Last edited by kkady32; 03-01-2015 at 02:08 AM.
 
Old 03-01-2015, 04:04 AM   #12
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
I commented back out the modprebe.d/alsa.conf to get alsa to at least see correctly the audio jack.
[CODE]
bash-4.2# cat /proc/asound/card*
cat: /proc/asound/card0: Is a directory
0 [PCH ]: HDA-Intel - HDA Intel PCH
HDA Intel PCH at 0xd0810000 irq 104
bash-4.2#
[CODE]
 
Old 03-01-2015, 04:14 AM   #13
JackHair
Member
 
Registered: Aug 2009
Location: Netherlands
Distribution: Slackware64-current
Posts: 167

Rep: Reputation: 39
Quote:
Originally Posted by louigi600 View Post
Ok I put that in /etc/asound.conf and rebooted but nothing changed. I'm oriented in assuming that the damm efi visual bios presents the audio hardware in a slightly different way that ordinary bios and alsa just can't figure out how to handle it:
You did change it to reflect your devices right? (1,3)
 
Old 03-01-2015, 06:18 AM   #14
chemfire
Member
 
Registered: Sep 2012
Posts: 293

Rep: Reputation: Disabled
He may also need an argument passed to the module for his video card. For Radeon hardware you have to pass audio=1, or you get silence, for me the card shows up in AlSA as hda-intel and everything but you get no sound out. Might be a similar thing happening here.


I am also going to post asound.conf, once he gets some basic output working. I expect there are a few more details to HDMI audio he and others might like to resolve. This provides a volume control, format conversion to 48k so all samples play correctly, buffering to remove the skips and pops I was getting and a virtual (null) capture, device. I found some software like qemu did not like not having a capture device absent. DMIX should allow multiple streams to play as well.

Code:
pcm.hdmi_hw {
  type hw
  card 0     # <--- card number
  device 3   # <--- device number
}

pcm.dmixer {
	type dmix
	ipc_key 1024
	slave {
	pcm "hdmi_hw"
	buffer_size 32768
	rate 48000
	period_time 0
	period_size 1024
	buffer_time 0
	}} 

pcm.rate_convert {
	type plug
	slave { pcm "dmixer" 
	      }
}

pcm.hdmi_complete {
  type softvol
  slave { pcm "rate_convert" } 
  control.name "Master"
  control.card 0
}

pcm.null_capture {
  type null
}

pcm.!default {
  type asym
  playback.pcm {
    type plug
    slave { pcm "hdmi_complete" }
  }
  capture.pcm {
    type plug
    slave { pcm "null_capture" }
  }
}

Last edited by chemfire; 03-01-2015 at 06:38 AM.
 
Old 03-01-2015, 08:22 AM   #15
louigi600
Member
 
Registered: Dec 2013
Location: Italy
Distribution: Slackware
Posts: 619

Original Poster
Blog Entries: 19

Rep: Reputation: 76
Quote:
Originally Posted by JackHair View Post
You did change it to reflect your devices right? (1,3)
This plays sound for me on the HDMI port on the unit I've at home, should I not be using 0,3 ?
Code:
bash-4.2# aplay -D plughw:0,3 /usr/share/sounds/alsa/Front_Center.wav
Playing WAVE '/usr/share/sounds/alsa/Front_Center.wav' : Signed 16 bit Little Endian, Rate 48000 Hz, Mono
bash-4.2#


I'll have a crack at chemfire's suggestions as soon as the kids free the TV
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Intel HDMI audio mysteriously broken in XFCE apps with ALSA on Slackware 14.1 esme_squalor Slackware 4 01-25-2015 11:00 AM
LXer: The Remarkable Intel NUC LXer Syndicated Linux News 0 01-16-2014 03:30 PM
readeon hdmi audio (snd-intel-hda) on current chemfire Slackware 5 09-22-2013 03:22 AM
[SOLVED] No Audio on HDMI on intel CE4100 garryhk Linux - Hardware 11 01-24-2013 09:09 AM
HDMI Audio doesn't work - Debian Squeeze (Intel HDMI) felipefv Linux - Hardware 8 02-06-2012 09:47 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration