FreeBSD 7 BETA3 + OSS 4.0

OSS specific BSD discussion (FreeBSD/NetBSD/OpenBSD)

Moderators: cesium, dev, kodachi, hannu

FreeBSD 7 BETA3 + OSS 4.0

Postby phasma » Sun Feb 17, 2008 5:10 pm

Hello.

OSS is working, but I can't hear any sounds ... I tried set volume to 100, and pcm to 100(ossmix vol 100/ossmix pcm 100) ...

ossinfo:
Code: Select all
Version info: OSS 4.0 (b071011/200711221513) (0x00040003) CDDL
Platform: FreeBSD/i386 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Fri Nov 16 22:20:33 UTC 2007     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC (notebook.local)

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


Device objects
0: ich0 SiS 7012
1: vmix0 OSS transparent virtual support

MIDI devices (/dev/midi*)

Mixer devices (/dev/mixer*)
0: ICH AC97 Mixer (ALC650) (Mixer 0 of device object 0)

Audio devices
/dev/oss/ich0/pcm0      SiS 7012  (device index 0)
/dev/oss/ich0/pcm1      SiS 7012  (device index 1)
/dev/oss/vmix0/pcm0     SiS 7012 (VMIX0)  (device index 2)
/dev/oss/vmix0/pcm1     SiS 7012 (VMIX0)  (device index 3)
/dev/oss/vmix0/pcm2     SiS 7012 (VMIX0)  (device index 4)
/dev/oss/vmix0/pcm3     SiS 7012 (VMIX0)  (device index 5)
/dev/oss/vmix0/pcm4     SiS 7012 (VMIX0)  (device index 6)
/dev/oss/vmix0/pcm5     SiS 7012 (VMIX0)  (device index 7)
/dev/oss/vmix0/pcm6     SiS 7012 (VMIX0)  (device index 8)
/dev/oss/vmix0/pcm7     SiS 7012 (VMIX0)  (device index 9)


osstest:

Code: Select all
Sound subsystem and version: OSS 4.0 (b071011/200711221513) (0x00040003)
Platform: FreeBSD/i386 7.0-BETA3 FreeBSD 7.0-BETA3 #0: Fri Nov 16 22:20:33 UTC 2007     root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC

*** Scanning sound adapter #-1 ***
/dev/oss/ich0/pcm0 (audio engine 0): SiS 7012
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured>
/dev/oss/ich0/pcm1 (audio engine 1): SiS 7012
- Skipping device (card already tested)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm0 (audio engine 2): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm1 (audio engine 3): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm2 (audio engine 4): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm3 (audio engine 5): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm4 (audio engine 6): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm5 (audio engine 7): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm6 (audio engine 8): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** Scanning sound adapter #0 ***
/dev/oss/vmix0/pcm7 (audio engine 9): SiS 7012 (VMIX0)
- Skipping virtual device (use -V to force test)

*** All tests completed OK ***


/dev/sndstat

Code: Select all
OSS 4.0 (b071011/200711221513) CDDL (C) 4Front Technologies 1996-2007
Kernel: FreeBSD 7.0-BETA3 #0: Fri Nov 16 22:20:33 UTC 2007
    root@logan.cse.buffalo.edu:/usr/obj/usr/src/sys/GENERIC


Audio devices:
0: SiS 7012 (DUPLEX)
1: SiS 7012 (DUPLEX)
2: SiS 7012 (VMIX0) (DUPLEX)
3: SiS 7012 (VMIX0) (DUPLEX)
4: SiS 7012 (VMIX0) (DUPLEX)
5: SiS 7012 (VMIX0) (DUPLEX)
6: SiS 7012 (VMIX0) (DUPLEX)
7: SiS 7012 (VMIX0) (DUPLEX)
8: SiS 7012 (VMIX0) (DUPLEX)
9: SiS 7012 (VMIX0) (DUPLEX)

Mixers:
0: ICH AC97 Mixer (ALC650)

History:
/dev/oss/ich0/pcm0.00: pid 26857 cmd 'xmms' OUT
/dev/oss/ich0/pcm0.00: pid 28248 cmd 'osstest' OUT


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


And problem with ossxmix, It's crashing with segmentation fault.

gdb ossxmix bt:

Code: Select all
#0  0x00000001 in ?? ()
#1  0x00000001 in ?? ()
#2  0x00000001 in ?? ()
#3  0x00000000 in ?? ()
#4  0x287b8758 in ?? () from /usr/local/lib/libgobject-2.0.so.0
#5  0xbfbfab38 in ?? ()
#6  0x28b1bea0 in ?? ()
#7  0xbfbfa888 in ?? ()
#8  0x28786929 in g_value_set_static_boxed () from /usr/local/lib/libg
Previous frame inner to this frame (corrupt stack?)
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 5:21 pm

A. This is build 1009. There's a build 1013 out by now - the ossxmix issue might be fixed there.

B. I have exactly the same chip, and it works for me - but OSS detects only a single audio device. (I don't have /dev/oss/ich0/pcm1). Try linking /dev/oss/ich0/pcm1 to /dev/dsp. Does it work now?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby phasma » Sun Feb 17, 2008 5:57 pm

cesium wrote:A. This is build 1009. There's a build 1013 out by now - the ossxmix issue might be fixed there.


Thanks, ossxmix works ...

cesium wrote:B. I have exactly the same chip, and it works for me - but OSS detects only a single audio device. (I don't have /dev/oss/ich0/pcm1). Try linking /dev/oss/ich0/pcm1 to /dev/dsp. Does it work now?


/dev/oss/ich0/
mix0 pcm0 pcm1

I tried set xmms device to pcm0 and pcm1 ... but sound doesn't work
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby phasma » Sun Feb 17, 2008 5:58 pm

New driver ...

Code: Select all
ich0: detached
ich0: [ITHREAD]
ich0: <SiS> port 0xe400-0xe4ff,0xe000-0xe07f irq 18 at device 2.7 on pci0
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 6:16 pm

What's the output of 'ossmix'?
What motherboard do you have?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby phasma » Sun Feb 17, 2008 6:21 pm

cesium wrote:What's the output of 'ossmix'?
What motherboard do you have?


ossmix:
Code: Select all
Selected mixer 0/ICH AC97 Mixer (ALC650)
Known controls are:
vol <both>[:<rightvol>] (currently 60:60)
vol.rec ON|OFF (currently OFF)
pcm <both>[:<rightvol>] (currently 80:80)
speaker <monovol> (currently 75)
line <both>[:<rightvol>] (currently 75:75)
line.rec ON|OFF (currently ON)
mic <monovol> (currently 84)
mic.rec ON|OFF (currently OFF)
cd <both>[:<rightvol>] (currently 89:89)
cd.rec ON|OFF (currently OFF)
igain <both>[:<rightvol>] (currently 90:90)
aux1 <both>[:<rightvol>] (currently 89:89)
aux1.rec ON|OFF (currently OFF)
phone <both>[:<rightvol>] (currently 70:70)
phone.rec ON|OFF (currently OFF)
mono <monovol> (currently 100)
mono.rec ON|OFF (currently OFF)
video <both>[:<rightvol>] (currently 66:66)
video.rec ON|OFF (currently OFF)
depth <monovol> (currently 80)
rear <both>[:<rightvol>] (currently 75:75)
center <both>[:<rightvol>] (currently 75:75)
mixext.centervol <both>[:<rightvol>] (currently 100:100)
mixext.rearvol <both>[:<rightvol>] (currently 100:100)
mixext.sidevol <both>[:<rightvol>] (currently 100:100)
mixext.rear2linejack ON|OFF (currently ON)
mixext.center2micjack ON|OFF (currently OFF)
mixext.spkmode <FRONT> (currently SPREAD)
mixext.mix-lfe2front ON|OFF (currently OFF)
mixext.mix-rear2front ON|OFF (currently OFF)
spdout.enable ON|OFF (currently ON)
spdout.adc/dac ON|OFF (currently ON)
spdout.pro <Consumer> (currently Consumer)
spdout.audio <AUDIO> (currently AUDIO)
spdout.copy ON|OFF (currently OFF)
spdout.pre-emph ON|OFF (currently OFF)
spdout.rate <48000> (currently 48000)
spdout.vbit ON|OFF (currently OFF)
vmix0-src <Fast> (currently Fast)
vmix0-vol <monovol> (currently 25.0 dB)
vmix0-out1 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm2 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out2 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm3 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out3 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm4 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out4 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm5 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out5 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm6 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out6 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm7 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out7 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm8 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out8 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm9 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out9 <leftVU>:<rightVU>] (currently 0:0)
vmix0-in <leftVU>:<rightVU>] (currently 0:0)


motherboard from Asus a6km notebook
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 6:29 pm

Raise all the vmix* controls to max (0 is mute). Does it play now?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby phasma » Sun Feb 17, 2008 8:07 pm

cesium wrote:Raise all the vmix* controls to max (0 is mute). Does it play now?


Code: Select all
vmix0-src <Fast> (currently High)
vmix0-vol <monovol> (currently 25.0 dB)
vmix0-out1 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm2 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out2 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm3 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out3 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm4 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out4 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm5 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out5 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm6 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out6 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm7 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out7 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm8 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out8 <leftVU>:<rightVU>] (currently 0:0)
vmix0-out.pcm9 <both>[:<rightvol>] (currently 25.0:25.0 dB)
vmix0-out9 <leftVU>:<rightVU>] (currently 0:0)
vmix0-in <leftVU>:<rightVU>] (currently 0:0)


no sound ...

Code: Select all
notebook# ossmix vmix0-out1 100
Control vmix0-out1 is write protected
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 8:10 pm

I misread the ossmix output.. It was already at max. Try to change mixext.spkmode to FRONT.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby phasma » Sun Feb 17, 2008 8:21 pm

cesium wrote:I misread the ossmix output.. It was already at max. Try to change mixext.spkmode to FRONT.


no sound ...

in new version of OSS in sndstat:
Code: Select all
History:
/dev/oss/ich0/pcm0.00: pid 50044 cmd: Unknown OUT
/dev/oss/ich0/pcm0.00: pid 50853 cmd: Unknown OUT
/dev/oss/ich0/pcm1.01: pid 50854 cmd: Unknown OUT
/dev/oss/ich0/pcm0.00: pid 50866 cmd: Unknown IN
/dev/oss/ich0/pcm1.01: pid 50867 cmd: Unknown IN


but in older has been xmms instead of Unknown IN
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 8:41 pm

What does /usr/lib/oss/etc/installed_drivers show? Also test with ossplay -d/dev/oss/ich0/pcm0 (or pcm1) rather than XMMS.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby phasma » Sun Feb 17, 2008 8:51 pm

cesium wrote:What does /usr/lib/oss/etc/installed_drivers show? Also test with ossplay -d/dev/oss/ich0/pcm0 (or pcm1) rather than XMMS.


notebook# ossplay -d /dev/oss/ich0/pcm1
/dev/oss/ich0/pcm1: Device busy
notebook# ossplay -d /dev/oss/ich0/pcm0
/dev/oss/ich0/pcm0: Device busy

notebook# cat /usr/lib/oss/etc/installed_drivers
ich #SiS 7012
vmix #OSS Transparent Virtual Mixing Architecture

I can hear sound only in headphones and quality is very bad(as FreeBSD snd_ich driver without ALC655 patch)

Patch:

Code: Select all
void alc655_patch(struct ac97_info* codec)
{
        /*
         * MSI (Micro-Star International) specific EAPD quirk.
         */
        switch (ac97_getsubvendor(codec)) {
        case 0x00611462:        /* MSI S250 */
        case 0x01311462:        /* MSI S270 */
        case 0x01611462:        /* LG K1 Express */
        case 0x03511462:        /* MSI L725 */
                ac97_wrcd(codec, 0x7a, ac97_rdcd(codec, 0x7a) & 0xfffd);
                break;
        case 0x10ca1734:
                /*
                 * Amilo Pro V2055 with ALC655 has phone out by default
                 * disabled (surround on), leaving us only with internal
                 * speakers. This should really go to mixer. We write the
                 * Data Flow Control reg.
                 */
                ac97_wrcd(codec, 0x6a, ac97_rdcd(codec, 0x6a) | 0x0001);
                break;
        default:
                break;
        }
}
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 8:59 pm

-d in ossplay should be used without a space. I remember now that vmix doesn't work in FreeBSD - try removing it from installed_drivers.
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Postby phasma » Sun Feb 17, 2008 9:29 pm

cesium wrote:-d in ossplay should be used without a space. I remember now that vmix doesn't work in FreeBSD - try removing it from installed_drivers.


I think, this is problem with ich driver ...
phasma
Member
 
Posts: 10
Joined: Sun Feb 17, 2008 4:40 pm

Postby cesium » Sun Feb 17, 2008 9:37 pm

So it works now?
cesium
Developer
 
Posts: 902
Joined: Sun Aug 12, 2007 12:51 am

Next

Return to BSD

Who is online

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

cron