You are not logged in.

#1 2015-11-29 10:56:51

hillbicks
Member
Registered: 2014-03-14
Posts: 14

[solved][Kodi] No OSS mixer device present.

Hey guys,

I'm using a HTPC running arch with an nvidia card, which is connected via HDMI to a pulse eight CEC adapter which in turn is connected to a Pioneer AVR. Roughly 80% of the reboots result in a state where the soundcard is missing. Sometimes it works on the first boot, sometimes it takes a dozen reboots for the card to show up and I have no idea what the problem might be (timing issue maybe?)

Since the HTPC is only running KODI and nothing else, I don't have pulseaudio installed and KODI is started with Environment="AE_SINK=ALSA" in the kodi systemd file.

Here the some parts of the kodi and journalctl logfiles that I think are relevant, if anything is missing, please let me know

Logfiles no audio device:

journalctl

Nov 29 08:39:55 xbmc-wz kernel: snd_hda_intel 0000:03:00.1: Disabling MSI
Nov 29 08:39:55 xbmc-wz kernel: snd_hda_intel 0000:03:00.1: Handle VGA-switcheroo audio client
Nov 29 08:39:55 xbmc-wz alsactl[223]: /usr/bin/alsactl: load_state:1735: No soundcards found...

kodi.log

08:40:18 T:140190608644224  NOTICE: No Devices found - retry: 1
08:40:19 T:140190608644224  NOTICE: User specified Sink ALSA could not be enumerated
08:40:19 T:140190608644224   ERROR: PulseAudio: Failed to connect context
08:40:19 T:140190608644224  NOTICE: PulseAudio might not be running. Context was not created.
08:40:19 T:140190608644224  NOTICE: CAESinkOSS::EnumerateDevicesEx - No OSS mixer device present: /dev/mixer
08:40:19 T:140190608644224  NOTICE: Found 0 Lists of Devices
08:40:18 T:140190608644224  NOTICE: No Devices found - retry: 1

Logfiles WITH audio device:

journalctl

ov 29 08:50:12 xbmc-wz kernel: snd_hda_intel 0000:03:00.1: Disabling MSI
Nov 29 08:50:12 xbmc-wz kernel: snd_hda_intel 0000:03:00.1: Handle VGA-switcheroo audio client
Nov 29 08:50:12 xbmc-wz systemd[1]: Started Update UTMP about System Boot/Shutdown.
Nov 29 08:50:12 xbmc-wz systemd[1]: Reached target System Initialization.
Nov 29 08:50:12 xbmc-wz systemd[1]: Starting Restore Sound Card State...
Nov 29 08:50:12 xbmc-wz alsactl[219]: /usr/bin/alsactl: load_state:1735: No soundcards found...


Nov 29 08:50:12 xbmc-wz systemd[1]: Reached target Sound Card.
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input7
Nov 29 08:50:12 xbov 29 08:50:12 xbmc-wz kernel: snd_hda_intel 0000:03:00.1: Disabling MSI
Nov 29 08:50:12 xbmc-wz kernel: snd_hda_intel 0000:03:00.1: Handle VGA-switcheroo audio client
Nov 29 08:50:12 xbmc-wz systemd[1]: Started Update UTMP about System Boot/Shutdown.
Nov 29 08:50:12 xbmc-wz systemd[1]: Reached target System Initialization.
Nov 29 08:50:12 xbmc-wz systemd[1]: Starting Restore Sound Card State...
Nov 29 08:50:12 xbmc-wz alsactl[219]: /usr/bin/alsactl: load_state:1735: No soundcards found...

Nov 29 08:50:12 xbmc-wz systemd[1]: Reached target Sound Card.
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input7
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input8
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input9
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input10
mc-wz kernel: input: HDA NVidia HDMI/DP,pcm=7 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input8
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=8 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input9
Nov 29 08:50:12 xbmc-wz kernel: input: HDA NVidia HDMI/DP,pcm=9 as /devices/pci0000:00/0000:00:1c.0/0000:03:00.1/sound/card0/input10

kodi.log

08:50:24 T:140242201372800  NOTICE: Found 1 Lists of Devices
08:50:24 T:140242201372800  NOTICE: Enumerated ALSA devices:
08:50:24 T:140242201372800  NOTICE:     Device 1
08:50:24 T:140242201372800  NOTICE:         m_deviceName      : hdmi:CARD=NVidia,DEV=0
08:50:24 T:140242201372800  NOTICE:         m_displayName     : HDA NVidia
08:50:24 T:140242201372800  NOTICE:         m_displayNameExtra: HDMI #0
08:50:24 T:140242201372800  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
08:50:24 T:140242201372800  NOTICE:         m_channels        : FL,FR,LFE,FC,BC,BL,BR,FLOC,FROC,BLOC,BROC,TFC,TC,TFL,TFR,UNKNOWN1
08:50:24 T:140242201372800  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
08:50:24 T:140242201372800  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
08:50:24 T:140242201372800  NOTICE:     Device 2
08:50:24 T:140242201372800  NOTICE:         m_deviceName      : hdmi:CARD=NVidia,DEV=1
08:50:24 T:140242201372800  NOTICE:         m_displayName     : HDA NVidia
08:50:24 T:140242201372800  NOTICE:         m_displayNameExtra: PIO VSX-924 on HDMI #1
08:50:24 T:140242201372800  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
08:50:24 T:140242201372800  NOTICE:         m_channels        : FL,FR,LFE,FC,BL,BR,BLOC,BROC
08:50:24 T:140242201372800  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
08:50:24 T:140242201372800  NOTICE:         m_dataFormats     : AE_FMT_LPCM,AE_FMT_AC3,AE_FMT_DTS,AE_FMT_EAC3,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_AAC
08:50:24 T:140242201372800  NOTICE:     Device 3
08:50:24 T:140242201372800  NOTICE:         m_deviceName      : hdmi:CARD=NVidia,DEV=2
08:50:24 T:140242201372800  NOTICE:         m_displayName     : HDA NVidia
08:50:24 T:140242201372800  NOTICE:         m_displayNameExtra: HDMI #2
08:50:24 T:140242201372800  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
08:50:24 T:140242201372800  NOTICE:         m_channels        : FL,FR,LFE,FC,BC,BL,BR,FLOC,FROC,BLOC,BROC,TFC,TC,TFL,TFR,UNKNOWN1
08:50:24 T:140242201372800  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
08:50:24 T:140242201372800  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC
08:50:24 T:140242201372800  NOTICE:     Device 4
08:50:24 T:140242201372800  NOTICE:         m_deviceName      : hdmi:CARD=NVidia,DEV=3
08:50:24 T:140242201372800  NOTICE:         m_displayName     : HDA NVidia
08:50:24 T:140242201372800  NOTICE:         m_displayNameExtra: HDMI #3
08:50:24 T:140242201372800  NOTICE:         m_deviceType      : AE_DEVTYPE_HDMI
08:50:24 T:140242201372800  NOTICE:         m_channels        : FL,FR,LFE,FC,BC,BL,BR,FLOC,FROC,BLOC,BROC,TFC,TC,TFL,TFR,UNKNOWN1
08:50:24 T:140242201372800  NOTICE:         m_sampleRates     : 32000,44100,48000,88200,96000,176400,192000
08:50:24 T:140242201372800  NOTICE:         m_dataFormats     : AE_FMT_S32NE,AE_FMT_S16NE,AE_FMT_S16LE,AE_FMT_LPCM,AE_FMT_DTSHD,AE_FMT_TRUEHD,AE_FMT_EAC3,AE_FMT_DTS,AE_FMT_AC3,AE_FMT_AAC

As said, sometimes it works, sometimes it doesn't and I haven't found a way yet to reproduce this behaviour either way. So if anyone can point me in the right direction, that would be really great.

Thanks in advance guys.

Last edited by hillbicks (2015-12-05 10:48:16)

Offline

#2 2015-11-29 14:35:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,552

Re: [solved][Kodi] No OSS mixer device present.

When the soundcard is found,please post :

lspci -k ,aplay -l (that's small Lima) and aplay -L (capital Lima) .

a full journalctl -b or dmesg output would also be useful (better use a pastebin client, these are huge).


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#3 2015-11-29 15:18:06

hillbicks
Member
Registered: 2014-03-14
Posts: 14

Re: [solved][Kodi] No OSS mixer device present.

Sure thing, here you go:

lscpi -k

00:00.0 Host bridge: Intel Corporation 82G33/G31/P35/P31 Express DRAM Controller (rev 02)
	Subsystem: ASRock Incorporation Device 29c0
	Kernel modules: intel_agp
00:1a.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 02)
	Subsystem: ASRock Incorporation Device 2937
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
00:1a.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 02)
	Subsystem: ASRock Incorporation Device 2938
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
00:1a.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 02)
	Subsystem: ASRock Incorporation Device 2939
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
00:1a.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 02)
	Subsystem: ASRock Incorporation Device 293c
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 02)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.4 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 5 (rev 02)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1c.5 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 6 (rev 02)
	Kernel driver in use: pcieport
	Kernel modules: shpchp
00:1d.0 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 02)
	Subsystem: ASRock Incorporation Device 2934
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
00:1d.1 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 02)
	Subsystem: ASRock Incorporation Device 2935
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
00:1d.2 USB controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 02)
	Subsystem: ASRock Incorporation Device 2936
	Kernel driver in use: uhci_hcd
	Kernel modules: uhci_hcd
00:1d.7 USB controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 02)
	Subsystem: ASRock Incorporation Device 293a
	Kernel driver in use: ehci-pci
	Kernel modules: ehci_pci
00:1e.0 PCI bridge: Intel Corporation 82801 PCI Bridge (rev 92)
00:1f.0 ISA bridge: Intel Corporation 82801IB (ICH9) LPC Interface Controller (rev 02)
	Subsystem: ASRock Incorporation Device 2918
	Kernel driver in use: lpc_ich
	Kernel modules: lpc_ich
00:1f.2 SATA controller: Intel Corporation 82801IB (ICH9) 4 port SATA Controller [AHCI mode] (rev 02)
	Subsystem: ASRock Incorporation Device 2923
	Kernel driver in use: ahci
	Kernel modules: ahci
00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 02)
	Subsystem: ASRock Incorporation Device 2930
	Kernel driver in use: i801_smbus
	Kernel modules: i2c_i801
01:00.0 Ethernet controller: Realtek Semiconductor Co., Ltd. RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller (rev 02)
	Subsystem: ASRock Incorporation Motherboard (one of many)
	Kernel driver in use: r8169
	Kernel modules: r8169
02:00.0 IDE interface: JMicron Technology Corp. JMB368 IDE controller
	Subsystem: ASRock Incorporation Device 2368
	Kernel driver in use: pata_jmicron
	Kernel modules: pata_jmicron, pata_acpi, ata_generic
03:00.0 VGA compatible controller: NVIDIA Corporation GT218 [GeForce 210] (rev a2)
	Kernel driver in use: nvidia
	Kernel modules: nouveau, nvidia
03:00.1 Audio device: NVIDIA Corporation High Definition Audio Controller (rev a1)
	Kernel driver in use: snd_hda_intel
	Kernel modules: snd_hda_intel

aplay -l

**** List of PLAYBACK Hardware Devices ****
card 0: NVidia [HDA NVidia], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 7: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 8: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: NVidia [HDA NVidia], device 9: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L

null
    Discard all samples (playback) or generate zero samples (capture)
pulse
    PulseAudio Sound Server
hdmi:CARD=NVidia,DEV=0
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=1
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=2
    HDA NVidia, HDMI 0
    HDMI Audio Output
hdmi:CARD=NVidia,DEV=3
    HDA NVidia, HDMI 0
    HDMI Audio Output

And here is the journalctl -b output

http://pastebin.com/S26LVbRQ

Thanks for your help!

Last edited by hillbicks (2015-11-29 15:18:35)

Offline

#4 2015-11-30 12:59:36

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,552

Re: [solved][Kodi] No OSS mixer device present.

Read https://wiki.archlinux.org/index.php/Microcode and set it up correctly.

Intel early microcode updates may not help with this problem, but you should use it anyway.

-----------------------------------------------------------------------------------------------------
It is weird that aplay -L doesn't list a default & sysdefault device.

Also, lspci -k doesn't shows an intel integrated audio, even though you appear to be running with an intel chipset.

Did you disable the integrated audio ?

If so, try enabling it and post journalctl -b with that setup.


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#5 2015-11-30 17:28:24

hillbicks
Member
Registered: 2014-03-14
Posts: 14

Re: [solved][Kodi] No OSS mixer device present.

Yes, you're right, I disabled the internal sound card, but apparently a long time ago, since I had to look it up in the BIOS and the problem only started a couple of weeks ago. And I really doubt that I was just lucky before the first occurrence.

Anyway, here are the two logfiles, both with the internal sound card enable in the BIOS

Not working
http://pastebin.com/0MqMKiRf

Working
http://pastebin.com/373gUFWf

PS: In the meantime, I'll look into the microcode article.

Offline

#6 2015-12-01 13:50:07

Lone_Wolf
Administrator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 15,552

Re: [solved][Kodi] No OSS mixer device present.

Ok, this is beginning to look like a timing or initialisation issue.

I hope you have an idea around what date the problems started ?

2015-11-09	upgpkg: alsa-utils 1.1.0-1	anatolik	-4/+4
2015-09-07	ncurses 6.0 rebuild.	foutrelis	-1/+1
2015-03-04	upgpkg: alsa-utils 1.0.29-1	anatolik	-2/+2

Check your pacman.log when you installed these updates and if they coincide with the problem start.
A kernel update could also be the culprit, could you try if linux-lts gives the same problems ?

Last edited by Lone_Wolf (2015-12-01 13:50:23)


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.

clean chroot building not flexible enough ?
Try clean chroot manager by graysky

Offline

#7 2015-12-05 10:47:59

hillbicks
Member
Registered: 2014-03-14
Posts: 14

Re: [solved][Kodi] No OSS mixer device present.

It seems that I did not have the latest alsa-utils package when I posted this. I did not encounter that problem since, so I'm marking this as solved now. Should it pop up again, I'll come back here again.

Thanks again for the help @Lone_Wolf, I appreciate it!

Offline

Board footer

Powered by FluxBB