Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] HDMI audio and custom kernel
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Nov 28, 2015 5:45 am    Post subject: [SOLVED] HDMI audio and custom kernel Reply with quote

I'm having a problem getting the HDMI audio working when building a custom kernel vs genkernel. I'm not using pulseaudio, only alsa.
I follow the same process for setting up HDMI audio for both custom and gen kernel:
Kernel version - 4.1.12-gentoo
(Genkernel)
Code:
Device Drivers  --->
 <*> Sound card support  --->
  <M>   Advanced Linux Sound Architecture  --->
   HD-Audio  --->
    <M> HD Audio PCI
    (2048) Pre-allocated buffer size for HD-audio driver
    [*] Build hwdep interface for HD-audio driver
    -*- Allow dynamic codec reconfiguration
    [*] Support jack plugging notification via input layer
    [*] Support initialization patch loading for HD-audio
    <M> Build HDMI/DisplayPort HD-audio codec support


(Custom kernel)
Code:
Device Drivers  --->
 <*> Sound card support  --->
  <*>   Advanced Linux Sound Architecture  --->
   HD-Audio  --->
    <*> HD Audio PCI
    (2048) Pre-allocated buffer size for HD-audio driver
    [*] Build hwdep interface for HD-audio driver
    -*- Allow dynamic codec reconfiguration
    [*] Support jack plugging notification via input layer
    [*] Support initialization patch loading for HD-audio
    <*> Build HDMI/DisplayPort HD-audio codec support


but the custom method doesn't report card 0 device 8 via aplay -l, which is the working HDMI.

(Genkernel)
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0


~/.asoundrc
Code:
defaults.pcm.!card HDMI
defaults.pcm.!device 8


Here are the ASRock B85M-ITX motherboard specs:
http://www.newegg.com/Product/Product.aspx?Item=N82E16813157390


Last edited by davidbrooke on Sat Nov 28, 2015 3:34 pm; edited 1 time in total
Back to top
View user's profile Send private message
Buffoon
Veteran
Veteran


Joined: 17 Jun 2015
Posts: 1074
Location: EU or US

PostPosted: Sat Nov 28, 2015 11:17 am    Post subject: Reply with quote

<*> Enable generic HD-audio codec parser

Do you have it enabled?
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Nov 28, 2015 3:27 pm    Post subject: Reply with quote

Buffoon wrote:
<*> Enable generic HD-audio codec parser

Do you have it enabled?

Currently it is not enabled since I tried that option earlier without any positive effect.
Thanks
Back to top
View user's profile Send private message
davidbrooke
Guru
Guru


Joined: 03 Jan 2015
Posts: 341

PostPosted: Sat Nov 28, 2015 3:33 pm    Post subject: Reply with quote

I found the solution....
The following kernel item needs to be enabled:
Code:
Device Drivers  --->
 <*> Sound card support  --->
  <*>   Advanced Linux Sound Architecture  --->
   [*]   Dynamic device file minor numbers
    (32)    Max number of sound cards (NEW

This correctly enables the missing device:
Code:
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Note:
The above fix isn't required for any of my other Gentoo setups, this seems to be specific for this ASRock B85M-ITX motherboard.
Back to top
View user's profile Send private message
ceric35
Tux's lil' helper
Tux's lil' helper


Joined: 27 Aug 2006
Posts: 115

PostPosted: Wed Jan 06, 2016 9:58 pm    Post subject: Reply with quote

Thanks, i got the exact same problem.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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