Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
nVidia, sound over HDMI outside of X
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
AaylaSecura
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2011
Posts: 94
Location: Coruscant

PostPosted: Sun Aug 16, 2015 8:16 am    Post subject: nVidia, sound over HDMI outside of X Reply with quote

Greetings! I have an nVidia GTX 970 with onboard sound card that is detected as an audio controller (separate from the graphics) and the snd-hda-intel driver is used for it (the same driver used for the MoBo onboard audio), which leads me to believe it should be quite separate from the graphics part. That doesn't seem to be the case though. For the actual graphics I use the proprietry nvidia drivers and outside of X - the VESA fb. In X sound over HDMI works... mostly... there is a delay of several seconds and the first few seconds of any playback are cut off but that may be due to the TV set, I'll need to investigate more. I cannot, however, get sound (over HDMI) outside of X. If I use the MoBo onboard audio, all is fine - the sound plays fine before X is started and it also plays uninterrupted when switching from X to virtual consoles. But using the nVidia audio only gives me sound when X is running and is the current tty (switching to a virtual console pauses playback). Can I make it work while still using the nvidia drivers or would I need nouveau for this?

-> kernel config <-

Code:
# lshw -class multimedia
*-multimedia
       description: Audio device
       product: GM204 High Definition Audio Controller
       vendor: NVIDIA Corporation
       physical id: 0.1
       bus info: pci@0000:01:00.1
       version: a1
       width: 32 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:43 memory:fb080000-fb083fff
  *-multimedia
       description: Audio device
       product: C610/X99 series chipset HD Audio Controller
       vendor: Intel Corporation
       physical id: 1b
       bus info: pci@0000:00:1b.0
       version: 05
       width: 64 bits
       clock: 33MHz
       capabilities: pm msi pciexpress bus_master cap_list
       configuration: driver=snd_hda_intel latency=0
       resources: irq:44 memory:fb130000-fb133fff

Code:
# aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: PCH [HDA Intel PCH], device 0: ALC1150 Analog [ALC1150 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC1150 Digital [ALC1150 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: NVidia [HDA NVidia], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Code:
# cat /etc/asound.conf
pcm.dmix2 {
   type dmix
   ipc_key 1024
   slave {
      pcm "hw:1,7"
      rate 48000
      channels 2
      period_time 0
      period_size 1024
      buffer_time 0
      buffer_size 4096
   }
}
pcm.!default {
   type asym
   playback.pcm {
      type plug
      slave.pcm "dmix2"
   }
   capture.pcm {
      type plug
      slave.pcm "hw:2,0"
   }
}
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