Opened 15 years ago

Last modified 16 months ago

#4755 new bug

ICH7, 8 & 9 Audio Not working with Alpha

Reported by: kvdman Owned by: korli
Priority: normal Milestone: Unscheduled
Component: Drivers/Audio/HDA Version: R1/Development
Keywords: Cc:
Blocked By: Blocking: #6157, #6213, #7144, #7731, #8017
Platform: All

Description (last modified by diver)

I don't know whether this is known or not, but by looking at hardware profiles on Haikuware, it seems ICH7-9 audio isn't working with the Haiku alpha images. One user claimed that after installing OSS they got sound working (ICH7).

Is there a way to have OSS installed/used when an ICH7-9 soundcard is detected?

It seems one user has access to a lot of hardware and has submitted several reports, perhaps he could help debugging.

Not working:

[http://www.haikuware.com/details/compaq-610]
device Multimedia controller (Audio device) [4|3|0]
  vendor 8086: Intel Corporation
  device 284b: 82801H (ICH8 Family) HD Audio Controller

[http://www.haikuware.com/details/compaq-dx2400]
device Multimedia controller (Audio device) [4|3|0]
  vendor 8086: Intel Corporation
  device 293e: 82801I (ICH9 Family) HD Audio Controller

Works after installing OSS:

[http://www.haikuware.com/details/nc10]
device Multimedia controller (Audio device) [4|3|0]
  vendor 8086: Intel Corporation
  device 27d8: 82801G (ICH7 Family) High Definition Audio Controller

Attachments (8)

MacBookPro41_syslog.txt (96.7 KB ) - added by jrash 15 years ago.
MacBook Pro 4,1 Syslog (Booted from ISO)
MacBookPro41_listimage.txt (24.5 KB ) - added by jrash 15 years ago.
MacBook Pro 4,1 listimage output (Booted from ISO)
MacBookPro41_MediaPlayer_Output.txt (2.3 KB ) - added by jrash 15 years ago.
MediaPlayer playing the MP3 from the command line
syslog.macbookpro (101.9 KB ) - added by jrash 15 years ago.
Mar 4 2010 syslog for hrev35752 (macbookpro4,1)
syslog (123.6 KB ) - added by kvdman 15 years ago.
Macbook 2,1
syslog-oss (324.0 KB ) - added by kvdman 15 years ago.
syslog_r42364 (511.9 KB ) - added by diver 13 years ago.
syslog.old (512.0 KB ) - added by aesping 12 years ago.
aespings syslog

Download all attachments as: .zip

Change History (52)

comment:1 by axeld, 15 years ago

At least device 27d8 definitely works here (ICH-7). So your mileage might vary.

comment:2 by axeld, 15 years ago

Component: Audio & VideoDrivers/Audio/HDA
Owner: changed from nobody to korli

comment:3 by korli, 15 years ago

Description: modified (diff)

http://www.haikuware.com/details/compaq-6910p seems to state audio is working through internal speakers.

comment:4 by kvdman, 15 years ago

@korli, oh indeed you're right.

here's two more examples with the Intel HD audio:

http://www.haikuware.com/details/macbook-pro-early-2008 device Multimedia controller (Audio device) [4|3|0]

vendor 8086: Intel Corporation device 284b: 82801H (ICH8 Family) HD Audio Controller

http://www.haikuware.com/details/compaq-dx2400 device Multimedia controller (Audio device) [4|3|0]

vendor 8086: Intel Corporation device 293e: 82801I (ICH9 Family) HD Audio Controller

The user made all these reports and has access to a lot of hardware. I've recently added file uploads to the hardware database and indicated how to add syslogs. Perhaps they would be of further use.

comment:5 by jrash, 15 years ago

I double checked the 6910p today and I think the issue with that machine was a corrupt MP3 file, I probably forgot to set Binary mode in the ftp client before I downloaded the audio files. It was able to play an MP3 and WAV file fine. I also retested my MacBook Pro 4,1 but was unable to get the audio to work, I'll attach the syslog, listimage, and MediaPlayer output.

by jrash, 15 years ago

Attachment: MacBookPro41_syslog.txt added

MacBook Pro 4,1 Syslog (Booted from ISO)

by jrash, 15 years ago

Attachment: MacBookPro41_listimage.txt added

MacBook Pro 4,1 listimage output (Booted from ISO)

by jrash, 15 years ago

MediaPlayer playing the MP3 from the command line

comment:6 by jrash, 15 years ago

I also tried my MacBook Pro with the 33601 GCC2 nightly but still no audio.

comment:7 by korli, 15 years ago

Could you try again with the MacBookPro 4.1 please ? (hrev34355+)

comment:8 by jrash, 15 years ago

I played an mp3 and couldn't hear any sound using a hrev34523 gcc2 live CD

comment:9 by korli, 15 years ago

Could you try again with hrev34570 ?

comment:10 by kvdman, 15 years ago

I've tried with one of today's revisions.

I have a Macbook 2,1 (where the built-in keyboard and mouse don't work).

I tried an audio CD, *aiff file and *.mp3 in CD Player and Media Player. I could not produce any sound from the speakers or headphone, although the hardware did show up.

This book has the ICH7 multimedia chipset.

comment:11 by jrash, 15 years ago

Still no luck with hrev34586

comment:12 by korli, 15 years ago

Could you please try with a current revision ? Thanks

comment:13 by kvdman, 15 years ago

I've tried with hrev35693 on my MacBook. Still no sound. Tried playing an MP3 and Wav file through media player. Also tried with headphones; no sound.

comment:14 by korli, 15 years ago

Could you provide a syslog please ?

in reply to:  14 comment:15 by jrash, 15 years ago

Replying to korli:

Could you provide a syslog please ?

No sound for me either.

by jrash, 15 years ago

Attachment: syslog.macbookpro added

Mar 4 2010 syslog for hrev35752 (macbookpro4,1)

by kvdman, 15 years ago

Attachment: syslog added

Macbook 2,1

comment:16 by korli, 15 years ago

Sorry after looking both syslogs I don't have a clue about the lack of sound on macbooks.

comment:17 by kvdman, 15 years ago

I installed OSS, and deleted the HDA driver. No sound either, eventhough Intel HD Audio showed up as the driver under media preferences. Oddly, under 'channel' there were 4 different channels available. I tried all four (changing the channels and restarting the media server locked the machine), and it would not produce any sound.

I'm attaching the syslog with the OSS driver installed.

I did find this line in the syslog when the audio tried to start

hdaudio_mac_gpio

http://manuals.opensound.com/sources/hdaudio_gpio_handlers.c.html

by kvdman, 15 years ago

Attachment: syslog-oss added

comment:18 by kvdman, 15 years ago

Right after the driver gets loaded there's a USB error.

4938 KERN: iMac Sigmatel hdaudio initialization 4939 KERN: hdaudio_mac_GPIO_init() entered, afg=1, subdevice=0x106b2200, codec=0x83847680 4940 KERN: loaded driver /boot/home/config/add-ons/kernel/drivers/dev/oss_loader 4941 KERN: usb error uhci 0: error while setting device address

This is the laptop where the internal trackpad and keyboard don't work. I was told you had to enable USB polling in order to get the trackpad and mouse to work. I wonder if sound would also work in this case? I'm not sure how to enable this though.

comment:19 by kvdman, 15 years ago

Hello,

I thought this info may be useful? Perhaps you already know this:

http://www.haiku-os.org/community/forum/hardware_compatibility_wiki

The situation with Intel HDA is that it's a class standard, like VGA or USB storage.

So in theory you write one driver which implements the software side of the standard according to the documentation, and all conforming hardware will work. The Haiku driver roughly follows this approach, its probe function matches any PCI device which has the class information indicating it implements Intel HDA. Thus probably anyone with a modern Intel HDA device (which is most new laptops and desktops) gets this driver selected.

However, the HDA specification itself represents the codec (the bit that actually converts between PCM data and any form of sound output or input connector) as a separately programmed component. It is often the case that additional code is needed for a particular vendor's codec, or for some applications (ie specific models of computer or sound cards) of that codec. The Haiku code includes some examples of such additional code, covering some very popular devices, but it looks rather less than comprehensive. So for some users the outcome is likely that Haiku's driver seems to work, except that no sound comes out (it is playing, but to some unconnected pins deep inside their laptop, not to the speakers), or the volume controls don't work, or the speakers on their laptop always play sound even with headphones plugged in, that sort of thing.

The codecs have unique hardware identifiers similar to PCI devices, so that the OS need only load driver software for the codecs used in the installed device. e.g. ALSA identifies the codec in this laptop and loads a driver for 'snd-hda-codec-id:14f15051' a Conexant chip. So if Haiku actually had the new Windows 95 style driver model, this information could have been gathered too. But it might not be that helpful, at a certain point you do have to rely on user feedback on whether it really works. The same Conexant chip that works fine in this laptop might be wired up differently in another model, leaving the microphone non-functional by default.

comment:20 by diver, 13 years ago

Description: modified (diff)

comment:21 by diver, 13 years ago

This is hrev42363 and there still no sound with ICH7:

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

Installing OpenSound doesn't help.

by diver, 13 years ago

Attachment: syslog_r42364 added

comment:22 by diver, 13 years ago

Version: R1/alpha1R1/Development

comment:23 by diver, 13 years ago

Blocking: 6157 added

comment:24 by diver, 13 years ago

Blocking: 6213 added

comment:25 by diver, 13 years ago

Blocking: 7144 added

comment:26 by diver, 13 years ago

Blocking: 7731 added

comment:27 by diver, 13 years ago

Blocking: 8017 added

(In #8017) http://support.euro.dell.com/support/edocs/SYSTEMS/dim5150C/en/sm/specs1.htm says that it has Sigmatel STAC9220. The Intel Chip with the sound is: 82801GBM ICH7-M what makes it a dupe of #4755.

comment:28 by haikurocks, 13 years ago

This bug is more than 2 years old, doesn´t anybody think is quite important to fix it asap?. I know complaining is free but it´s really a show stopper to not have audio in your Haiku installation. Its difficult to promote Haiku to your friends and people if you can´t even hear an mp3. Thanks.

comment:29 by Disreali, 13 years ago

Most likely reason is that the dev's don't have the hardware in question.

With such a small developer group things like this slip by.

in reply to:  29 comment:30 by anevilyak, 13 years ago

Replying to Disreali:

Most likely reason is that the dev's don't have the hardware in question.

That and for this kind of hardware the problem gets worse, since these chipsets are almost all motherboard-integrated, so it's not a case where one can easily just loan a sound card to a dev for a few weeks.

comment:31 by haikurocks, 13 years ago

I don´t know anything about developing but if Oss seems to work it should not be so difficult to know why the default driver is not working. Anyway even if lending hardware is difficult Sigmatel audio chip is present in zillions of laptops, its very very popular, imagine having and strange sound card, it would be near to impossible to have audio?

in reply to:  31 comment:32 by kallisti5, 13 years ago

Replying to haikurocks:

I don´t know anything about developing but if Oss seems to work it should not be so difficult to know why the default driver is not working. Anyway even if lending hardware is difficult Sigmatel audio chip is present in zillions of laptops, its very very popular, imagine having and strange sound card, it would be near to impossible to have audio?

I personally haven't seen this issue on the hardware I've tested. If it happens on your hardware, patches or hardware donations welcome.

comment:33 by haikurocks, 13 years ago

I can´t submit patches as i´m not a developer, if i was i would have tried to solve before complaining. I can´t give money cause i don´t have it for me. I know complaining is easy and cheap but as a Beos fan and Haiku too, is very frustrating to have a very common lapto,p like a Dell Inspiron ( with sound working in Linux/Win ), without sound. ICH chipsets are very common and if Win/Linux can get sound i dont get the point why Haiku not. It´s just a matter of pride, understand me.

by aesping, 12 years ago

Attachment: syslog.old added

aespings syslog

comment:34 by aesping, 12 years ago

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

MP3s and movies appear to play fine but there is no sound. I get sound under OpenBSD on this box. I also posted this to the dev mailing list: http://www.freelists.org/post/haiku-development/Will-ship-AT5NM10I-miniitx-board-to-audio-driver-dev

I am also attaching a copy of my syslog.

comment:35 by vidrep, 8 years ago

I have working audio on my system hrev50819 x86_gcc2 device Multimedia controller (Audio device) [4|3|0]

vendor 8086: Intel Corporation device 27d8: NM10/ICH7 Family High Definition Audio Controller

If any further testing is needed before closing, let me know.

comment:36 by pulkomandy, 8 years ago

We would need to gather information about the codecs and exact hardware identifier. As mentionned above, HDA is only part of the work here, it gets the audio out of the main chipset in digital format (on a bus called I2S). This is not enough, there is another step needed which is routing that I2S signal to the output, converting it to actual audio, amplifying it, etc.

This is handled by a separate chip called a "codec". Sometimes it is initialized by the BIOS, but this is not always the case. So the Haiku driver for HDA should include handling for more of these codecs and handle their initialization.

There are a few known cases where this is very visible:

  • If booting Linux or Windows, then rebooting to Haiku works, but not cold-booting directly into Haiku.
  • On some machines, a system beep is emitted by the BIOS when plugging/unplugging the power supply. Doing so initializes the codec, and then sound starts working in Haiku.

So, just the PCI ID won't help to identify the hardware which works or doesn't. We need users to report their exact setup (computer brand and model + identifier of the codec chip) and we need to investigate writing initialization code for each of the codec chips that require one.

in reply to:  36 comment:37 by cocobean, 6 years ago

Last edited 6 years ago by cocobean (previous) (diff)

in reply to:  36 comment:38 by cocobean, 6 years ago

Last edited 6 years ago by cocobean (previous) (diff)

comment:39 by pulkomandy, 6 years ago

Milestone: R1R1/beta2

comment:40 by ptaylor1982, 6 years ago

I am using beta1 and have an ICH9 chipset,

device Multimedia controller (Audio device) [4|3|0] vendor 8086: Intel Corporation device 293e: 82801I (ICH9 Family) HD Audio Controller

If the codec is important here, how do i determine that to file that here? KERN: hda: Codec 0 Vendor: 10ec Product: 0269, Revision: 1.0.0.4 Quirks: 0700 is that the right thing in syslog?

Also importently, the device and all its controls show up in the media preferences, however as the bug describes get no sound output at all.

Also the correct driver seems to be loaded as far as syslog says. KERN: loaded driver /boot/system/add-ons/kernel/drivers/dev/audio/hmulti/hda

Last edited 6 years ago by ptaylor1982 (previous) (diff)

comment:41 by ptaylor1982, 6 years ago

I found out that if i disable apm and acpi in the bootloader, i get sound, following is my syslog, and i hope it can help. https://pastebin.com/NKhSs5c8

comment:42 by pulkomandy, 5 years ago

Milestone: R1/beta2Unscheduled

Removing HDA audio tickets from Beta2 milestone, no one has worked on it and opensound is available at least as a stopgap.

comment:43 by waddlesplash, 2 years ago

Please retest under a recent nightly.

comment:44 by cocobean, 2 years ago

Tested hrev56325 - Audio is working on the ICH7 & ICH8. No issues. Feel free to test your systems. OSS not needed.

Note: See TracTickets for help on using tickets.