osstest works... no sound in kde though

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

osstest works... no sound in kde though

Postby nadam » Thu Nov 02, 2006 3:25 am

Hello,

I am running FreeBSD 6.2-BETA2. When I do the osstest... the sound test works great on /dev/dsp0. However, I get no sound on the rest of the tests on /dev/dsp1, /dev/dsp2, etc. I do not get any errors with osstest or with soundon, though.

Code: Select all
[root@Freedom ~]# osstest

*** Scanning sound adapter #-1 ***
/dev/dsp0  Intel High Definition Audio pcm1 output (adapter0, subdev0)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <real srate 47968.00 Hz (-0.07%)>
/dev/dsp1  Intel High Definition Audio pcm2 output (adapter0, subdev1)
- Performing audio playback test...
  <left> ^C



Code: Select all
[root@Freedom ~]# ossinfo
Version info: OSS 4.0rc2 (build 177/200610310222) (0x00040000)

Number of audio devices:        21
Number of MIDI devices:         0
Number of mixer devices:        2


Device objects
0: hdaudio0 Intel High Definition Audio
1: softoss0 OSS Virtual Mixer v3.0

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: Intel High Definition Audio Unkn (Mixer 0 of device object 0)
1: Virtual Mixer (Mixer 0 of device object 1)

Audio devices (/dev/dsp*)
0: Intel High Definition Audio pcm1 output (audio port 0 of device object 0)
1: Intel High Definition Audio pcm2 output (audio port 1 of device object 0)
2: Intel High Definition Audio pcm3 output (audio port 2 of device object 0)
3: Intel High Definition Audio pcm4 output (audio port 3 of device object 0)
4: Intel High Definition Audio spdifout output (audio port 4 of device object 0)
5: Intel High Definition Audio rec1 input (audio port 5 of device object 0)
6: Intel High Definition Audio rec2 input (audio port 6 of device object 0)
7: Intel High Definition Audio rec3 input (audio port 7 of device object 0)
8: Intel High Definition Audio spdifin input (audio port 8 of device object 0)
9: OSS Virtual Mixer v3.0 Playback CH #1 (audio port 0 of device object 1)
10: OSS Virtual Mixer v3.0 Playback CH #2 (audio port 1 of device object 1)
11: OSS Virtual Mixer v3.0 Playback CH #3 (audio port 2 of device object 1)
12: OSS Virtual Mixer v3.0 Playback CH #4 (audio port 3 of device object 1)
13: OSS Virtual Mixer v3.0 Playback CH #5 (audio port 4 of device object 1)
14: OSS Virtual Mixer v3.0 Playback CH #6 (audio port 5 of device object 1)
15: OSS Virtual Mixer v3.0 Playback CH #7 (audio port 6 of device object 1)
16: OSS Virtual Mixer v3.0 Playback CH #8 (audio port 7 of device object 1)
17: Virtual Mixer Loopback Record CH #1 (audio port 8 of device object 1)
18: Virtual Mixer Loopback Record CH #2 (audio port 9 of device object 1)
19: Virtual Mixer Loopback Record CH #3 (audio port 10 of device object 1)
20: Virtual Mixer Loopback Record CH #4 (audio port 11 of device object 1)



Code: Select all
[root@Freedom ~]# pciconf -lv
hdaudio0@pci0:27:0:     class=0x040300 card=0x01db1028 chip=0x284b8086 rev=0x02 hdr=0x00
    vendor   = 'Intel Corporation'
    class    = multimedia



Code: Select all
[root@Freedom ~]# dmesg
hdaudio0: <Intel High Definition Audio> mem 0xdffdc000-0xdffdffff irq 16 at device 27.0 on pci0
osscore: Audio output 0 doesn't drain (317440/301056 0).
osscore: len=0/2048, total=16384
osscore: Audio output 0 doesn't drain (81920/65536 0).
osscore: len=0/4096, total=16384
osscore: Audio output 3 doesn't drain (102400/86016 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (102400/86016 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (106496/90112 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (106496/90112 0).
osscore: len=0/4096, total=16384
osscore: Audio output 1 doesn't drain (2469888/2453504 0).
osscore: len=0/2048, total=16384
osscore: Audio output 0 doesn't drain (253952/237568 0).
osscore: len=0/2048, total=16384
osscore: Audio output 0 doesn't drain (102400/86016 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (86016/69632 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (102400/86016 0).
osscore: len=0/4096, total=16384
osscore: Audio output 1 doesn't drain (464896/448512 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (1978368/1961984 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (579584/563200 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (1230848/1214464 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (1335296/1318912 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (102400/86016 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (239616/223232 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (77824/61440 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (102400/86016 0).
osscore: len=0/4096, total=16384
osscore: Audio output 1 doesn't drain (2557952/2541568 0).
osscore: len=0/2048, total=16384
osscore: Audio output 0 doesn't drain (262144/245760 0).
osscore: len=0/2048, total=16384
osscore: Audio output 0 doesn't drain (303104/286720 0).
osscore: len=0/2048, total=16384
osscore: Audio output 1 doesn't drain (636928/620544 0).
osscore: len=0/2048, total=16384
osscore: Audio output 0 doesn't drain (290816/274432 0).
osscore: len=0/4096, total=16384
osscore: Audio output 0 doesn't drain (106496/90112 0).
osscore: len=0/4096, total=16384



Code: Select all
[root@Freedom ~]# cat /dev/sndstat
OSS 4.0rc2 (build 177/200610310222) (C) 4Front Technologies 1996-2006

**** UNREGISTERED VERSION ****

This OSS version will expire after:  May 2007
Kernel: FreeBSD 6.2-BETA2 #0: Mon Oct  2 03:32:44 UTC 2006
    root@opus.cse.buffalo.edu:/usr/obj/usr/src/sys/SMP


Audio devices:
0: Intel High Definition Audio pcm1 output
1: Intel High Definition Audio pcm2 output
2: Intel High Definition Audio pcm3 output
3: Intel High Definition Audio pcm4 output
4: Intel High Definition Audio spdifout output
5: Intel High Definition Audio rec1 input
6: Intel High Definition Audio rec2 input
7: Intel High Definition Audio rec3 input
8: Intel High Definition Audio spdifin input
9: OSS Virtual Mixer v3.0 Playback CH #1 (GRC3)
10: OSS Virtual Mixer v3.0 Playback CH #2 (GRC3)
11: OSS Virtual Mixer v3.0 Playback CH #3 (GRC3)
12: OSS Virtual Mixer v3.0 Playback CH #4 (GRC3)
13: OSS Virtual Mixer v3.0 Playback CH #5 (GRC3)
14: OSS Virtual Mixer v3.0 Playback CH #6 (GRC3)
15: OSS Virtual Mixer v3.0 Playback CH #7 (GRC3)
16: OSS Virtual Mixer v3.0 Playback CH #8 (GRC3)
17: Virtual Mixer Loopback Record CH #1 (GRC3)
18: Virtual Mixer Loopback Record CH #2 (GRC3)
19: Virtual Mixer Loopback Record CH #3 (GRC3)
20: Virtual Mixer Loopback Record CH #4 (GRC3)

MIDI devices:
  *** MIDI support not available in this OSS version ***

Mixers:
0: Intel High Definition Audio Unknown
1: Virtual Mixer

History:
dsp0: pid 1752 cmd 'artsd' OUT 1 underruns
dsp0: pid 1752 cmd 'artsd' OUT
dsp0: pid 1764 cmd 'artsd' OUT 1 underruns
dsp0: pid 1764 cmd 'artsd' OUT 1 underruns
dsp0: pid 1764 cmd 'artsd' OUT


NOTICE! This /dev/sndstat file is obsolete - use the ossinfo command instead



I made the settings to KDE as described in this forum, however, still no sound in KDE. If I change the selected audio device in KDE to just "Open Sound System" (not Threaded)... I do get sound for a few seconds... but then I get a big error from arts saying "Sound Server Fatal Error: cpu overload, aborting". If I have the audio device set to "Threaded Open Sound System", I do not get any errors or warnings... just no sound.

Hopefully someone could give me some things to try. Let me know if I need to post up more information about my setup.

Thanks,
nadam
nadam
New Member
 
Posts: 2
Joined: Thu Nov 02, 2006 2:42 am

Postby dev » Thu Nov 02, 2006 6:16 pm

Regarding KDE audio, you need to make the following changes:

1) From the KDE Control Panel select Sound and Audio then in the sound server settings
a) Set the SPeed to 48000
b) Set the API to Threaded-OSS
c) Uncheck the realtime priority setting (the latencey stuff).

2) Save and log out and log back in.
dev
Developer
 
Posts: 580
Joined: Fri Sep 12, 2003 6:08 am
Location: Culver City, CA

Postby nadam » Thu Nov 02, 2006 7:16 pm

Hello,

Thanks for the response!

Yes, I have set the KDE audio settings to exactly these settings.

I have found out that if I set "Override device location" to /dev/dsp0 and apply the changes... after artsd is restarted I can then click "Test Sound" on the General tab and I DO hear sound. However, after that initial test I do NOT have sound in KDE anymore... even if I click "Test Sound" again. The only way I can get the "Test Sound" to work again is to restart the sound system (artsd).

Also, if I have "Enable the sound system" checked in KDE...when I go to a console and type osstest it shows /dev/dsp0 as being busy and then tries /dev/dsp1 and so on.

Code: Select all
[nadamson@Freedom ~]% osstest

*** Scanning sound adapter #-1 ***
/dev/dsp0  Intel High Definition Audio pcm1 output (adapter0, subdev0)
- Device busy (opened by PID 1488/artsd)

*** Scanning sound adapter #-1 ***
/dev/dsp1  Intel High Definition Audio pcm2 output (adapter0, subdev1)
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <real srate 47966.00 Hz (-0.07%)>


However, I don't get any sound from the osstest except from /dev/dsp0.

Do you think that sound does work one time from the "Test Sound" button immediately after enabling the sound system in KDE because /dev/dsp0 is not "busy" yet... and then it doesn't work any more in KDE because /dev/dsp0 is busy so it then tries /dev/dsp1 which I don't get any sound from?

Thanks
nadam
nadam
New Member
 
Posts: 2
Joined: Thu Nov 02, 2006 2:42 am

Postby evanc » Fri Nov 24, 2006 6:34 pm

Hi There,

I have exactly the same issue here. The message log states

Nov 25 05:11:50 Ev kernel: hdaudio0: <Intel High Definition Audio> mem 0xefffc000-0xefffffff irq 21 at device 27.0 on pci0
Nov 25 05:14:02 Ev kernel: osscore: Audio output 0 doesn't drain (94208/77824 0).
Nov 25 05:14:02 Ev kernel: osscore: len=0/4096, total=16384
Nov 25 05:15:12 Ev kernel: osscore: Audio output 0 doesn't drain (266240/249856 0).
Nov 25 05:15:12 Ev kernel: osscore: len=0/4096, total=16384


I am using a Dell M65 Precision with the SigmaTel High Definition Audio - Only the dmesg is different to nadam's outputs, so I will not repeat the rest unless requested.

Thanks :)
evanc
New Member
 
Posts: 1
Joined: Fri Nov 24, 2006 6:24 pm

Postby HenryHu » Tue Jan 23, 2007 12:00 pm

I have almost the same problem. But arts works with OSS at my computer. I can replay the KDE test sound several times. But it uses as much CPU time as it can... If I use realtime priority, I can't even use my computer... I don't want my CPU to be burned...
If I use OSS, I get the same console output from osscore.
I have something more with arstd -l 0:
Code: Select all
# artswrapper -a toss -r 48000 -b 16 -d -D /dev/dsp6 -S 2048 -F 16 -s 10 -l 0
>> running as realtime process now (priority 15)
artsd version is 1.5.4
gsl: using Unix98 pthreads directly for mutexes and conditions
[artsd: 70889] SoundServerStartup --> got lock
device capabilities: revision2 realtime batch trigger mmap
buffering: fragsize:2048 fragstotal:16
buffering: 16 fragments with 2048 bytes (audio latency is 170.7 ms)
AudioIOOSSThreaded::startThread(): entering
AudioIOOSSThreaded::startThread(): leaving
AudioIO::close(): entering
AudioIOOSSThreaded::writerThread() thread started
Thread::setPriority: sched_setscheduler failed
AudioIOOSSThreaded::readerThread() thread started
AudioIOOSSTHreaded::readerThread() fatal error reading from audio_fd
AudioIOOSSThreaded::readerThread() thread stopped
AudioIOOSSThreaded::stopThread() entering
waiting for writerThread to finish
AudioIOOSSThreaded::writerThread() thread stopped
waiting for readerThread to finish
AudioIOOSSThreaded::stopThread(): leaving
AudioIO::close(): leaving
virtualize StereoVolumeControl
device capabilities: revision2 realtime batch trigger mmap
buffering: fragsize:2048 fragstotal:16
buffering: 16 fragments with 2048 bytes (audio latency is 170.7 ms)
AudioIOOSSThreaded::startThread(): entering
AudioIOOSSThreaded::startThread(): leaving
audio format is 48000 Hz, 16 bits, 2 channels
addDirectory(/usr/local/lib/mcop,)
addDirectory(/usr/local/lib/mcop/Arts,Arts)
addDirectory(/usr/local/lib/mcop/Arts/Environment,Arts::Environment)
AudioIOOSSThreaded::writerThread() thread started
Thread::setPriority: sched_setscheduler failed
AudioIOOSSThreaded::readerThread() thread started
AudioIOOSSTHreaded::readerThread() fatal error reading from audio_fd
AudioIOOSSThreaded::readerThread() thread stopped
addDirectory(/usr/local/lib/mcop/Noatun,Noatun)
addDirectory(/home/root/.mcop/trader-cache,)
Arts::MidiManager registered successfully.
[artsd: 70889] SoundServerStartup <-- released lock
AudioSubSystem::adjustDuplexBuffers(2)
AudioIOOSSTHreaded::writerThread() fatal error writing to audio_fd
AudioIOOSSThreaded::writerThread() thread stopped

and when play the test sound:
Code: Select all
UnixManager: got notifyIO
socketconnection created, fd = 9
UnixManager: got notifyIO
socketconnection created, fd = 9
search playobject, extension = ogg
creating akodeXiphPlayObject to play file /usr/local/share/sounds/KDE_Startup_1.ogg
akode: opening /usr/local/share/sounds/KDE_Startup_1.ogg
akode: streamInit
akode: streamStart
akode: play

I think this part contains no error.
Closing:
Code: Select all
^CSynth_RECORD: detaching
AudioIO::close(): entering
AudioIOOSSThreaded::stopThread() entering
waiting for writerThread to finish
waiting for readerThread to finish
AudioIOOSSThreaded::stopThread(): leaving
AudioIO::close(): leaving
Synth_PLAY: closing audio fd
warning: leaving MCOP Dispatcher and still 4 object references alive.
  - Arts::Synth_MULTI_ADD
  - Arts::Synth_MULTI_ADD
  - Arts::Synth_BUS_UPLINK
  - akodeXiphPlayObject

Also nothing special...

I'm using MSI 845E motherboard, with southbridge ICH4, ALC202 sound chip. FreeBSD 6.2-RELEASE, arts 1.5.4, KDE 3.5.3
[/code]
HenryHu
New Member
 
Posts: 3
Joined: Tue Jan 23, 2007 11:45 am
Location: Shanghai, China

Postby HenryHu » Tue Jan 23, 2007 1:57 pm

I've updated arts to 1.5.5,1 , but that does not help.
I've downgraded to OSS 3.99.4d from OSS 4.0 RC build 179 , and everything become better, except the starting takes longer time...
Now arts works normally with Threaded OSS, and even more, the soft synth shows up! Although KMid and "Test MIDI" still do not work, that seems better.
HenryHu
New Member
 
Posts: 3
Joined: Tue Jan 23, 2007 11:45 am
Location: Shanghai, China


Return to BSD

Who is online

Users browsing this forum: Yahoo [Bot] and 1 guest

cron