Realtek Sound on NM10/ICH7 troubles

On previous builds (which I’m used few months ago) I have a problem ― sound on my GA-P41-D3P (with one of realtek ACL) works only sometimes. E.g. at some boot it works and don’t at another. Two days ago I’ve done clean update to latest nightly and there’s no sound anytime.

What’s the trouble and how I can help?

1 Like

Hi armanx64!

Your best chance is to file a ticket at the bugtracker. Include your system info and a syslog of a revision with working sound and one without. See Reporting bugs of the Welcome page.
If you can pin point which exact revision broke your sound, that would be best of course. There a the nightly images for testing. Maybe a look at the commit log at the time can help too.

Regards,
Humdinger

Welcome to the Haiku shell.

~> uname -a

~> listdev

~> listimage

/boot/system/var/log syslog

Welcome to the Haiku shell.

~> uname -a
Haiku shredder 1 hrev50318 May 15 2016 19:23:47 BePC x86 Haiku

~> listdev

device Multimedia controller (Audio device) [4|3|0]
vendor 8086: Intel Corporation
device 1e20: 7 Series/C210 Series Chipset Family High Definition Audio Controller

~> listimage

KERNEL TEAM:

1880 0x81e48000 0x81e54000 0 0 /boot/system/add-ons/kernel/drivers/dev/audio/hmulti/hda

syslog


KERN: ps2_hid: init_hardware
KERN: ps2_hid: init_driver
KERN: ps2_hid: publish_devices
KERN: ps2_hid: uninit_driver
KERN: loaded driver /boot/system/add-ons/kernel/drivers/dev/input/ps2_hid
KERN: ahci: AHCIPort::PortReset port 2
KERN: ahci: Disable: port 2
KERN: ahci: Enable: port 2
KERN: ahci: Probe: port 2 link speed 1.5Gb/s
KERN: bfs: bfs_create_index:2130: File or Directory already exists
KERN: Last message repeated 3 times.
KERN: ALPS not supported: 73 03 50
KERN: auich: init_hardware()
KERN: echo3g: init_hardware()
KERN: echo3g: no card found
KERN: sis7018:init_hardware:ver:2.0.2
KERN: emuxki: init_hardware()
KERN: auvia: init_hardware()
KERN: pci_reserve_device(0, 27, 0, hda)
KERN: HDA: Detected controller @ PCI:0:27:0, IRQ:22, type 8086/1e20 (10cf/1757)
KERN: loaded driver /boot/system/add-ons/kernel/drivers/dev/audio/hmulti/hda

Sorry guys, still can’t register on bugtracker. I’m not getting confirmation email.
I’ll attach sysinfo later.

That’s strange, but at this boot sound works.

I remember, things like this called SLE (stupid linux errors) - error which can be at one boot and not at another, or when on two similar PC’s with similar images only one has some problem and another hasn’t.

~> uname -a
Haiku shredder 1 hrev50342 Jun  3 2016 01:23:20 BePC x86 Haiku
~> listdev

device Serial bus controller (SMBus) [c|5|0]
  vendor 8086: Intel Corporation
  device 27da: NM10/ICH7 Family SMBus Controller

device Mass storage controller (IDE interface) [1|1|8a]
  vendor 8086: Intel Corporation
  device 27c0: NM10/ICH7 Family SATA Controller [IDE mode]

device Bridge (ISA bridge) [6|1|0]
  vendor 8086: Intel Corporation
  device 27b8: 82801GB/GR (ICH7 Family) LPC Interface Bridge

device Bridge (PCI bridge, Subtractive decode) [6|4|1]
  vendor 8086: Intel Corporation
  device 244e: 82801 PCI Bridge

device Serial bus controller (USB controller, EHCI) [c|3|20]
  vendor 8086: Intel Corporation
  device 27cc: NM10/ICH7 Family USB2 EHCI Controller

device Serial bus controller (USB controller, UHCI) [c|3|0]
  vendor 8086: Intel Corporation
  device 27cb: NM10/ICH7 Family USB UHCI Controller #4

device Serial bus controller (USB controller, UHCI) [c|3|0]
  vendor 8086: Intel Corporation
  device 27ca: NM10/ICH7 Family USB UHCI Controller #3

device Serial bus controller (USB controller, UHCI) [c|3|0]
  vendor 8086: Intel Corporation
  device 27c9: NM10/ICH7 Family USB UHCI Controller #2

device Serial bus controller (USB controller, UHCI) [c|3|0]
  vendor 8086: Intel Corporation
  device 27c8: NM10/ICH7 Family USB UHCI Controller #1

device Network controller (Ethernet controller) [2|0|0]
  vendor 10ec: Realtek Semiconductor Co., Ltd.
  device 8168: RTL8111/8168/8411 PCI Express Gigabit Ethernet Controller

device Bridge (PCI bridge, Normal decode) [6|4|0]
  vendor 8086: Intel Corporation
  device 27d2: NM10/ICH7 Family PCI Express Port 2

device Bridge (PCI bridge, Normal decode) [6|4|0]
  vendor 8086: Intel Corporation
  device 27d0: NM10/ICH7 Family PCI Express Port 1

device Multimedia controller (Audio device) [4|3|0]
  vendor 8086: Intel Corporation
  device 27d8: NM10/ICH7 Family High Definition Audio Controller

device Display controller (VGA compatible controller, VGA controller) [3|0|0]
  vendor 10de: NVIDIA Corporation
  device 0612: G92 [GeForce 9800 GTX / 9800 GTX+]

device Bridge (PCI bridge, Normal decode) [6|4|0]
  vendor 8086: Intel Corporation
  device 2e31: 4 Series Chipset PCI Express Root Port

device Bridge (Host bridge) [6|0|0]
  vendor 8086: Intel Corporation
  device 2e30: 4 Series Chipset DRAM Controller

listimage

 1891 0x81122000 0x8112d000     0          0 /boot/system/add-ons/kernel/drivers/dev/audio/hmulti/hda

full output at http://pastebin.com/MCYJ5A7v

~> cd /boot/system/var/log
/boot/system/var/log> syslog
bash: ./syslog: Permission denied

At this boot no sound again, but few minutes ago works under Windows like a charm. Maybe some kind of astrology? :smiley:

listdev same, but listimage changes

1847 0x81111000 0x8111d000 0 0 /boot/system/add-ons/kernel/drivers/dev/audio/hmulti/hda

syslog still returns “Permission denied”.

Look’s like I found source of the problem.
On Haiku I’m only able to control “software” volume level. After I switched on “Control physical output”, I’m seeing always -62dB (minimum, w.m. no volume) and I can’t set it higher 'cause slider always resetting to minimal value.

I think the driver just sometimes can’t control device volume level. In the end, I found nothing else and don’t know what to do.

How I can help to fix this?

I am just guessing around here but it could be that if it was initalized the hardware before eg. from linux and not reset on reboot … haiku could maybe “use” it… i had this behavior years ago from what i remeber.

What you could help… actually if you are a developer it would be great to go throught the driver code :).

The other option would be to make haiku more known (e.g. introduce it to some university professors) so that we can get more developers joining in who could possible then fix the driver… and as you guess this is a long term work :frowning: :-D.

Look’s like you’re right. Today one guy came into chat with a similar trouble on a similar chip.

Maybe I’ll change sound card to another, but as I know Haiku has no support for USB Audio (and especially for my favourite C-Media 6206-LX).

I don’t know if can be useful, but tried installing the OpenSound drivers(from HaikuDepot)?

Last time I did this Haiku lost sound completely.

So, OpenSound works this time. I’ve installed it over Depot and removed hda and auich drivers by creating ‘packages’ file in /boot/system/settings with this content

Package haiku {
	EntryBlacklist {
		add-ons/kernel/drivers/bin/hda
		add-ons/kernel/drivers/bin/auich
	}
}

But after reboot a restart of media_server required — interesting, this time only or always.

Restart required only after install. All works good, except that I can’t change output format (bit@Hz), but it’s not a big trouble after all.

Updated after two months (or more) to hrev50818 and now MediaPlayer works only on few tracks and skips all other or plays them (without audio) on abnormal speeds.

Please make bug reports with links to affected files.
I will be collecting these in a “test suite” (with known good hrev/ffmpeg version, expected result, etc) so we can more easily make sure that there are no regressions from now on, when we make such updates.