Opened 17 years ago

Closed 2 years ago

#2267 closed bug (invalid)

Sound plays with noise (using OSS)

Reported by: apple7 Owned by: mmu_man
Priority: normal Milestone: R1
Component: Drivers/Audio/OpenSound Version: R1/pre-alpha1
Keywords: Cc: pierluigi.fiorini@…
Blocked By: Blocking:
Platform: x86

Description

firt: I'm new user of haiku, i have problem for reproducer sound. my card sound, is hd audio (alc883) after install OSS driver, the hard is detect, but sound is out with distortion.The test of OSS in terminal is good, but restart media_server the system failbure. info

~> /boot/home/config/bin/ossinfo Version info: OSS 4.1test0 (b 071114/200711250325 (0x00040003) GPL Platform: Haiku/BePC 1 hrev25633 May 24 2008 11:23:58 (unknown)

Number of audio devices: 7 Number of audio engines: 7 Number of MIDI devices: 0 Number of mixer devices: 1

Device objects

0: oss0 OSS core services 1: hdaudio0 nVidia HD Audio

HD Audio controller nVidia HD Audio Vendor ID 0x10de03f0 Subvendor ID 0x1019a88d

Codec 0: ALC883 (0x10ec0883/0x1019c601)

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)

0: nVidia HD Audio ALC883 (Mixer 0 of device object 1)

Audio devices /dev/oss/hdaudio0/pcm0 nVidia HD Audio front (device index 0) /dev/oss/hdaudio0/pcm1 nVidia HD Audio rear (device index 1) /dev/oss/hdaudio0/pcm2 nVidia HD Audio center/LFE (device index 2) /dev/oss/hdaudio0/pcm3 nVidia HD Audio side (device index 3) /dev/oss/hdaudio0/pcm4 nVidia HD Audio fp-front (device index 4) /dev/oss/hdaudio0/pcmin0 nVidia HD Audio rec1 (device index 5) /dev/oss/hdaudio0/pcmin1 nVidia HD Audio rec2 (device index 6) ~>

attach screen of media_preference

(thanks for time and sorry foy my english)

Attachments (4)

screen5.png (68.2 KB ) - added by apple7 17 years ago.
screen6.png (53.1 KB ) - added by apple7 17 years ago.
screen7.png (52.5 KB ) - added by apple7 17 years ago.
syslog (437.5 KB ) - added by plfiorini 15 years ago.
my syslog

Download all attachments as: .zip

Change History (23)

by apple7, 17 years ago

Attachment: screen5.png added

by apple7, 17 years ago

Attachment: screen6.png added

by apple7, 17 years ago

Attachment: screen7.png added

comment:1 by marcusoverhagen, 17 years ago

Owner: changed from marcusoverhagen to mmu_man

comment:2 by bipolar, 17 years ago

I have the same issues in my system, two sound cards: SiS 7018 and Aureal Vortex 2 (8820).

Sound comming out from the media_server is heavily distorted, "stretched in time" so it seems and with frequent pauses/hiccups.

But... After quitting the media_server, running oss_test from the terminal goes all well. Sound is great for both devices.

I'm willing to test this further, just shout.

in reply to:  2 comment:3 by apple7, 17 years ago

Replying to bipolar:

I have the same issues in my system, two sound cards: SiS 7018 and Aureal Vortex 2 (8820).

Sound comming out from the media_server is heavily distorted, "stretched in time" so it seems and with frequent pauses/hiccups.

But... After quitting the media_server, running oss_test from the terminal goes all well. Sound is great for both devices.

I'm willing to test this further, just shout.

Yes, thanks, now sound is god!

But we can fix problem?

comment:4 by mmu_man, 17 years ago

Status: newassigned

Once again (been telling that countless times) it's a known issue that BeOS/Haiku lacks resource reservation in the pci bus manager. This results in both OSS and the native driver to try and initialize the card at the same time and racing for it. Sometimes it even results in KDL. The only workaround currently is to remove one driver, either the native one or OSS (oss_loader binary) until there is a solution. Running osstest forces a reload of the driver, which re-initializes the card without the native driver noticing, so it works this time... Again you must remove one driver.

in reply to:  4 comment:5 by bipolar, 16 years ago

Just for the record:

Replying to mmu_man:

Again you must remove one driver.

Sorry I haven't made myself clear. The mentioned garbled sound issues have occurred to me, while testing OSS in both Haiku (no native drivers for my hardware) and, in the past, BeOS (native drivers removed, as I was aware they will interfere).

With no native drivers and no media_server running, oss_test works flawlessly. When attempting to play something through the oss media addon, that's when the sound output gets all cranky.

I understand it is a work in progress, just wanted to share my experiences with it. Thanks for your time and work, mmu_man. It is really appreciated!.

comment:6 by apple7, 16 years ago

OH, new notice!

I have sound!!! this "beautiful" Today I installed haiku (revision 26031) and also driver oss, reboot and continue the problem:(, but after I remove /boot/home/config/add-ons/media/opensound.media_addon again reboot, I Run mediaplayer with *.mp3 and sound is amazing!

comment:7 by mmu_man, 16 years ago

So, do you still get noise ? There are still issues with playback on OSS, but it should be bearable at least.

in reply to:  7 ; comment:8 by bipolar, 16 years ago

Replying to mmu_man:

So, do you still get noise ?

I'll download a recent image today and will test it during the weekend. I will report my findings here after that. Again, thanks for work!

in reply to:  8 comment:9 by bipolar, 16 years ago

Replying to bipolar:

[...] Again, thanks for work!

Err... Again, thanks for your work!

My English/typing is getting worse everyday...

comment:10 by mmu_man, 16 years ago

You might also want to try the latest version: http://revolf.free.fr/beos/oss-beos-v4.1test-bin.zip

comment:11 by bipolar, 16 years ago

I've tried to test hrev27746 and the OSS package provided by stippi (hosted at yellowbite.com).

The outcome is: I had to disable the opensound.media_addon to make Haiku usable (100% CPU usage).

I'll be opening new tickets for the problems I've found after I double check them with mmu_man's OSS package.

If no one else is experiencing noise with OSS... I'd "vote" for closing it. I'll reopen it if necessary once/if I'm able to use OSS again on my system.

comment:12 by bipolar, 16 years ago

Ok. I've tried with the latest OSS version from mmu_man. Results:

  • I've lost support for the Aureal Vortex 2 (8820) card (was it black-listed?).
  • SiS 7018 support seems to have improved.

"osstest" still plays with no problem on the SiS 7018.

I was able to reproduce an mp3 with no noise at all, but after trying with an .aac sound became noisy / stuter. The same mp3 became noisy too.

Restarting the media server fixed it, once. After it became noisy again... no restart did any good. Still, the situation seems to have improved.

comment:13 by mmu_man, 16 years ago

Hmm some drivers have been deprecated in recent OSS (moved to Attic), possibly the aureal one. Should be easy to get it back. There is no blacklisting yet.

Did you play using the Haiku MP ? it seems to be unreliable to me currently. Try something else (CL-Amp ?)

in reply to:  13 comment:14 by bipolar, 16 years ago

Replying to mmu_man:

Hmm some drivers have been deprecated in recent OSS (moved to Attic), possibly the aureal one. Should be easy to get it back.

I keep using that card, so I will be more than thankful if you add it back.

There is no blacklisting yet.

Did you play using the Haiku MP ? it seems to be unreliable to me currently. Try something else (CL-Amp ?)

Ok, it seems Haiku's MediaPlayer's fault now, because CL-Amp sounds beautifully! I'd say this one could be closed, no?

Thanks!

comment:15 by plfiorini, 15 years ago

Cc: pierluigi.fiorini@… added

Neither Haiku MP nor CL-Amp works here, well Haiku MP snaps while CL-Amp doesn't produce any output.

Version info: OSS 4.2 (b 081213/200812131922) (0x00040100) 
Hg revision: changeset: 549:37882103e9d8, tag: tip, date: Sat Dec 13 17:41:47 2008 +0200, summary: Changed the configure script to enable MIDI support by default
Platform: Haiku/BePC 1 r32551 Aug 21 2009 02:33:15 (stilnovo)

Number of audio devices:        17
Number of audio engines:        17
Number of mixer devices:        1


Device objects
 0: oss0 OSS core services
 1: oss_hdaudio0 nVidia HD Audio
    HD Audio controller nVidia HD Audio
    Vendor ID    0x10de026c
    Subvendor ID 0x147b1c26
     Codec  0: ALC883 (0x10ec0883/0x147b8e01)


Mixer devices
 0: High Definition Audio ALC883 (Mixer 0 of device object 1)

Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play rear                /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm2  (device index 2)
HD Audio play side                /dev/oss/oss_hdaudio0/pcm3  (device index 3)
HD Audio play pcm4                /dev/oss/oss_hdaudio0/pcm4  (device index 4)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 5)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 6)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 7)
HD Audio rec spdifin              /dev/oss/oss_hdaudio0/spdin0  (device index 8)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm5  (device index 9)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm6  (device index 10)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm7  (device index 11)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm8  (device index 12)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm9  (device index 13)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm10  (device index 14)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm11  (device index 15)
HD Audio play front (vmix)        /dev/oss/oss_hdaudio0/pcm12  (device index 16)

I can confirm that osstest works very well.

comment:16 by umccullough, 15 years ago

Does Haiku's built-in HDA work with this device? Since this was reported so long ago, I'm pretty certain the HDA driver has been update and included in the recent builds. If you try to use OpenSound alongside the HDA driver, you are likely to encounter problems, so you should at least remove the HDA driver manually if you intend to use OpenSound.

in reply to:  16 comment:17 by plfiorini, 15 years ago

Replying to umccullough:

Does Haiku's built-in HDA work with this device? Since this was reported so long ago, I'm pretty certain the HDA driver has been update and included in the recent builds. If you try to use OpenSound alongside the HDA driver, you are likely to encounter problems, so you should at least remove the HDA driver manually if you intend to use OpenSound.

Haiku's built-in HDA driver doesn't work, MediaPlayer's progress bar doesn't even advance. Seems #4049 bug. When I reported this issue with OSS, I removed the hda driver (found two entries using find /boot -name "*hda*").

I'm experiencing this issue on Haiku hrev32893.

Anyway, wav files does play without a glitch using ossplay.

by plfiorini, 15 years ago

Attachment: syslog added

my syslog

comment:18 by mmu_man, 8 years ago

Component: Kits/Media KitDrivers/Audio/OpenSound

Would you mind testing on a recent nightly with the 4.2_git-2 package?

comment:19 by korli, 2 years ago

Resolution: invalid
Status: in-progressclosed

No feedback. The hda driver is also available.

Note: See TracTickets for help on using tickets.