OSS and FreeBSD6.2 problem with HDA soundcard

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

OSS and FreeBSD6.2 problem with HDA soundcard

Postby andyz » Fri Jul 04, 2008 5:18 pm

Colleagues, help me please how to solve the following problem:

I have laptop computer with soundcard sigmatel AC9200 (Intel 82801G High Definition Audio), and installed OS DesktopBSD 1.6RC-3.

sound successfully works with the module of snd_hda.ko:

$ dmesg | grep pcm0
pcm0: <Intel> mem 0xefffc000-0xefffffff irq 21 at device 27.0 on pci0
pcm0: <HDA>
pcm0: <HDA>

$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm: 64bit 2007100200/i386)
Installed devices:
pcm0: <Intel> at memory 0xefffc000 irq 21 kld snd_hda [20070930_0048] [MPSAFE] (1p:1v/1r:1v channels duplex default)

it is necessary (for using skype) to use OSS drivers (because microphone in Skype does not work with the standard module snd_hda.ko).
I use Skype 1.2.0.18 from ports.
we unload snd_hda.ko and then we installed OSS of 4.0b016 of from the ports.
after the OSS installation, result:

$ dmesg | grep hdaudio0
hdaudio0: <Intel> mem 0xefffc000-0xefffffff irq 21 at device 27.0 on pci0

$ ossinfo
Version info: OSS 4.0 (b1016/200806301450) (0x00040003) BSD
Platform: FreeBSD/i386 6.2-STABLE FreeBSD 6.2-STABLE #0: Mon Jul 23 21:48:53 CEST 2007 root@sunset:/usr/obj/usr/src/sys/SMP (localhost)

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

Device objects
0: hdaudio0 Intel HD Audio
HD Audio controller Intel HD Audio
Vendor ID 0x808627d8
Subvendor ID 0x102801cc
Codec 0: STAC9200 (0x83847690/0x102801cc)
Codec 1: Conexant2bfa (0x14f12bfa)

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

Audio devices
HD Audio play pcm /dev/oss/hdaudio0/pcm0 (device index 0)
HD Audio play modem-out /dev/oss/hdaudio0/pcm1 (device index 1)
HD Audio rec select /dev/oss/hdaudio0/pcmin0 (device index 2)
HD Audio rec modem-out /dev/oss/hdaudio0/pcmin1 (device index 3)
HD Audio play pcm (VMIX0) /dev/oss/hdaudio0/pcm2 (device index 4)
HD Audio play pcm (VMIX0) /dev/oss/hdaudio0/pcm3 (device index 5)
HD Audio play pcm (VMIX0) /dev/oss/hdaudio0/pcm4 (device index 6)
HD Audio play pcm (VMIX0) /dev/oss/hdaudio0/pcm5 (device index 7)

the result: In this configuration the sound exists in the course somewhere of the first three-five minutes, after which first ceases to work ossxmix (OSS mixer), and after it (even through the pair of minutes) is turned off sound.
the attempts to unload the utilized modules complete unsuccessfully:

localhost# kldstat
</>
19 2 0xc6132000 79000 osscore.ko
20 1 0xc61b1000 22000 hdaudio.ko

localhost# kldunload osscore.ko
localhost# kldunload hdaudio.ko
kldunload: can't unload file: Device busy


How to solve this problem?
Thanks.
andyz
New Member
 
Posts: 2
Joined: Fri Jul 04, 2008 5:15 pm

Postby cesium » Fri Jul 04, 2008 9:48 pm

Hmm..
1) Did you unload the FreeBSD modules before loading OSS?
2) Does this happen only when Skype 1.2 is used? There are newer versions for OSS (1.4, 2.0.0.68 and 2.0.0.72).
3) What does 'ossmix' report after 'ossxmix' has stopped working?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby andyz » Sun Jul 06, 2008 12:50 am

cesium wrote:Hmm..
1) Did you unload the FreeBSD modules before loading OSS?


yes.
I disable to load snd_hda in /boot/loader.conf
then I added the line
oss_enable="YES"
in /etc/rc.conf
and reboot my laptop

cesium wrote:2) Does this happen only when Skype 1.2 is used? There are newer versions for OSS (1.4, 2.0.0.68 and 2.0.0.72).


for me it was possible to reach positive result only with skype version 1.2 (with snd_hda)
other versions do not work

cesium wrote:3) What does 'ossmix' report after 'ossxmix' has stopped working?

see screenshot http://andyz.t35.com/jpeg/
andyz
New Member
 
Posts: 2
Joined: Fri Jul 04, 2008 5:15 pm


Return to BSD

Who is online

Users browsing this forum: Majestic-12 [Bot], Yahoo [Bot] and 1 guest