Opened 7 years ago

Closed 7 years ago

Last modified 6 years ago

#9369 closed bug (invalid)

No longer sound/music in Haiku

Reported by: Giova84 Owned by: korli
Priority: normal Milestone: R1
Component: Drivers/Audio/HDA Version: R1/Development
Keywords: No longer sound/music in Haiku Cc:
Blocked By: Blocking:
Has a Patch: no Platform: x86

Description

That's very strange: since i have upgraded Haiku Alpha 4.1 to the most recent nightlies, i no longer hear sounds/music in Haiku. The settings in the mediaprefs are always the same, my audio card (HDA) is still recognized, i can see music level/signal in MediaPlayer, media_server and media_server_addon start properly. and i no get any kind of error. If in MediaPrefs i do "restart media services" i can hear the tipical momentary "bump" in my loudspeakers, so this means that Haiku is still able to send audio signals, but i can't no longer hear sound and music!

hrev45142 since hrev45110

Attachments (1)

syslog (127.3 KB) - added by Giova84 6 years ago.

Download all attachments as: .zip

Change History (18)

comment:1 Changed 7 years ago by Giova84

A news: if i replace hmulti_audio.media_addon, mixer.media_addon, media_server and media_server_addon taken from Haiku Alpha 4.1.. The situation has returned regular.

comment:2 in reply to:  1 ; Changed 7 years ago by korli

Replying to Giova84:

A news: if i replace hmulti_audio.media_addon, mixer.media_addon, media_server and media_server_addon taken from Haiku Alpha 4.1.. The situation has returned regular.

Weird because none of these components have been affected by a single commit... Could you try to bisect to find a nightly which works for you?

comment:3 in reply to:  2 ; Changed 7 years ago by Giova84

Replying to korli:

Could you try to bisect to find a nightly which works for you?

I really don't know what happened. I have upgraded to hrev45148, and now audio output works as expected. I haven't changed anything in mediaprefs (since my settings are always kept: i just upgrade the system folder over my Haiku installation) You can close this ticket :-)

comment:4 Changed 7 years ago by korli

Resolution: invalid
Status: newclosed

OK

comment:5 in reply to:  3 ; Changed 7 years ago by anevilyak

Replying to Giova84:

I really don't know what happened. I have upgraded to hrev45148, and now audio output works as expected. I haven't changed anything in mediaprefs (since my settings are always kept: i just upgrade the system folder over my Haiku installation)

For reference, this really isn't a safe way to upgrade. There are more places where things might change between revisions than just system, and it's entirely likely you'll have other pieces that are either missing or out-of-date if you do this, which could lead to all kinds of weird problems.

comment:6 in reply to:  5 Changed 7 years ago by Giova84

Replying to anevilyak:

For reference, this really isn't a safe way to upgrade. There are more places where things might change between revisions than just system, and it's entirely likely you'll have other pieces that are either missing or out-of-date if you do this, which could lead to all kinds of weird problems.

Hi,

this way of upgrading, has never caused any issue for me (and in anyway i merge the whole "common" folder, since sometimes binaries and libraries are also updated in this folder in a new Haiku release) but in anyway i have also found the described issue on a fresh install of hrev45110 and hrev45142 nightlies.

comment:7 Changed 6 years ago by Giova84

After a reboot, i've lost sounds again. In the syslog i can see message about mixer:

build output tree: don't use mixer KERN: hda: Failed to setup new audio function group (No such device)!

I attach the full syslog.

Changed 6 years ago by Giova84

Attachment: syslog added

comment:8 in reply to:  7 Changed 6 years ago by korli

Replying to Giova84:

build output tree: don't use mixer KERN: hda: Failed to setup new audio function group (No such device)!

This is related to the Intel HDMI digital output, no link with your analog HDA device.

comment:9 Changed 6 years ago by Giova84

Ok, and in fact i only use hda, not HDMI digital output. Can you see something of interesting about the absence of audio, in the syslog? I'm on a fresh install, and in Haiku Alpha 4.1 i don't have this issue.

comment:10 Changed 6 years ago by Giova84

If i run Haiku as live cd (latest nightlies) and i open any kind of audio/media files, i can't hear sound from loudspeakers. And again with Alpha 4.1 as live cd too, all works fine. I think this ticket should be reopened?

comment:11 Changed 6 years ago by korli

Again, could you try to bisect to find a nightly which works for you?

comment:12 Changed 6 years ago by Giova84

Sure, i will :-) Stay tuned!

comment:13 Changed 6 years ago by umccullough

Is it possible that sometimes it works depending on how you boot into Haiku? Sometimes, for example, a warm reboot from Windows or Linux might make a difference than a boot from power off.

comment:14 Changed 6 years ago by Giova84

Hi umccullough,

i will consider your note. But in anyway, audio/sounds in Haiku Alpha 4.1 works ok, when i reboot and shutdown from Windows 7. In anyway i'm trying with other nightlies too (at the moment i am trying a lot of old revision to see if someone of these works for me).

comment:15 in reply to:  13 ; Changed 6 years ago by Giova84

Replying to umccullough:

Is it possible that sometimes it works depending on how you boot into Haiku? Sometimes, for example, a warm reboot from Windows or Linux might make a difference than a boot from power off.

You was right. If i reboot from Windows 7 to Haiku, audio output doesn't work If i shutdown Windows 7 and then, when i turn on my PC and i boot directly to Haiku, audio output works as expected! Why this happens?

comment:16 in reply to:  15 Changed 6 years ago by umccullough

Replying to Giova84:

Why this happens?

Well, I can't fully explain the details, but the basic gist of it is that rebooting without powering down is a "warm reboot", and sometimes the hardware is left in a different state by the drivers from the other operating system. If the OS drivers don't properly reset the hardware, then it may not work properly without a full shutdown/reboot cycle.

Likewise, I've seen things only work after booting into windows/linux and then rebooting into Haiku, because the hardware is left in a "working" state by the other OS drivers.

comment:17 Changed 6 years ago by Giova84

Thank you for the explanation, i had heard about it, before, some time ago. There isn't a way, in Haiku, to reinitialize the devices at startup? In anyway, for me, Haiku Alpha 4.1 is not affected by this issue.

Note: See TracTickets for help on using tickets.