View previous topic :: View next topic |
Author |
Message |
guido.hatzsis n00b
Joined: 10 Jul 2015 Posts: 51
|
Posted: Thu Jun 23, 2016 11:27 am Post subject: Unable to play audio via HDMI on intel HD4600 |
|
|
I tried to get the audio to work via the HDMI cable that is connected to the motherboard with a gentoo kernel and I have an error during playback.
I have tested with the same gentoo system but different kernel (the one from an ubuntu disto version 4.4) and the audio works with that one. I believe that I have all the modules loaded correctly, and the card that I wish to play the audio through is:
[code]
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI_1 [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
Subdevices: 1/1
Subdevice #0: subdevice #0
[/code]
I run speaker-test and I get an error after about 5 seconds (of silence):
[code] # speaker-test -c 2 -r 48000 -D hw:0,3
speaker-test 1.1.1
Playback device is hw:0,3
Stream parameters are 48000Hz, S16_LE, 2 channels
Using 16 octaves of pink noise
Rate set to 48000Hz (requested 48000Hz)
Buffer size range from 64 to 16384
Period size range from 32 to 8192
Using max buffer size 16384
Periods = 4
was set period_size = 4096
was set buffer_size = 16384
0 - Front Left
Write error: -5,Input/output error
xrun_recovery failed: -5,Input/output error
Transfer failed: Input/output error
[/code]
I believe this to be a kernel configuration issue but I cannot see what I am missing.
The config has:
[code]
CONFIG_SND_HDA=m
CONFIG_SND_HDA_INTEL=m
CONFIG_SND_HDA_HWDEP=y
CONFIG_SND_HDA_RECONFIG=y
CONFIG_SND_HDA_INPUT_BEEP=y
CONFIG_SND_HDA_INPUT_BEEP_MODE=1
CONFIG_SND_HDA_PATCH_LOADER=y
CONFIG_SND_HDA_CODEC_REALTEK=m
# CONFIG_SND_HDA_CODEC_ANALOG is not set
# CONFIG_SND_HDA_CODEC_SIGMATEL is not set
# CONFIG_SND_HDA_CODEC_VIA is not set
CONFIG_SND_HDA_CODEC_HDMI=m
# CONFIG_SND_HDA_CODEC_CIRRUS is not set
# CONFIG_SND_HDA_CODEC_CONEXANT is not set
# CONFIG_SND_HDA_CODEC_CA0110 is not set
# CONFIG_SND_HDA_CODEC_CA0132 is not set
# CONFIG_SND_HDA_CODEC_CMEDIA is not set
# CONFIG_SND_HDA_CODEC_SI3054 is not set
CONFIG_SND_HDA_GENERIC=m
CONFIG_SND_HDA_POWER_SAVE_DEFAULT=0
CONFIG_SND_HDA_CORE=m
CONFIG_SND_HDA_I915=y
CONFIG_SND_HDA_PREALLOC_SIZE=64
# CONFIG_SND_USB is not set
# CONFIG_SND_SOC is not set
# CONFIG_SOUND_PRIME is not set
CONFIG_AC97_BUS=m
[/code]
What else is needed? |
|
Back to top |
|
|
sebB l33t
Joined: 02 Mar 2011 Posts: 806 Location: S.O. France
|
Posted: Fri Jun 24, 2016 6:40 am Post subject: |
|
|
Can you post the full output of aplay -l
Look the driver used in ubuntu (lspci -k) |
|
Back to top |
|
|
Logicien Veteran
Joined: 16 Sep 2005 Posts: 1555 Location: Montréal
|
Posted: Fri Jun 24, 2016 8:55 am Post subject: |
|
|
You need to compare your Gentoo kernel .config with the one of Ubuntu about sound setup. You need too to compare the Gentoo sound modules loaded with the ones of Ubuntu kernel. If ajusting the sound setup of your Gentoo kernel with the ubuntu one do not resolv the issue, you may need to compare other parts of both kernel configurations. Something like
Code: | grep CONFIG_SND_ .config |
on both kernel configurations will tell you the difference between the two sound setups. A diff command on both .config files may give you an interesting output.
Some needed modules may miss or may not be load on your Gentoo kernel. _________________ Paul |
|
Back to top |
|
|
guido.hatzsis n00b
Joined: 10 Jul 2015 Posts: 51
|
Posted: Fri Jun 24, 2016 12:23 pm Post subject: |
|
|
Thanks, the problem was CONFIG_INTEL_IOMMU_DEFAULT_ON was set. |
|
Back to top |
|
|
|