WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: OSS finally....  (Read 4341 times)

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
OSS finally....
« on: December 27, 2016, 11:41:22 PM »
I had to dig out an old laptop to test on but OSS apps and x86_64 modules finally resurrected, patched, built and speakers playing that familiar osstest music once more on tc-7.2 corepure64  :p


Just in time for TC-8.x right?  Oh My!!    Well, on that thought I have used the minimum of patches to update the src for 4.x Kernels.  At this point it shouldn't be much of an issue to build modules for up to 4.8 Kernel
Patched with
4.x kernel patch
gcc-5 patch
oss install script patch created myself (not sure if I'll submit upstream because am not positive how POSIX compatible it is and also not sure if there's an upstream to sent it too)..


Code: [Select]
tce-load -i OSS
OSS-Modules-4.2.9-tinycore64.tcz: OK
OSS.tcz: OK
tc@box:~$ ossinfo
Version info: OSS 4.2 (b 2011/201612271138) (0x00040100) GPL
Platform: Linux/x86_64 4.2.9-tinycore64 #1999 SMP Mon Jan 18 19:59:34 UTC 2016 (box)

Number of audio devices:        7
Number of audio engines:        11
Number of mixer devices:        1


Device objects
 0: osscore0 OSS core services
 1: oss_hdaudio0 Intel HD Audio interrupts=483 (483)
    HD Audio controller Intel HD Audio
    Vendor ID    0x8086293e
    Subvendor ID 0x15580860
     Codec  0: ALC662 (0x10ec0662/0x15580860)
     Codec  1: Motorola3055 (0x10573055)
 2: oss_usb0 USB audio core services


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

Audio devices
HD Audio play front               /dev/oss/oss_hdaudio0/pcm0  (device index 0)
HD Audio play center/LFE          /dev/oss/oss_hdaudio0/pcm1  (device index 1)
HD Audio play spdif-out           /dev/oss/oss_hdaudio0/spdout0  (device index 2)
HD Audio play modem               /dev/oss/oss_hdaudio0/mdmout0  (device index 3)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin0  (device index 4)
HD Audio rec mix                  /dev/oss/oss_hdaudio0/pcmin1  (device index 5)
HD Audio rec modem                /dev/oss/oss_hdaudio0/mdmin0  (device index 6)

Nodes
  /dev/dsp -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_in -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_out -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_ac3 -> /dev/oss/oss_hdaudio0/spdout0
  /dev/dsp_mmap -> /dev/oss/oss_hdaudio0/pcm0
  /dev/dsp_multich -> /dev/oss/oss_hdaudio0/pcm0
tc@box:~$
tc@box:~$ osstest
Sound subsystem and version: OSS 4.2 (b 2011/201612271138) (0x00040100)
Platform: Linux/x86_64 4.2.9-tinycore64 #1999 SMP Mon Jan 18 19:59:34 UTC 2016

*** Scanning sound adapter #-1 ***
/dev/oss/oss_hdaudio0/pcm0 (audio engine 0): HD Audio play front
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47995.00 Hz (-0.01%)>
/dev/oss/oss_hdaudio0/pcm1 (audio engine 1): HD Audio play center/LFE
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47990.00 Hz (-0.02%)>
/dev/oss/oss_hdaudio0/spdout0 (audio engine 2): HD Audio play spdif-out
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 47993.00 Hz (-0.01%)>
/dev/oss/oss_hdaudio0/mdmout0 (audio engine 3): HD Audio play modem
- Performing audio playback test...
  <left> OK <right> OK <stereo> OK <measured srate 211743.00 Hz (341.13%)>
/dev/oss/oss_hdaudio0/pcmin0 (audio engine 4): HD Audio rec mix
- Skipping input only device
/dev/oss/oss_hdaudio0/pcmin1 (audio engine 5): HD Audio rec mix
- Skipping input only device
/dev/oss/oss_hdaudio0/mdmin0 (audio engine 6): HD Audio rec modem
- Skipping input only device

*** All tests completed OK ***
tc@box:~$

Only need to figure out and test the Flash support module symlinks and build the 32bit version.  Then,
need folks to test I guess..

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: OSS finally....
« Reply #1 on: December 28, 2016, 01:00:56 AM »
Well done  :)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: OSS finally....
« Reply #2 on: December 28, 2016, 05:26:59 AM »
there's an OSS forum with people still responding, i'd put the patches there.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: OSS finally....
« Reply #3 on: December 30, 2016, 05:49:06 AM »
Status repoport on OSS

All OSS extensions for both TC-7 x86 & x86_64 repo's completed

Also getFlash_beta extensions (Flash v24.x) updated with OSS support for both TC-7 x86  &  x86_64 repo's completed.
 
Maybe we'll have to see the new year in before uploading them in the repo's



Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: OSS finally....
« Reply #4 on: December 30, 2016, 06:19:53 AM »
good work, coreplayer2! having an easy choice between the two sound systems is always good.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: OSS finally....
« Reply #5 on: January 28, 2017, 03:10:15 AM »
Anyone tried  OSS yet??

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: OSS finally....
« Reply #6 on: January 28, 2017, 03:18:46 AM »
Code: [Select]
$ tce-load -i oss
oss-modules-4.2.9-tinycore64.tcz: OK
/etc/oss.conf: No such file or directory
oss.tcz: OK

$ osstest
Sound subsystem and version: OSS 4.2 (b 2011/201612301801) (0x00040100)
Platform: Linux/x86_64 4.2.9-tinycore64 #1999 SMP Mon Jan 18 19:59:34 UTC 2016


NOTICE! You don't have any audio devices available.
        It looks like your audio hardware was not recognized
        by OSS.
               
        If you have installed OSS just a moment ago then it may be necessary to.
        to rebot the system before trying to use the device(s).

$ sudo soundon
OSS is already loaded.

$ ossinfo
Version info: OSS 4.2 (b 2011/201612301801) (0x00040100) GPL
Platform: Linux/x86_64 4.2.9-tinycore64 #1999 SMP Mon Jan 18 19:59:34 UTC 2016 (box)

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


Device objects
 0: osscore0 OSS core services
 1: oss_usb0 USB audio core services

MIDI devices (/dev/midi*)

Mixer devices

Audio devices

Nodes

 :(

Code: [Select]
$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 1: PCH [HDA Intel PCH], device 0: ALC3226 Analog [ALC3226 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: OSS finally....
« Reply #7 on: January 28, 2017, 03:25:28 AM »
Suitable for older equipment I guess..
 :-\

Thanks for trying

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: OSS finally....
« Reply #8 on: January 28, 2017, 03:26:36 AM »
Does oss support hdmi?

Normally "aplay -l" (I loaded alsa after oss) should show an hdmi device.

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: OSS finally....
« Reply #9 on: January 28, 2017, 03:32:59 AM »
I don't believe so, but i could be wrong..

I have the same issue on my latest and greatest desktop, but OSS work fine on an older notebook.

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: OSS finally....
« Reply #10 on: January 28, 2017, 05:10:13 AM »
are you trying to use oss modules at the same time with alsa modules? i don't think that should work

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: OSS finally....
« Reply #11 on: January 28, 2017, 06:03:56 AM »
The oss modules were loaded first - I only loaded the alsa modules after oss did not work.

..but, yes, normally there would be an hdmi device available with alsa, so maybe the oss modules somehow blocked that.
« Last Edit: January 28, 2017, 06:19:26 AM by Juanito »

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: OSS finally....
« Reply #12 on: January 28, 2017, 06:12:22 AM »
I'm not sure about hdmi, I don't have tc on modern computers with these interfaces. But I do know that digital audio output via spdif works fine via oss. It's the individual driver's responsibility. If your card isn't supported it's unlikely that will change. Old stuff often works though.

Offline Juanito

  • Administrator
  • Hero Member
  • *****
  • Posts: 14851
Re: OSS finally....
« Reply #13 on: January 28, 2017, 06:22:25 AM »
I never use hdmi, so it's something of a pain:

* hdmi is the default alsa device (which makes no sense on a laptop)
* I cannot get sound with Xvesa (the i915 module needs to be loaded with Xorg)

Offline hiro

  • Hero Member
  • *****
  • Posts: 1229
Re: OSS finally....
« Reply #14 on: January 28, 2017, 06:36:59 AM »
that i915 has to be loaded is horrible. hard to imagine the kind of people that are responsible for this :(
are there some usable docs? perhaps you could implement the driver for OSS :P