├── .config ├── .mailmap ├── COPYING ├── Changelog ├── EULA ├── attic ├── .nomake ├── README └── drv │ ├── oss_allegro │ ├── .config │ ├── .devices │ ├── .name │ ├── .params │ ├── 400m_src.dat │ ├── 500m_src.dat │ ├── 600m_src.dat │ ├── 800m_src.dat │ ├── 900m_src.dat │ ├── a00m_src.dat │ ├── a80m_src.dat │ ├── allegro_code.h │ ├── allegro_util.inc │ ├── hardware.h │ ├── hckernel.h │ ├── id.h │ ├── kernel.dat │ ├── kernel.h │ ├── kernel.inc │ ├── kernelbn.inc │ ├── memchk.dat │ ├── oss_allegro.c │ ├── oss_allegro.man │ ├── port.h │ ├── srcmgr.h │ └── srcmgr.inc │ ├── oss_als3xx │ ├── .devices │ ├── .name │ ├── .params │ ├── als300.h │ ├── oss_als3xx.c │ └── oss_als3xx.man │ ├── oss_als4k │ ├── .config │ ├── .devices │ ├── .name │ ├── .params │ ├── oss_als4k.c │ └── oss_als4k.man │ ├── oss_digi32 │ ├── .devices │ ├── .name │ ├── .params │ ├── oss_digi32.c │ └── oss_digi32.man │ ├── oss_maestro │ ├── .config │ ├── .devices │ ├── .name │ ├── oss_maestro.c │ └── oss_maestro.man │ ├── oss_neomagic │ ├── .config │ ├── .devices │ ├── .name │ ├── neomagic.h │ ├── neomagic_coeff.h │ ├── oss_neomagic.c │ └── oss_neomagic.man │ ├── oss_s3vibes │ ├── .config │ ├── .devices │ ├── .name │ ├── oss_s3vibes.c │ └── oss_s3vibes.man │ └── oss_vortex │ ├── .devices │ ├── .name │ ├── oss_vortex.c │ ├── oss_vortex.man │ ├── oss_vortex2.c │ └── vortex.h ├── buildid.dat ├── cmd ├── .config ├── ossdevlinks │ ├── .config │ ├── ossdevlinks.c │ └── ossdevlinks.man ├── ossinfo │ ├── .config │ ├── ossinfo.c │ └── ossinfo.man ├── ossmix │ ├── .config │ ├── ossmix.c │ └── ossmix.man ├── ossmixd │ ├── .config │ └── ossmixd.c ├── osspartysh │ ├── .config │ ├── osspartysh.c │ └── osspartysh.man ├── ossphone │ ├── .config │ ├── ossphone.c │ └── ossphone.man ├── ossplay │ ├── .config │ ├── ossplay.c │ ├── ossplay.h │ ├── ossplay.man │ ├── ossplay_console.c │ ├── ossplay_console.h │ ├── ossplay_decode.c │ ├── ossplay_decode.h │ ├── ossplay_parser.c │ ├── ossplay_parser.h │ ├── ossplay_wparser.c │ └── ossplay_wparser.h ├── ossrecord │ ├── .changelog │ └── ossrecord.man ├── osstest │ ├── .config │ ├── help.c │ ├── osstest.c │ ├── osstest.man │ ├── wavedata.c │ └── wavedata.h ├── ossxmix │ ├── .config │ ├── gtkvu.c │ ├── gtkvu.h │ ├── ossxmix.c │ ├── ossxmix.man │ └── ossxmix.xpm ├── savemixer │ ├── .config │ ├── savemixer.c │ └── savemixer.man └── vmixctl │ ├── .config │ ├── vmixctl.c │ └── vmixctl.man ├── configure ├── contributions ├── .nomake ├── README └── ossmeter │ └── ossmeter.c ├── devlists ├── .nomake ├── BeOS ├── FreeBSD ├── Linux ├── SCO ├── Solaris-i386 └── Solaris-sparc ├── include ├── .nomake ├── libossmix.h ├── oss_userdev_exports.h └── soundcard.h ├── kernel ├── .config ├── OS │ ├── .nomake │ ├── BeOS │ │ ├── .config │ │ ├── driver_beos.c │ │ ├── module.inc │ │ ├── os_beos.c │ │ └── os_beos.h │ ├── FreeBSD │ │ ├── .config │ │ ├── os_freebsd.c │ │ ├── os_freebsd.h │ │ └── wrapper │ │ │ └── bsddefs.h │ ├── Linux │ │ ├── .config │ │ ├── os_linux.c │ │ ├── os_linux.h │ │ ├── oss_ddi.h │ │ └── wrapper │ │ │ ├── .nomake │ │ │ └── wrap.h │ ├── SCO_SV │ │ ├── .config │ │ ├── module.inc │ │ ├── os_sco.c │ │ └── os_sco.h │ ├── SunOS │ │ ├── .config │ │ ├── module.inc │ │ ├── os_solaris.c │ │ ├── os_solaris.h │ │ └── udi.c │ └── VxWorks │ │ ├── .config │ │ ├── linux │ │ └── ioctl.h │ │ ├── module.inc │ │ ├── os_vxworks.c │ │ └── os_vxworks.h ├── drv │ ├── .config │ ├── oss_ali5455 │ │ ├── .devices │ │ ├── .name │ │ ├── oss_ali5455.c │ │ └── oss_ali5455.man │ ├── oss_atiaudio │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── oss_atiaudio.c │ │ └── oss_atiaudio.man │ ├── oss_audigyls │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_audigyls.c │ │ └── oss_audigyls.man │ ├── oss_audiocs │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── cs4231_mixer.h │ │ ├── oss_audiocs.c │ │ └── oss_audiocs.man │ ├── oss_audioloop │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_audioloop.c │ │ └── oss_audioloop.man │ ├── oss_audiopci │ │ ├── .devices │ │ ├── .name │ │ ├── audiopci.h │ │ ├── oss_audiopci.c │ │ └── oss_audiopci.man │ ├── oss_cmi878x │ │ ├── .devices │ │ ├── .name │ │ ├── oss_cmi878x.c │ │ └── oss_cmi878x.man │ ├── oss_cmpci │ │ ├── .devices │ │ ├── .name │ │ ├── oss_cmpci.c │ │ └── oss_cmpci.man │ ├── oss_cs4281 │ │ ├── .devices │ │ ├── .name │ │ ├── cs4281.h │ │ ├── oss_cs4281.c │ │ └── oss_cs4281.man │ ├── oss_cs461x │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── cs461x.h │ │ ├── cs461x_dsp.h │ │ ├── oss_cs461x.c │ │ └── oss_cs461x.man │ ├── oss_digi96 │ │ ├── .devices │ │ ├── .name │ │ ├── oss_digi96.c │ │ └── oss_digi96.man │ ├── oss_emu10k1x │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_emu10k1x.c │ │ └── oss_emu10k1x.man │ ├── oss_envy24 │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── envy24.h │ │ ├── envy24_1010lt.c │ │ ├── envy24_6fire.c │ │ ├── envy24_default.c │ │ ├── envy24_direct.c │ │ ├── envy24_ews88d.c │ │ ├── envy24_tdif.c │ │ ├── envy24_tdif.h │ │ ├── oss_envy24.c │ │ └── oss_envy24.man │ ├── oss_envy24ht │ │ ├── .changelog │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── envy24ht.h │ │ ├── envy24ht_ac97.c │ │ ├── envy24ht_ap192.c │ │ ├── envy24ht_aureon.c │ │ ├── envy24ht_julia.c │ │ ├── envy24ht_revo51.c │ │ ├── envy24ht_revo71.c │ │ ├── envy24ht_via.c.save │ │ ├── oss_envy24ht.c │ │ └── oss_envy24ht.man │ ├── oss_fmedia │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_fmedia.c │ │ └── oss_fmedia.man │ ├── oss_geode │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── oss_geode.c │ │ └── oss_geode.man │ ├── oss_hdaudio │ │ ├── .changelog │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── hdaudio.h │ │ ├── hdaudio_abit_AA8.c │ │ ├── hdaudio_asus_P4B_E.c │ │ ├── hdaudio_asus_m9.c │ │ ├── hdaudio_codec.c │ │ ├── hdaudio_codec.h │ │ ├── hdaudio_codecids.h │ │ ├── hdaudio_dedicated.h │ │ ├── hdaudio_eeepc.c │ │ ├── hdaudio_ferrari5k.c │ │ ├── hdaudio_generic.c │ │ ├── hdaudio_gpio_handlers.c │ │ ├── hdaudio_mixers.h │ │ ├── hdaudio_scaleoP.c │ │ ├── hdaudio_si3055.c │ │ ├── hdaudio_thinkpad_r61.c │ │ ├── hdaudio_vaio_vgn.c │ │ ├── oss_hdaudio.c │ │ └── oss_hdaudio.man │ ├── oss_ich │ │ ├── .changelog │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_ich.c │ │ └── oss_ich.man │ ├── oss_imux │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_imux.c │ │ └── oss_imux.man │ ├── oss_madi │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── madi.h │ │ ├── madi_mixer.c │ │ ├── oss_madi.c │ │ └── oss_madi.man │ ├── oss_midiloop │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_midiloop.c │ │ └── oss_midiloop.man │ ├── oss_midimix │ │ ├── .config │ │ ├── .name │ │ ├── oss_midimix.c │ │ └── oss_midimix.man │ ├── oss_sadasupport │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_sadasupport.c │ │ ├── oss_sadasupport.man │ │ └── sadasupport_sol9.h │ ├── oss_sblive │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── emu10k1_dsp.h │ │ ├── emu10k1_dsp_be.h │ │ ├── emu10k2_dsp.h │ │ ├── emu10k2_dsp_be.h │ │ ├── oss_sblive.c │ │ ├── oss_sblive.man │ │ └── sblive.h │ ├── oss_sbpci │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_sbpci.c │ │ ├── oss_sbpci.man │ │ └── sbpci.h │ ├── oss_sbxfi │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── 20k1reg.h │ │ ├── hwaccess.h │ │ ├── oss_sbxfi.c │ │ ├── oss_sbxfi.man │ │ ├── sbxfi.h │ │ └── sbxfi_hwaccess.c │ ├── oss_solo │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── oss_solo.c │ │ └── oss_solo.man │ ├── oss_trident │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_trident.c │ │ └── oss_trident.man │ ├── oss_usb │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── midisport1x1_fw.h │ │ ├── midisport2x2_fw.h │ │ ├── oss_usb.c │ │ ├── oss_usb.man │ │ ├── ossusb.h │ │ ├── ossusb_audio.c │ │ ├── ossusb_midi.c │ │ ├── ossusb_midisport.c │ │ ├── ossusb_ymhmidi.c │ │ └── oxygen8_fw.h │ ├── oss_userdev │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_userdev.c │ │ ├── oss_userdev.man │ │ ├── oss_userdev_devicepair.c │ │ └── userdev.h │ ├── oss_via823x │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── oss_via823x.c │ │ ├── oss_via823x.man │ │ └── via8233.h │ ├── oss_via97 │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── oss_via97.c │ │ └── oss_via97.man │ ├── oss_ymf7xx │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── oss_ymf7xx.c │ │ ├── oss_ymf7xx.man │ │ └── ymf7xx.h │ └── osscore │ │ ├── .config │ │ ├── .devices │ │ ├── .name │ │ ├── .params │ │ ├── osscore.c │ │ └── osscore.man └── framework │ ├── .config │ ├── ac97 │ ├── .config │ ├── .params │ ├── ac97_ext.inc │ └── oss_ac97.c │ ├── audio │ ├── .config │ ├── audiocnv.inc │ ├── fltdata1_m.inc │ ├── fltdata2_h.inc │ ├── fltdata3_l.inc │ ├── fltdata4_p.inc │ ├── grc3code.inc │ ├── grc3inc.inc │ ├── oss_audio_core.c │ ├── oss_audiofmt.c │ ├── oss_grc3.c │ ├── oss_spdif.c │ └── ulaw.h │ ├── include │ ├── .nomake │ ├── ac97.h │ ├── audio_core.h │ ├── eq1.h │ ├── grc3.h │ ├── internal.h │ ├── midi_core.h │ ├── midiparser.h │ ├── mixer_core.h │ ├── oss_calls.h │ ├── oss_config.h │ ├── oss_memblk.h │ ├── oss_pci.h │ ├── oss_version.h │ ├── ossddk │ │ ├── oss_exports.h │ │ ├── oss_limits.PHh │ │ └── ossddk.h │ ├── remux.h │ ├── spdif.h │ ├── uart401.h │ └── udi.h │ ├── midi │ ├── .config │ ├── oss_default_timer.c │ ├── oss_midi_core.c │ ├── oss_midi_mapper.c │ ├── oss_midi_parser.c │ ├── oss_midi_queue.c │ └── oss_midi_timers.c │ ├── midi_stubs │ ├── .config │ └── oss_midi_stubs.c │ ├── mixer │ ├── .config │ ├── mixerdefs.h │ └── oss_mixer_core.c │ ├── osscore │ ├── .config │ ├── oss_core_options.c │ ├── oss_core_services.c │ └── oss_memblk.c │ ├── remux │ ├── .config │ └── oss_remux.c │ ├── sndstat │ ├── .config │ └── oss_sndstat.c │ ├── uart401 │ ├── .config │ └── oss_uart401.c │ └── vmix_core │ ├── .config │ ├── db_scale.h │ ├── outexport.inc │ ├── outexport_int.inc │ ├── playmix.inc │ ├── playmix_int.inc │ ├── playmix_src.inc │ ├── rec_export.inc │ ├── rec_export_int.inc │ ├── vmix.h │ ├── vmix_core.c │ ├── vmix_import.inc │ ├── vmix_import_int.inc │ ├── vmix_input.c │ └── vmix_output.c ├── lib ├── .config ├── libOSSlib │ ├── .config │ ├── .nativemake │ ├── Makefile │ ├── Readme │ ├── compile.sh │ ├── gmidi.h │ ├── libmain.c │ ├── midiparser.c │ ├── midiparser.h │ └── play_event.c ├── libossmix │ ├── .config │ ├── libossmix_cache.c │ ├── libossmix_impl.h │ ├── libossmix_local.c │ ├── libossmix_main.c │ └── libossmix_tcp.c └── libsalsa │ ├── .config │ ├── .nativemake │ ├── Makefile │ ├── README │ ├── Versions │ ├── alsa-symbols.h │ ├── alsakernel.h │ ├── local.h │ ├── main.c │ ├── misc.c │ ├── mix.c │ ├── output.c │ ├── pcm.c │ ├── rawmidi.c │ ├── seq.c │ ├── seq_input.c │ ├── seq_output.c │ ├── seqmid.c │ ├── stubs.c │ └── timer.c ├── make.defs ├── misc ├── .nomake ├── man1m │ ├── soundoff.man │ └── soundon.man ├── man7 │ ├── dsp.man │ ├── midi.man │ ├── mixer.man │ └── sndstat.man ├── man9ossddk │ ├── TODO │ ├── ossddk_ac97_install.9ossddk │ ├── ossddk_ac97_is_varrate.9ossddk │ ├── ossddk_ac97_remove.9ossddk │ ├── ossddk_ac97_set_ext_init.9ossddk │ ├── ossddk_ac97_set_playrate.9ossddk │ ├── ossddk_ac97_set_recrate.9ossddk │ ├── ossddk_adev_get_devc.9ossddk │ ├── ossddk_adev_get_dmapin.9ossddk │ ├── ossddk_adev_get_dmapout.9ossddk │ ├── ossddk_adev_get_label.9ossddk │ ├── ossddk_adev_get_portc.9ossddk │ ├── ossddk_adev_get_portc_play.9ossddk │ ├── ossddk_adev_get_portc_record.9ossddk │ ├── ossddk_adev_get_songname.9ossddk │ ├── ossddk_adev_set_buflimits.9ossddk │ ├── ossddk_adev_set_caps.9ossddk │ ├── ossddk_adev_set_channels.9ossddk │ ├── ossddk_adev_set_devc.9ossddk │ ├── ossddk_adev_set_enable_flag.9ossddk │ ├── ossddk_adev_set_formats.9ossddk │ ├── ossddk_adev_set_label.9ossddk │ ├── ossddk_adev_set_magic.9ossddk │ ├── ossddk_adev_set_mixer.9ossddk │ ├── ossddk_adev_set_portc.9ossddk │ ├── ossddk_adev_set_portc_play.9ossddk │ ├── ossddk_adev_set_portc_record.9ossddk │ ├── ossddk_adev_set_portnum.9ossddk │ ├── ossddk_adev_set_rates.9ossddk │ ├── ossddk_adev_set_ratesource.9ossddk │ ├── ossddk_adev_set_songname.9ossddk │ ├── ossddk_audio_inputintr.9ossddk │ ├── ossddk_audio_outputintr.9ossddk │ ├── ossddk_disable_device.9ossddk │ ├── ossddk_dmap_get_buffsize.9ossddk │ ├── ossddk_dmap_get_buffused.9ossddk │ ├── ossddk_dmap_get_dmabuf.9ossddk │ ├── ossddk_dmap_get_fragsize.9ossddk │ ├── ossddk_dmap_get_numfrags.9ossddk │ ├── ossddk_dmap_get_phys.9ossddk │ ├── ossddk_dmap_get_private.9ossddk │ ├── ossddk_dmap_get_qhead.9ossddk │ ├── ossddk_dmap_get_qtail.9ossddk │ ├── ossddk_dmap_set_buffsize.9ossddk │ ├── ossddk_dmap_set_callback.9ossddk │ ├── ossddk_dmap_set_dmabuf.9ossddk │ ├── ossddk_dmap_set_fragsize.9ossddk │ ├── ossddk_dmap_set_numfrags.9ossddk │ ├── ossddk_dmap_set_phys.9ossddk │ ├── ossddk_dmap_set_playerror.9ossddk │ ├── ossddk_dmap_set_private.9ossddk │ ├── ossddk_dmap_set_recerror.9ossddk │ ├── ossddk_install_audiodev.9ossddk │ ├── ossddk_install_mixer.9ossddk │ ├── ossddk_mixer_create_control.9ossddk │ ├── ossddk_mixer_create_group.9ossddk │ ├── ossddk_mixer_get_devc.9ossddk │ ├── ossddk_mixer_set_strings.9ossddk │ ├── ossddk_mixer_touch.9ossddk │ ├── ossddk_mixer_truncate.9ossddk │ ├── ossddk_osdev_get_devc.9ossddk │ ├── ossddk_register_device.9ossddk │ └── ossddk_unregister_device.9ossddk └── samples │ └── ddksample │ ├── Makefile │ ├── ddksample.c │ ├── ddksample.conf │ ├── ddksample.h │ ├── ddksample_audio.c │ ├── ddksample_misc.c │ └── ddksample_mixer.c ├── os_cmd ├── .config ├── FreeBSD │ ├── .config │ └── ossdetect │ │ ├── ossdetect.c │ │ └── ossdetect.man ├── Linux │ ├── .config │ ├── ossdetect │ │ ├── ossdetect.c │ │ └── ossdetect.man │ └── ossvermagic │ │ └── ossvermagic.c ├── SCO_SV │ ├── .config │ └── ossdetect │ │ ├── .config │ │ ├── ossdetect.c │ │ └── ossdetect.man └── SunOS │ ├── .config │ └── ossdetect │ ├── .config │ ├── ossdetect.c │ └── ossdetect.man ├── oss ├── .nomake └── lib │ └── flashsupport.c ├── phpmake ├── Makefile.php ├── defaults.php ├── functions.php ├── library.php └── version.php ├── setup ├── .nomake ├── BeOS │ ├── build.sh │ ├── make.local │ └── mkpkg.sh ├── FreeBSD │ ├── build.sh │ ├── confgen.c │ ├── etc │ │ └── rc.d │ │ │ └── oss │ ├── make.local │ ├── mkpkg.sh │ ├── oss │ │ ├── build │ │ │ ├── Makefile.osscore │ │ │ ├── Makefile.tmpl │ │ │ ├── bsdpci.inc │ │ │ ├── bsdvirtual.inc │ │ │ ├── devid.h │ │ │ ├── install.sh │ │ │ ├── module.inc │ │ │ └── osscore.c │ │ └── soundon.user │ ├── pkg-comment │ ├── pkg-descr │ ├── pkg-message │ ├── pkg-postinstall │ ├── pkg-postremove │ ├── pkg-preremove │ └── sbin │ │ ├── soundoff │ │ └── soundon ├── Linux │ ├── arm │ │ ├── Makefile.osscore.arm │ │ ├── Makefile.tmpl.arm │ │ ├── bpabi.S │ │ ├── bpabi.c │ │ ├── bpabi.h │ │ ├── lib1funcs.asm │ │ └── longlong.h │ ├── build.sh │ ├── build_arm.sh │ ├── confgen.c │ ├── copyright │ ├── installoss.sh │ ├── linsetup.sh │ ├── make.local │ ├── md5.sh │ ├── menu.ex │ ├── mkdeb.sh │ ├── mkpkg.sh │ ├── mktarball.sh │ ├── oss │ │ ├── build │ │ │ ├── Makefile.osscore │ │ │ ├── Makefile.tmpl │ │ │ ├── install.sh │ │ │ ├── module.inc │ │ │ ├── osscore.c │ │ │ ├── ossdip.h │ │ │ ├── pci_wrapper.inc │ │ │ └── usb_wrapper.inc │ │ ├── cuckoo │ │ │ ├── Makefile │ │ │ ├── checksum.h │ │ │ ├── cuckoo.c │ │ │ ├── cuckoo.h │ │ │ ├── cuckoo_midi.c │ │ │ ├── cuckoo_mixer.c │ │ │ └── cuckoo_pcm.c │ │ ├── etc │ │ │ └── S89oss │ │ ├── scripts │ │ │ ├── 90-oss_usb-create-device.fdi │ │ │ ├── killprocs.sh │ │ │ ├── oss_usb-create-devices │ │ │ ├── remove_drv.sh │ │ │ ├── restore_drv.sh │ │ │ ├── setup-alsa.sh │ │ │ └── showprocs.sh │ │ └── soundon.user │ ├── postinst │ ├── postrm │ ├── preinst │ ├── prerm │ ├── removeoss.sh │ ├── sbin │ │ ├── soundoff │ │ └── soundon │ ├── shlibs │ └── spec.tmpl ├── SCO_SV │ ├── README.txt │ ├── S89oss │ ├── build.sh │ ├── combpkg │ │ ├── depend │ │ ├── mkpkg.sh │ │ ├── postinstall │ │ └── request │ ├── fpsupport.s │ ├── i.drvcfg │ ├── llasgmul.o │ ├── lldivrem.o │ ├── llmul.o │ ├── make.local │ ├── mkoss.sh │ ├── mkpkg.sh │ ├── mktarball.sh │ ├── oss │ │ ├── build │ │ │ └── install.sh │ │ └── modules │ │ │ └── osscore │ │ │ ├── Drvmap │ │ │ ├── Master │ │ │ ├── Node │ │ │ └── System │ ├── pkgdepend │ ├── postinstall │ ├── postremove │ ├── preremove │ ├── r.drvcfg │ ├── removeoss.sh │ └── sbin │ │ ├── soundoff │ │ └── soundon ├── SunOS │ ├── .changelog │ ├── S89oss │ ├── __xtol-i86pc-i386.s │ ├── build.sh │ ├── confgen.c │ ├── i.drvcfg │ ├── mkpkg.sh │ ├── oss.xml │ ├── oss │ │ └── scripts │ │ │ └── install.sh │ ├── postinstall │ ├── postremove │ ├── preremove │ ├── r.drvcfg │ ├── sbin │ │ ├── soundoff │ │ └── soundon │ ├── solsetup.sh │ └── svc-oss.htm ├── VxWorks │ ├── build.sh │ └── make.local ├── build_common.sh ├── dirsetup.c ├── elflib.inc ├── fpsupport_i86pc.c ├── gen_driver_beos.inc ├── gen_driver_freebsd.inc ├── gen_driver_linux.inc ├── gen_driver_sco.inc ├── gen_driver_solaris.inc ├── ossvers.c ├── setupdir.sh ├── srcconf.c ├── srcconf_beos.inc ├── srcconf_freebsd.inc ├── srcconf_linux.inc ├── srcconf_solaris.inc ├── srcconf_vxworks.inc ├── txt2man ├── txt2man.c ├── update_errors.c └── x11.pc ├── showversion.sh ├── tutorials ├── .nomake ├── drivers │ └── myossdev0 │ │ ├── .config │ │ ├── .devices │ │ ├── .params │ │ ├── README │ │ ├── myossdev.c │ │ └── myossdev.h └── sndkit │ ├── .depend │ ├── .nomake │ ├── Makefile │ ├── README │ ├── dsp │ ├── Makefile │ ├── Readme │ ├── help.c │ ├── recplay.c │ ├── str │ │ ├── Makefile │ │ ├── Readme │ │ ├── str.c │ │ ├── str.h │ │ └── strplay.c │ ├── vplay │ │ ├── Makefile │ │ ├── Readme │ │ ├── etc.magic.vplay │ │ ├── fmtheaders.h │ │ └── vplay.c │ └── vplay_vxworks │ │ ├── Makefile │ │ ├── fmtheaders.h │ │ └── vplay_vxworks.c │ ├── libossmix_demo │ ├── Makefile │ ├── README │ └── ossmixlib_demo.c │ ├── morse │ ├── Makefile │ ├── Vvcw │ ├── charlist.h │ ├── loadcw.c │ ├── morse.c │ ├── morse2.c │ ├── morse3.c │ ├── randomcw │ └── testgen.c │ ├── ossmplay │ ├── Makefile │ ├── mlib.c │ ├── mlib.h │ └── ossmplay.c │ ├── samples │ ├── Makefile │ ├── Readme │ ├── audiolevel.c │ ├── dsp_geterror_demo.c │ ├── fulldup.c │ ├── midi.c │ ├── midiin.c │ ├── mixer_applet.c │ ├── mixer_test.txt │ ├── mixext.c │ ├── mixext.readme │ ├── mmap_duplex.c │ ├── mmap_test.c │ ├── playtgt.c │ ├── recsrc.c │ └── singen.c │ ├── sblive │ ├── Makefile │ ├── README │ ├── asm10k.c │ ├── emu10k.dsp │ ├── emu10k1.mac │ ├── emu10k2.mac │ ├── emuasm1 │ ├── emuasm2 │ ├── equalizer.mac │ ├── ld10k.c │ ├── mkheader.c │ ├── null.dsp │ ├── testgen.c │ ├── vu.mac │ └── writegpr.c │ ├── softsynth │ ├── Makefile │ ├── README │ ├── softsynth.c │ └── softsynth_gtk.c │ ├── tests │ ├── Makefile │ ├── README.1ST │ ├── ioctl_test.c │ ├── iosync.c │ ├── multich16.c │ ├── multich32.c │ ├── musicin.c │ ├── seltest2.c │ ├── singen.inc │ ├── spdif_in_debug.c │ ├── sweepdown.c │ ├── sweepup.c │ └── synctest.c │ └── userdev_demo │ ├── Makefile │ └── udserver.c └── utils ├── .nomake ├── Makefile ├── README ├── lin-inject.sh ├── mixgen.c ├── mixgen2.c ├── ossmkdep.c ├── phpmake ├── readtimings.c ├── snoopy.c ├── vib ├── vif ├── vil ├── vil24 ├── vis ├── viu └── viv /.config: -------------------------------------------------------------------------------- 1 | mode=undefined 2 | license=OSS 3 | -------------------------------------------------------------------------------- /.mailmap: -------------------------------------------------------------------------------- 1 | Hannu Savolainen root 2 | Hannu Savolainen root@acer 3 | Hannu Savolainen root@zeus.compusonic.fi 4 | -------------------------------------------------------------------------------- /COPYING: -------------------------------------------------------------------------------- 1 | Copyright (C) Hannu Savolainen and Dev Mazumdar 1996-2008. All rights reserved. 2 | 3 | This source tree is reserved for internal use by 4Front Technologies and 4 | by registerd contributors of Open Sound System. You have no right to 5 | redistribute this version or to use it for any other purpose than developing 6 | OSS itself. 7 | 8 | There is absolutely no warranty. The code contained in this source tree is 9 | under development and potentially buggy. 10 | 11 | Officially released source code packages of Open Sound System are available 12 | from http://developer.opensound.com. 13 | -------------------------------------------------------------------------------- /Changelog: -------------------------------------------------------------------------------- 1 | Change log for OSS 2 | ================== 3 | 4 | The list of changes made to OSS is available from our Mercurial repository 5 | (http://mercurial.opensound.com). 6 | 7 | -------------------------------------------------------------------------------- /attic/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/attic/.nomake -------------------------------------------------------------------------------- /attic/README: -------------------------------------------------------------------------------- 1 | The attic/drv directory contains drivers that are no longer maintained and/or 2 | supported. If necessary they can be compiled by doing the following operation 3 | in the OSS (source) directory before running the ./configre script: 4 | 5 | ln -s attic/drv/ kernel/drv/ 6 | 7 | 8 | -------------------------------------------------------------------------------- /attic/drv/oss_allegro/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /attic/drv/oss_allegro/.devices: -------------------------------------------------------------------------------- 1 | oss_allegro pci125d,1988 ESS Allegro ES1988 2 | oss_allegro pci125d,1990 ESS Canyon 3D ES1990 3 | oss_allegro pci125d,1992 ESS Canyon 3D-2 ES1992 4 | oss_allegro pci125d,1998 ESS Maestro3 ES1998 5 | oss_allegro pci125d,199a ESS Maestro3 ES199A 6 | -------------------------------------------------------------------------------- /attic/drv/oss_allegro/.name: -------------------------------------------------------------------------------- 1 | ESS Allegro (ES1988) chipset 2 | -------------------------------------------------------------------------------- /attic/drv/oss_allegro/.params: -------------------------------------------------------------------------------- 1 | int allegro_amp=0; 2 | /* 3 | * Allegro Amp is needed for ESS 198X AC97 codecs 4 | * Values: 1=Enable 0=Disable Default: 0 5 | */ 6 | 7 | int allegro_mpu_ioaddr=0; 8 | /* 9 | * Allegro MPU 401 UART I/O Base 10 | * Values: 0x300, 0x320, 0x33, 0x340 Default: 0 11 | */ 12 | 13 | -------------------------------------------------------------------------------- /attic/drv/oss_allegro/oss_allegro.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_allegro - ESS Allegro/Maestro3 audio driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for ESS Allegro/Maestro3 sound cards. 6 | Allegro device characteristics: 7 | - 8/16 bit playback/record 8 | - mono/stereo playback/recording 9 | - 8KHz to 48Khz sample rate. 10 | 11 | OPTIONS 12 | o allegro_amp=0|1 13 | Some ES1988 devices have the ESS19XX ac97 device that needs to be turned on. 14 | 15 | 16 | o allegro_mpu_ioaddr= 17 | The ESS allegro device supports the UART401 device (not usually found in 18 | laptop models but only on certain PCI cards). Check the allegro.conf 19 | file (see below) for valid addresses. 20 | 21 | FILES 22 | CONFIGFILEPATH/oss_allegro.conf Device configuration file 23 | 24 | AUTHOR 25 | 4Front Technologies 26 | -------------------------------------------------------------------------------- /attic/drv/oss_als3xx/.devices: -------------------------------------------------------------------------------- 1 | oss_als3xx pci4005,300 Avance Logic ALS300 2 | oss_als3xx pci4005,308 Avance Logic ALS300+ 3 | -------------------------------------------------------------------------------- /attic/drv/oss_als3xx/.name: -------------------------------------------------------------------------------- 1 | Avance Logic ALS300 2 | -------------------------------------------------------------------------------- /attic/drv/oss_als3xx/.params: -------------------------------------------------------------------------------- 1 | int als300_mpu_base=0; 2 | /* 3 | * Specify ALS300's MPU Base 4 | * Values: 0x300, 0x310, 0x320, 0x330, 0x340, 0x0350, 0x360, 0x370 Default: 0 5 | */ 6 | -------------------------------------------------------------------------------- /attic/drv/oss_als3xx/oss_als3xx.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_als3xx - Avance Logic ALS300 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Avance Logic ALS300 based soundcards. 6 | 7 | OPTIONS 8 | o als300_mpu_base= - set the ALS MPU 401 base I/O adress to one of 9 | the legal values as described in the /plaform/i86pc/kernel/drv/als300.conf 10 | file. This I/O address must not conflict with any other MIDI devices or 11 | any other I/O adapters. 12 | 13 | eg: als3xx_mpu_base=0x300 14 | FILES 15 | CONFIGFILEPATH/oss_als3xx.conf 16 | 17 | AUTHOR 18 | 4Front Technologies 19 | 20 | -------------------------------------------------------------------------------- /attic/drv/oss_als4k/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /attic/drv/oss_als4k/.devices: -------------------------------------------------------------------------------- 1 | oss_als4k pci4005,4000 Avance Logic ALS4000 2 | -------------------------------------------------------------------------------- /attic/drv/oss_als4k/.name: -------------------------------------------------------------------------------- 1 | Avance Logic ALS4000 2 | -------------------------------------------------------------------------------- /attic/drv/oss_als4k/.params: -------------------------------------------------------------------------------- 1 | int als4000_mpu_ioaddr=0; 2 | /* 3 | * MPU 401 I/O Address 4 | * Values: 0x300, 0x310, 0x320, 0x330, 0x340, 0x350, 0x360, 0x370 Default: 0x330 5 | */ 6 | 7 | int als4000_mpu_irq=0; 8 | /* 9 | * MPU 401 IRQ 10 | * Values: 5, 7, 9, 10, 11 Default: 0 11 | */ 12 | -------------------------------------------------------------------------------- /attic/drv/oss_als4k/oss_als4k.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_als4k - ALS4000 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Avance Logic ALS4000 based soundcards. 6 | ALS4000 characteristics: 7 | o 8/16 bit 8 | o mono/stereo 9 | o 8Khz - 48Khz sampling rates 10 | o FM Synthesis 11 | o MIDI UART401 12 | 13 | The ALS4000 has a Sound Blaster compatible mixer device. 14 | 15 | OPTIONS 16 | None 17 | 18 | FILES 19 | CONFIGFILEPATH/oss_als4k.conf 20 | 21 | AUTHOR 22 | 4Front Technologies 23 | 24 | -------------------------------------------------------------------------------- /attic/drv/oss_digi32/.devices: -------------------------------------------------------------------------------- 1 | oss_digi32 pciea60,9896 RME Digi32 2 | oss_digi32 pciea60,9897 RME Digi32 Pro 3 | oss_digi32 pciea60,9898 RME Digi32/8 4 | -------------------------------------------------------------------------------- /attic/drv/oss_digi32/.name: -------------------------------------------------------------------------------- 1 | RME Digi32 2 | -------------------------------------------------------------------------------- /attic/drv/oss_digi32/.params: -------------------------------------------------------------------------------- 1 | int digi32_buffsize=64; 2 | /* 3 | * By default the Digi32 driver will allocate 64k of buffer both for 4 | * recording and playback functions. This should be sufficient in most cases. 5 | * If necessary the buffer sizes can be increased. 6 | * Values: 64-128 Default: 64 7 | */ 8 | -------------------------------------------------------------------------------- /attic/drv/oss_maestro/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /attic/drv/oss_maestro/.devices: -------------------------------------------------------------------------------- 1 | oss_maestro pci125d,1968 ESS Maestro-2 2 | oss_maestro pci125d,1978 ESS Maestro-2E 3 | oss_maestro pci1285,100 ESS Maestro-1 4 | -------------------------------------------------------------------------------- /attic/drv/oss_maestro/.name: -------------------------------------------------------------------------------- 1 | ESS Maestro-2 2 | -------------------------------------------------------------------------------- /attic/drv/oss_maestro/oss_maestro.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_maestro - ESS Maestro audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for ESS Maestro1/Maestro2/Maestro2E soundcards 6 | Maestro device characteristics: 7 | o 8/16 bit playback/record 8 | o mono/stereo playback/recording 9 | o 8KHz to 48Khz sample rate. 10 | 11 | OPTIONS 12 | None 13 | 14 | FILES 15 | CONFIGFILEPATH/oss_maestro.conf Device configuration file 16 | 17 | AUTHOR 18 | 4Front Technologies 19 | 20 | -------------------------------------------------------------------------------- /attic/drv/oss_neomagic/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /attic/drv/oss_neomagic/.devices: -------------------------------------------------------------------------------- 1 | oss_neomagic pci10c8,8005 Neomagic NM2200AV 2 | -------------------------------------------------------------------------------- /attic/drv/oss_neomagic/.name: -------------------------------------------------------------------------------- 1 | Neomagic NM2200AV 2 | -------------------------------------------------------------------------------- /attic/drv/oss_neomagic/oss_neomagic.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_neomagic - Neomagic audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Neomagic NM2200/NM2200-ZX audio controllers 6 | Neomagic device characteristics: 7 | o 8/16 bit playback/record 8 | o mono/stereo playback/recording 9 | o 8KHz to 48Khz sample rate. 10 | 11 | OPTIONS 12 | None 13 | 14 | FILES 15 | CONFIGFILEPATH/oss_neomagic.conf Device configuration file 16 | 17 | AUTHOR 18 | 4Front Technologies 19 | 20 | -------------------------------------------------------------------------------- /attic/drv/oss_s3vibes/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /attic/drv/oss_s3vibes/.devices: -------------------------------------------------------------------------------- 1 | oss_s3vibes pci5333,ca00 S3 Sonic Vibes 2 | -------------------------------------------------------------------------------- /attic/drv/oss_s3vibes/.name: -------------------------------------------------------------------------------- 1 | S3 Sonic Vibes 2 | -------------------------------------------------------------------------------- /attic/drv/oss_s3vibes/oss_s3vibes.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_s3vibes - S3 Sonic Vibes audio driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for S3 Sonic Vibes audio controller. 6 | S3Vibes device characteristics: 7 | o 8/16 bit playback/record 8 | o mono/stereo playback/recording 9 | o 8KHz to 44.1Khz sample rate. 10 | 11 | OPTIONS 12 | None 13 | 14 | FILES 15 | CONFIGFILEPATH/oss_s3vibes.conf Device configuration file 16 | 17 | AUTHOR 18 | 4Front Technologies 19 | 20 | -------------------------------------------------------------------------------- /attic/drv/oss_vortex/.devices: -------------------------------------------------------------------------------- 1 | oss_vortex pci12eb,1 Aureal Vortex (AU8820) 2 | oss_vortex pci12eb,2 Aureal Vortex2 (AU8830) 3 | oss_vortex AU8810 Aureal Vortex Advantage (AU8810) *** NOT SUPPORTED *** 4 | -------------------------------------------------------------------------------- /attic/drv/oss_vortex/.name: -------------------------------------------------------------------------------- 1 | Aureal Vortex (AU8820) and Vortex2 (AU8830) 2 | -------------------------------------------------------------------------------- /attic/drv/oss_vortex/oss_vortex.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_vortex - Aureal Vortex audio driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for old Aureal Semiconductor AU8820 (Vortex1) and 6 | AU8830 (Vortex2) audio controllers. 7 | 8 | Vortex device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | None 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_vortex.conf Device configuration file 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | 22 | -------------------------------------------------------------------------------- /buildid.dat: -------------------------------------------------------------------------------- 1 | 2011 2 | -------------------------------------------------------------------------------- /cmd/.config: -------------------------------------------------------------------------------- 1 | mode=user 2 | -------------------------------------------------------------------------------- /cmd/ossdevlinks/.config: -------------------------------------------------------------------------------- 1 | mode=sbin 2 | forgetos=BeOS 3 | forgetos=Haiku 4 | forgetos=VxWorks 5 | -------------------------------------------------------------------------------- /cmd/ossinfo/.config: -------------------------------------------------------------------------------- 1 | forgetos=VxWorks 2 | -------------------------------------------------------------------------------- /cmd/ossinfo/ossinfo.man: -------------------------------------------------------------------------------- 1 | NAME 2 | ossinfo - Open Sound System information/status program 3 | 4 | SYNOPSIS 5 | ossinfo [-Aaeghmpx] [-v #] 6 | 7 | DESCRIPTION 8 | The ossinfo program displays OSS device information. 9 | 10 | OPTIONS 11 | -v# Verbose output. Number indicates level of verobisity (0-9). 12 | -p Display only physical audio/midi devices 13 | -g Display ALL audio/midi/mixer devices (physical and virtual) 14 | -a Display audio device files 15 | -A Display audio device files (for applications using O_EXCL) 16 | -e Display all audio engines 17 | -m Display only the MIDI devices 18 | -x Display only the mixer devices 19 | -h Display help. 20 | 21 | FILES 22 | /usr/bin/ossinfo 23 | 24 | SEE ALSO 25 | ossdevlinks(1), ossmix(1), ossxmix(1) 26 | The Getting information about devices section of the OSS Programmer's Guide 27 | (device_discovery(2)) gives instructions for getting device information 28 | in applications. 29 | 30 | AUTHOR 31 | 4Front Technologies 32 | -------------------------------------------------------------------------------- /cmd/ossmix/.config: -------------------------------------------------------------------------------- 1 | forgetos=VxWorks 2 | -------------------------------------------------------------------------------- /cmd/ossmixd/.config: -------------------------------------------------------------------------------- 1 | mode=sbin 2 | ldflags=-L../../target/lib -lossmix 3 | forgetos=BeOS 4 | forgetos=VxWorks 5 | -------------------------------------------------------------------------------- /cmd/osspartysh/.config: -------------------------------------------------------------------------------- 1 | targetos=Linux 2 | targetos=FreeBSD 3 | ldflags=-lutil 4 | -------------------------------------------------------------------------------- /cmd/ossphone/.config: -------------------------------------------------------------------------------- 1 | ldflags=-lm 2 | forgetos=VxWorks 3 | -------------------------------------------------------------------------------- /cmd/ossphone/ossphone.man: -------------------------------------------------------------------------------- 1 | NAME 2 | ossphone - Open Sound System phone call program. 3 | 4 | SYNOPSIS 5 | ossphone [ -d devname ] [ -s rate ] [ -t duration ] [ -l duration ] 6 | mdmin-dev mdmout-dev [phone-number] 7 | 8 | DESCRIPTION 9 | ossphone connects your modem device to your audio device, allowing you to make 10 | phone calls using your computer. If a phone number is provided, ossphone will 11 | dial it using tone dialing (DTMF). 12 | 13 | NOTICE 14 | This utility only works in limited number of Laptops that have si3055 and 15 | compatible HDaudio modem chips. 16 | 17 | OPTIONS 18 | -d Select as the audio device (eg -d/dev/dsp2). 19 | -s Select the audio sampling rate (eg -s9600). 20 | -t Select as the DTMF digit duration in 21 | seconds (eg -t0.1). 22 | -l Select as the DTMF silence (between digits) 23 | duration in seconds (eg -t0.05). 24 | 25 | INTERRUPT 26 | Sending a SIGINT (Ctrl-C in most terminals) will make ossphone end the 27 | current phone call by setting the modem device on-hook. 28 | 29 | FILES 30 | /usr/bin/ossphone 31 | 32 | AUTHOR 33 | Paulo Matias 34 | -------------------------------------------------------------------------------- /cmd/ossplay/.config: -------------------------------------------------------------------------------- 1 | cflags=$OGGDEFINE 2 | ldflags=$DLOPENLDFLAGS 3 | forgetos=VxWorks 4 | -------------------------------------------------------------------------------- /cmd/ossplay/ossplay_console.h: -------------------------------------------------------------------------------- 1 | #ifndef _OSSPLAY_CONSOLE_H 2 | #define _OSSPLAY_CONSOLE_H 3 | 4 | #include 5 | #include 6 | 7 | typedef enum { 8 | ERRORM, 9 | HELPM, 10 | NORMALM, 11 | NOTIFYM, 12 | WARNM, 13 | STARTM, 14 | CONTM, 15 | ENDM, 16 | VERBOSEM 17 | } 18 | prtype_t; 19 | 20 | void clear_update (void); 21 | void ossplay_free (void *); 22 | void * ossplay_malloc (size_t); 23 | off_t ossplay_lseek_stdin (int, off_t, int); 24 | char * ossplay_strdup (const char *); 25 | #ifdef OGG_SUPPORT 26 | int ossplay_dlclose (void *); 27 | void * ossplay_dlopen (const char *); 28 | const char * ossplay_dlerror (void); 29 | int ossplay_vdlsym (void *, ...); 30 | #endif 31 | void perror_msg (const char * s); 32 | void print_msg (prtype_t, const char *, ...); 33 | void print_record_update (int, double, const char *, int); 34 | void print_update (int, double, const char *); 35 | char * totime (double); 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /cmd/ossplay/ossplay_decode.h: -------------------------------------------------------------------------------- 1 | #ifndef OSSPLAY_DECODE_H 2 | #define OSSPLAY_DECODE_H 3 | 4 | #include "ossplay.h" 5 | 6 | #define MAC_IMA_BLKLEN 34 7 | /* 8 | * ima4 block length in AIFC files. Qt has "stsd" chunk which can change this, 9 | * but I know of no AIFC equivalent. 10 | */ 11 | 12 | typedef struct verbose_values { 13 | char tstring[20]; 14 | double secs; 15 | double next_sec; 16 | double secs_timer2; 17 | double next_sec_timer2; 18 | double tsecs; 19 | double constant; 20 | int format; 21 | } 22 | verbose_values_t; 23 | 24 | errors_t decode_sound (dspdev_t *, int, big_t, int, int, int, void *); 25 | errors_t encode_sound (dspdev_t *, fctypes_t, const char *, int, int, int, 26 | double); 27 | int get_db_level (const unsigned char *, ssize_t, int); 28 | verbose_values_t * setup_verbose (int, double, double); 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /cmd/ossplay/ossplay_parser.h: -------------------------------------------------------------------------------- 1 | #ifndef OSSPLAY_PARSER_H 2 | #define OSSPLAY_PARSER_H 3 | 4 | #include "ossplay.h" 5 | 6 | errors_t play_file (dspdev_t *, const char *, dlopen_funcs_t **); 7 | 8 | #endif 9 | -------------------------------------------------------------------------------- /cmd/ossplay/ossplay_wparser.h: -------------------------------------------------------------------------------- 1 | #ifndef _OSSRECORD_WPARSER_H 2 | #define _OSSRECORD_WPARSER_H 3 | 4 | #include "ossplay.h" 5 | 6 | int write_head (FILE *, fctypes_t, big_t, int, int, int); 7 | int finalize_head (FILE *, fctypes_t, big_t, int, int, int); 8 | 9 | #ifdef OSS_BIG_ENDIAN 10 | #define BE_INT(x) x 11 | #define BE_SH(x) x 12 | #define LE_INT(x) bswap(x) 13 | #define LE_SH(x) bswaps(x) 14 | #else 15 | #define BE_INT(x) bswap(x) 16 | #define BE_SH(x) bswaps(x) 17 | #define LE_INT(x) x 18 | #define LE_SH(x) x 19 | #endif /* OSS_BIG_ENDIAN */ 20 | 21 | #endif 22 | -------------------------------------------------------------------------------- /cmd/ossrecord/.changelog: -------------------------------------------------------------------------------- 1 | 20080211 by Hannu: Added capability to record to stdout. 2 | 20080212 by Hannu: Added -a (amplification) option. 3 | -------------------------------------------------------------------------------- /cmd/osstest/.config: -------------------------------------------------------------------------------- 1 | cflags=-DSRC_SUPPORT 2 | forgetos=VxWorks 3 | -------------------------------------------------------------------------------- /cmd/ossxmix/.config: -------------------------------------------------------------------------------- 1 | cflags=$GTKCFLAGS 2 | ldflags=$GTKLDFLAGS 3 | depends=GTK 4 | forgetos=VxWorks 5 | -------------------------------------------------------------------------------- /cmd/ossxmix/gtkvu.h: -------------------------------------------------------------------------------- 1 | #ifndef __GTK_VU_H__ 2 | #define __GTK_VU_H__ 3 | 4 | #define COPYING2 Copyright (C) Hannu Savolainen and Dev Mazumdar 2000-2006. All rights reserved. 5 | 6 | #include 7 | #include 8 | #include 9 | 10 | 11 | #ifdef __cplusplus 12 | extern "C" 13 | { 14 | #endif /* __cplusplus */ 15 | 16 | 17 | #define GTK_VU(obj) GTK_CHECK_CAST (obj, gtk_vu_get_type (), GtkVU) 18 | #define GTK_VU_CLASS(klass) GTK_CHECK_CLASS_CAST (klass, gtk_vu_get_type (), GtkVUClass) 19 | #define GTK_IS_VU(obj) GTK_CHECK_TYPE (obj, gtk_vu_get_type ()) 20 | 21 | 22 | typedef struct _GtkVU GtkVU; 23 | typedef struct _GtkVUClass GtkVUClass; 24 | 25 | struct _GtkVU 26 | { 27 | GtkWidget widget; 28 | 29 | guint level; 30 | GdkGC *gc; 31 | GdkPixmap *pixmap; 32 | GdkColor colors[7]; 33 | 34 | }; 35 | 36 | struct _GtkVUClass 37 | { 38 | GtkWidgetClass parent_class; 39 | }; 40 | 41 | 42 | GtkWidget *gtk_vu_new (void); 43 | GtkType gtk_vu_get_type (void); 44 | void gtk_vu_set_level (GtkVU * vu, guint new_level); 45 | 46 | #ifdef __cplusplus 47 | } 48 | #endif /* __cplusplus */ 49 | 50 | 51 | #endif /* __GTK_VU_H__ */ 52 | -------------------------------------------------------------------------------- /cmd/savemixer/.config: -------------------------------------------------------------------------------- 1 | mode=sbin 2 | forgetos=VxWorks 3 | -------------------------------------------------------------------------------- /cmd/savemixer/savemixer.man: -------------------------------------------------------------------------------- 1 | NAME 2 | savemixer - Open Sound System program for saving and restoring mixer settings. 3 | 4 | SYNOPSIS 5 | savemixer [-LVv] [-f ] 6 | 7 | DESCRIPTION 8 | The savemixer program saves mixer settings. It can also load saved mixer 9 | settings back into the mixer. 10 | 11 | Running this program without any parameters will save the current mixer 12 | settings into /etc/oss/mixer.save or $OSSLIBDIR/etc/mixer.save file. 13 | OSSLIBDIR is decided by reading /etc/oss.conf, and defaults to /usr/lib/oss. 14 | 15 | AUTOMATIC SAVE 16 | By default the soundoff command will automatically run savemixer to save 17 | the active mixer settings. See the manual page for soundoff(1) if you 18 | like to turn this feature off. 19 | 20 | OPTIONS 21 | -f Use as setting file. 22 | -L Loads saved mixer and device map information from mixer.save. 23 | -V Version information. 24 | -v Verbose output. 25 | 26 | SEE ALSO 27 | soundoff(1), soundon(1), ossdetect(1), ossdevlinks(1), ossmix(1), ossxmix(1) 28 | 29 | FILES 30 | /etc/oss.conf 31 | /usr/sbin/savemixer 32 | /usr/lib/oss/etc/mixer.save 33 | /usr/lib/oss/etc/dspdevs.map 34 | /usr/lib/oss/etc/applist.conf 35 | 36 | AUTHOR 37 | 4Front Technologies 38 | -------------------------------------------------------------------------------- /cmd/vmixctl/.config: -------------------------------------------------------------------------------- 1 | mode=sbin 2 | forgetos=VxWorks 3 | -------------------------------------------------------------------------------- /contributions/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/contributions/.nomake -------------------------------------------------------------------------------- /contributions/README: -------------------------------------------------------------------------------- 1 | This directory contains contributions made by various developers. 2 | -------------------------------------------------------------------------------- /devlists/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/devlists/.nomake -------------------------------------------------------------------------------- /include/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/include/.nomake -------------------------------------------------------------------------------- /kernel/.config: -------------------------------------------------------------------------------- 1 | mode=kernelmode 2 | -------------------------------------------------------------------------------- /kernel/OS/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/kernel/OS/.nomake -------------------------------------------------------------------------------- /kernel/OS/BeOS/.config: -------------------------------------------------------------------------------- 1 | mode=kernel 2 | -------------------------------------------------------------------------------- /kernel/OS/FreeBSD/.config: -------------------------------------------------------------------------------- 1 | mode=kernel 2 | -------------------------------------------------------------------------------- /kernel/OS/Linux/.config: -------------------------------------------------------------------------------- 1 | mode=kernel 2 | -------------------------------------------------------------------------------- /kernel/OS/Linux/oss_ddi.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Solaris compatible partial DDI interface for OSS/Linux 3 | */ 4 | 5 | #define COPYING10 Copyright (C) Hannu Savolainen and Dev Mazumdar 2000-2006. All rights reserved. 6 | #ifndef NULL 7 | #define NULL 0 8 | #endif 9 | 10 | typedef int ddi_iblock_cookie_t; 11 | typedef int kmutex_t; 12 | typedef int cred_t; 13 | 14 | typedef int ddi_acc_handle_t; 15 | typedef int kcondvar_t; 16 | typedef int ddi_dma_handle_t; 17 | typedef int ddi_dma_cookie_t; 18 | typedef int ddi_dma_win_t; 19 | typedef int ddi_dma_seg_t; 20 | typedef int offset_t; 21 | typedef int ddi_info_cmd_t; 22 | typedef int ddi_attach_cmd_t; 23 | typedef int ddi_detach_cmd_t; 24 | 25 | #include 26 | 27 | typedef struct _ddi_dma_attr_t 28 | { 29 | #define DMA_ATTR_V0 0 30 | int a, b, c, d, e, f, g, h, i, j, k, l, m, n; 31 | } ddi_dma_attr_t; 32 | 33 | struct pollhead 34 | { 35 | int dummy; 36 | }; 37 | -------------------------------------------------------------------------------- /kernel/OS/Linux/wrapper/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/kernel/OS/Linux/wrapper/.nomake -------------------------------------------------------------------------------- /kernel/OS/SCO_SV/.config: -------------------------------------------------------------------------------- 1 | mode=kernel 2 | -------------------------------------------------------------------------------- /kernel/OS/SunOS/.config: -------------------------------------------------------------------------------- 1 | mode=kernel 2 | -------------------------------------------------------------------------------- /kernel/OS/VxWorks/.config: -------------------------------------------------------------------------------- 1 | mode=kernel 2 | -------------------------------------------------------------------------------- /kernel/OS/VxWorks/linux/ioctl.h: -------------------------------------------------------------------------------- 1 | /* 2 | * This file is currently required when cross compiling 3 | * for VxWorks under Linux. 4 | */ 5 | #include 6 | -------------------------------------------------------------------------------- /kernel/drv/.config: -------------------------------------------------------------------------------- 1 | mode=module 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ali5455/.devices: -------------------------------------------------------------------------------- 1 | oss_ali5455 pci10b9,5455 ALI M5455 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ali5455/.name: -------------------------------------------------------------------------------- 1 | ALI M5455 chipset 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ali5455/oss_ali5455.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_ali5455 - ALIM5455 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for onboard audio on ALI M5455 motherboards. This 6 | driver is very similar to the Intel ICH driver. 7 | 8 | ALI 5455 device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo/4/5.1 channel playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | None 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_ali5455.conf Device configuration file 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | -------------------------------------------------------------------------------- /kernel/drv/oss_atiaudio/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_atiaudio/.devices: -------------------------------------------------------------------------------- 1 | oss_atiaudio pci1002,4341 ATI IXP200 2 | oss_atiaudio pci1002,4361 ATI IXP300 3 | oss_atiaudio pci1002,4370 ATI IXP400 4 | -------------------------------------------------------------------------------- /kernel/drv/oss_atiaudio/.name: -------------------------------------------------------------------------------- 1 | ATI IXP motherboard audio 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_atiaudio/oss_atiaudio.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_atiaudio - ATI IXP southbridge audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for ATI IXP 150/200/250 audio controller 6 | ATI IXP device characteristics: 7 | o 8/16 bit playback/record 8 | o mono/stereo/4ch/5.1ch playback 9 | o 8KHz to 48Khz sample rate. 10 | 11 | OPTIONS 12 | None 13 | 14 | FILES 15 | CONFIGFILEPATH/oss_atiaudio.conf Device configuration file 16 | 17 | AUTHOR 18 | 4Front Technologies 19 | 20 | -------------------------------------------------------------------------------- /kernel/drv/oss_audigyls/.devices: -------------------------------------------------------------------------------- 1 | oss_audigyls pci1102,7 Sound Blaster Audigy LS / Live7.1 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audigyls/.name: -------------------------------------------------------------------------------- 1 | Sound Blaster Audigy LS / Live7.1 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audigyls/.params: -------------------------------------------------------------------------------- 1 | int audigyls_spdif_enable=0; 2 | /* 3 | * Set the Orange Jack to SPDIF or Analog output 4 | * Values 1=SPDIF 0=Analog (side-surround) Default=0 5 | */ 6 | 7 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiocs/.config: -------------------------------------------------------------------------------- 1 | platform=sparc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiocs/.devices: -------------------------------------------------------------------------------- 1 | oss_audiocs SUNW,CS4231 Sun UltraSparc workstation audio (CS4231) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiocs/.name: -------------------------------------------------------------------------------- 1 | Driver for older Sun UltraSparc workstations based on CS4231 codec 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiocs/oss_audiocs.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_audiocs - Cirrus Logic CS4231 driver for Sun Sparc Workstations 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Cirrus Logic (Crystal Semicoductor) CS4231 audio 6 | controller onboard the Sun Sparc workstatiosn 7 | 8 | CS4231 device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | None 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_audiocs.conf Device configuration file 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | 22 | -------------------------------------------------------------------------------- /kernel/drv/oss_audioloop/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | targetcpu=any 3 | -------------------------------------------------------------------------------- /kernel/drv/oss_audioloop/.devices: -------------------------------------------------------------------------------- 1 | oss_audioloop AUDIOLOOP OSS loopback audio driver 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audioloop/.name: -------------------------------------------------------------------------------- 1 | OSS loopback audio driver 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audioloop/.params: -------------------------------------------------------------------------------- 1 | int audioloop_instances=1; 2 | /* 3 | * audioloop_instances: Number of instances (client/server pairs) to create. 4 | */ 5 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiopci/.devices: -------------------------------------------------------------------------------- 1 | oss_audiopci pci1274,5000 Creative AudioPCI (ES1370) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiopci/.name: -------------------------------------------------------------------------------- 1 | Ensoniq/Creative AudioPCI (ES1370) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_audiopci/oss_audiopci.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_audiopci - Creative/Ensoniq Audiopci - ES1370 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Creative AudioPCI ES1370 (also sold as SBPCI128) 6 | audio controllers 7 | 8 | ES1370 device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | None 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_audiopci.conf Device configuration file 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | -------------------------------------------------------------------------------- /kernel/drv/oss_cmi878x/.devices: -------------------------------------------------------------------------------- 1 | oss_cmi878x pci13f6,8788 CMedia CMI8788 2 | oss_cmi878x pci1043,8269 Asus Xonar D2 3 | oss_cmi878x pci1043,834f Asus Xonar D1 4 | oss_cmi878x pci1043,8275 Asus Xonar DX 5 | oss_cmi878x pci1043,82b7 Asus Xonar D2X 6 | oss_cmi878x pci1043,838e Asus Xonar DS 7 | oss_cmi878x pci1043,835c Asus Xonar Essence STX 8 | 9 | -------------------------------------------------------------------------------- /kernel/drv/oss_cmi878x/.name: -------------------------------------------------------------------------------- 1 | CMedia CMI8788 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_cmpci/.devices: -------------------------------------------------------------------------------- 1 | oss_cmpci pci13f6,100 C-Media CM8338A 2 | oss_cmpci pci13f6,100 MIDIMan DiO 2448 3 | oss_cmpci pci13f6,101 CMedia CM8338B 4 | oss_cmpci pci13f6,111 CMedia CM8738/CM8768 5 | oss_cmpci pci14af,20 Guillemot Maxi Sound MUSE 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_cmpci/.name: -------------------------------------------------------------------------------- 1 | C-Media CM833x audio chipset 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs4281/.devices: -------------------------------------------------------------------------------- 1 | oss_cs4281 pci1013,6005 Crystal CS4281 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs4281/.name: -------------------------------------------------------------------------------- 1 | Crystal CS4281 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs4281/oss_cs4281.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_cs4281 - Cirrus Logic CS4281 driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Cirrus Logic (Crystal Semicoductor) CS4281 audio 6 | controller. 7 | 8 | CS4281 device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | None 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_cs4281.conf Device configuration file 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | 22 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs461x/.devices: -------------------------------------------------------------------------------- 1 | oss_cs461x pci1013,6001 Crystal CS4610 2 | oss_cs461x pci1013,6003 Crystal CS4280 3 | oss_cs461x pci1013,6004 Crystal CS4615 4 | oss_cs461x pcs153b,112e Terratec DMX Xfire 1024 5 | oss_cs461x pcs1681,50 Hercules Game Theater XP 6 | oss_cs461x pcs1681,51 Hercules Game Theater XP+ 7 | oss_cs461x pcs5053,3357 TurtleBeach SantaCruz / VideoLogic SonicFury 8 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs461x/.name: -------------------------------------------------------------------------------- 1 | Crystal CS461x/CS4280 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs461x/.params: -------------------------------------------------------------------------------- 1 | int cs461x_clkrun_fix=0; 2 | /* 3 | * Some IBM Thinkpads require a workaround for the CLKRUN protocol. 4 | * Values: 1=Enable 0=Disable Default: 0 5 | */ 6 | 7 | -------------------------------------------------------------------------------- /kernel/drv/oss_cs461x/oss_cs461x.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_cs461x - Cirrus Logic CS461x/CS4280 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Crystal Semiconductor (Cirrus Logic) CS4280 and 6 | 461x, audio controllers. 7 | 8 | CS4280 device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | o cs461x_clk_run_fix=0|1 (feature not used anylonger) 15 | Certain IBM Thinkpads required the CLK_RUN bit flipped in order to wake up 16 | the audio device. 17 | 18 | 19 | FILES 20 | CONFIGFILEPATH/oss_cs461x.conf Device configuration file 21 | 22 | AUTHOR 23 | 4Front Technologies 24 | 25 | -------------------------------------------------------------------------------- /kernel/drv/oss_digi96/.devices: -------------------------------------------------------------------------------- 1 | oss_digi96 pci10ee,3fc0 RME Digi96 2 | oss_digi96 pci10ee,3fc1 RME Digi96/8 3 | oss_digi96 pci10ee,3fc2 RME Digi96/8 PRO 4 | oss_digi96 pci10ee,3fc3 RME Digi96/8 PAD 5 | -------------------------------------------------------------------------------- /kernel/drv/oss_digi96/.name: -------------------------------------------------------------------------------- 1 | RME Digi96 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_emu10k1x/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_emu10k1x/.devices: -------------------------------------------------------------------------------- 1 | oss_emu10k1x pci1102,6 Creative Sound Blaster 5.1 (Dell) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_emu10k1x/.name: -------------------------------------------------------------------------------- 1 | Creative Sound Blaster 5.1 (Dell) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_emu10k1x/.params: -------------------------------------------------------------------------------- 1 | int emu10k1x_spdif_enable=0; 2 | /* 3 | * Enable SPDIF on Combo Jack 4 | * Values: 1=Enable 0=Disable Default: 0 5 | */ 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_emu10k1x/oss_emu10k1x.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_emu10k1x - Creative Labs P16x (EMU10K1X) driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Creative Labs SBLive 5.1 Dell OEM version 6 | soundcards. The device has a chipset called the EMU10K1X and is not the same 7 | as the SBLive EMU10K1/EMU10K2 audio processors found in the SBLive! and Audigy 8 | soundcards. 9 | 10 | EMU10K1X device characteristics: 11 | o 8/16/24 bit playback/record 12 | o mono/stereo/4/5.1 playback 13 | o 8KHz to 192Khz sample rate. 14 | 15 | OPTIONS 16 | o emu10k1x_spdif_enable=<0|1> 17 | The EMU10K1X has a versa-jack (orange) that can be set as SPDIF output 18 | or the Side-Surround left/right speakers in a 5.1 setup. 19 | When set as SPDIF, you can get play PCM/AC3 audio to a Dolby(R) capable 20 | receiver. 21 | 22 | FILES 23 | CONFIGFILEPATH/oss_emu10k1x.conf Device configuration file 24 | 25 | AUTHOR 26 | 4Front Technologies 27 | 28 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24/.devices: -------------------------------------------------------------------------------- 1 | oss_envy24 pci1412,1712 Generic ENVY24 based device 2 | oss_envy24 pcs1412,d630 M Audio Delta 1010 3 | oss_envy24 pcs1412,d631 M Audio Delta DiO 2496 4 | oss_envy24 pcs1412,d632 M Audio Delta 66 5 | oss_envy24 pcs1412,d633 M Audio Delta 44 6 | oss_envy24 pcs1412,d634 M Audio Audiophile 2496 7 | oss_envy24 pcs1412,d635 M Audio Delta TDIF 8 | oss_envy24 pcs1412,d638 M Audio Delta 410 9 | oss_envy24 pcs1412,d63b M Audio Delta 1010LT 10 | oss_envy24 pcs153b,1115 Terratec EWS88MT 11 | oss_envy24 pcs153b,112b Terratec EWS88D 12 | oss_envy24 pcs153b,1130 Terratec EWX 24/96 13 | oss_envy24 pcs153b,1138 Terratec DMX 6Fire 14 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24/.name: -------------------------------------------------------------------------------- 1 | VIA Envy24 (ICE1712) sound chipset 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24ht/.changelog: -------------------------------------------------------------------------------- 1 | 800802xx by Artem Antonov: Added support for ESI Juli@ 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24ht/.devices: -------------------------------------------------------------------------------- 1 | oss_envy24ht pci1412,1724 Generic ENVY24HT based sound card 2 | oss_envy24ht pcs1412,3630 M Audio Revolution 7.1 3 | oss_envy24ht pcs1412,3631 M Audio Revolution 5.1 4 | oss_envy24ht pcs1412,6321 M Audio Audiophile 192 5 | oss_envy24ht pcs153b,1145 Terratec Aureon 7.1 Space 6 | oss_envy24ht pcs153b,1147 Terratec Aureon 7.1 Sky 7 | oss_envy24ht pcs153b,1149 Terratec PHASE 28 8 | oss_envy24ht pcs153b,1153 Terratec Aureon 7.1 Universe 9 | oss_envy24ht pcs3031,4553 Ego Systems Juli@ *BETA* 10 | oss_envy24ht pcs4933,4553 Audiotrak Prodigy 7.1 11 | oss_envy24ht pcs3137,4154 Audiotrak Prodigy HD2 12 | oss_envy24ht pcs1412,2401 Audiotrak Prodigy HD2 Advance DE 13 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24ht/.name: -------------------------------------------------------------------------------- 1 | VIA Envy24HT/PT (ICE1724) sound chipset 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24ht/.params: -------------------------------------------------------------------------------- 1 | int envy24ht_model = -1; 2 | /* 3 | * Select the Model number if the card isn't autodetected 4 | * Values: 0 = Envy24ht 1=Envy24PT/HT-s compatible -1=Autodetect Default: -1 5 | */ 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_envy24ht/oss_envy24ht.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_envy24ht - VIA Envy24HT/PT audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Envy24HT, Envy24HT-S, Envy24PT based sound 6 | cards. 7 | 8 | Envy24HT device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo/4ch/5.1ch/7.1ch playback 11 | o mono/sterero recording 12 | o 8KHz to 192Khz sample rate. 13 | 14 | OPTIONS 15 | o envy24ht_model = -1|0|1 16 | Select the Model number if the card isn't autodetected 17 | Values: 0 = Envy24ht 1=Envy24PT/HT-s compatible -1=Autodetect Default: -1 18 | 19 | FILES 20 | CONFIGFILEPATH/oss_envy24ht.conf Device configuration file 21 | 22 | AUTHOR 23 | 4Front Technologies 24 | 25 | -------------------------------------------------------------------------------- /kernel/drv/oss_fmedia/.devices: -------------------------------------------------------------------------------- 1 | oss_fmedia pci1319,801 ForteMedia FM 801 2 | oss_fmedia pcs1489,7008 Genius Sound Maker Live 3 | -------------------------------------------------------------------------------- /kernel/drv/oss_fmedia/.name: -------------------------------------------------------------------------------- 1 | ForteMedia FM 801 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_fmedia/.params: -------------------------------------------------------------------------------- 1 | int fmedia_mpu_irq=0; 2 | /* 3 | * FM801 MPU IRQ 4 | * Values: 5,7,9,10,11 Default: 0 5 | */ 6 | 7 | -------------------------------------------------------------------------------- /kernel/drv/oss_fmedia/oss_fmedia.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_fmedia - Forte Media FM801 driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Forte Media FM801/FM801-AU audio controllers. 6 | 7 | FM801 device characteristics: 8 | o 8/16 bit playback/record 9 | o mono/stereo/4ch/5.1ch playback 10 | o mono/sterero recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | OPTIONS 14 | o fmedia_mpu_irq= 15 | Set the IRQ for the UART401 MPU. Refer to device conf file (see below) for 16 | valid IRQs. 17 | 18 | FILES 19 | CONFIGFILEPATH/oss_fmedia.conf Device configuration file 20 | 21 | AUTHOR 22 | 4Front Technologies 23 | 24 | -------------------------------------------------------------------------------- /kernel/drv/oss_geode/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_geode/.devices: -------------------------------------------------------------------------------- 1 | oss_geode pci100b,503 National Semiconductor Geode SC1200 2 | oss_geode pci1078,103 National Semiconductor Geode CS5530 3 | oss_geode pci1022,2093 AMD Geode CS5536 4 | -------------------------------------------------------------------------------- /kernel/drv/oss_geode/.name: -------------------------------------------------------------------------------- 1 | National Semiconductor Geode SC1200/CS5530/CS5536 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_geode/oss_geode.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_geode - National Semiconductor Geode audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for National Semiconductor Geode/CS5530/CS5536 audio 6 | controllers. 7 | 8 | Geode device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | NOTES 14 | Some old Geode CPUs are not able to handle heavy computational loads. 15 | If your audio streams are use a lot of CPU, you can start getting garbled audio 16 | since the OSS Sample Rate Convertor is CPU intensive. Setting vmix0-src to 17 | OFF will allow you to play audio but only at a fixed rate set via vmixctl 18 | (Default: 48Khz). 19 | 20 | FILES 21 | CONFIGFILEPATH/oss_geode.conf Device configuration file 22 | 23 | AUTHOR 24 | 4Front Technologies 25 | 26 | -------------------------------------------------------------------------------- /kernel/drv/oss_hdaudio/.changelog: -------------------------------------------------------------------------------- 1 | 20080111 by Hannu: Fixed problem of several jack widgets getting named as "lineout" 2 | 3 | 20080205 by Hannu: Improved support for systems with multiple codecs. 4 | 5 | 20080221 by Hannu: Changed default volumes in hdaudio_generic.c to be louder. Earlier the volumes were 80% now 90%. 6 | 7 | 8 | -------------------------------------------------------------------------------- /kernel/drv/oss_hdaudio/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_hdaudio/.name: -------------------------------------------------------------------------------- 1 | High Definition Audio (Azalia) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_hdaudio/.params: -------------------------------------------------------------------------------- 1 | int hdaudio_snoopy=0; 2 | /* 3 | * hdaudio_snopy is reserved for diagnostic purposes and it must be 0 4 | * in all situations. Other values may make the driver vulnerable to 5 | * DoS attacks. For security reasons only root can use this diagnostic 6 | * interface. 7 | */ 8 | int hdaudio_jacksense=0; 9 | /* 10 | * Setting hdaudio_jacksense=1 enables jack sensing mode when the 11 | * hdaudio driver is loaded. In this mode all I/O pin's that are not 12 | * in use will be disabled as well as the mixer controls that are related 13 | * with them. In this way the mixer/control panel will become more intuitive. 14 | * However OSS will need to be restarted with soundoff;soundon every time 15 | * new inputs or outputs are attached to the audio jacks. 16 | * 17 | * NOTE! hdaudio_jacksense=1 works only in some systems. Many laptops and 18 | * motherboards don't support jack sensing. 19 | */ 20 | int hdaudio_noskip=0; 21 | /* 22 | * Disable checks to skip unconnected jack. Values: 0-7, where value is a 23 | * bitmask - every bit disables another check. Can override hdaudio_jacksense. 24 | */ 25 | -------------------------------------------------------------------------------- /kernel/drv/oss_hdaudio/hdaudio_asus_m9.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: init handler for Asus m9. 3 | */ 4 | 5 | #define COPYING Copyright (C) 2008 Paulo Matias . Licensed to 4Front Technologies. 6 | 7 | /* Codec index is 0 */ 8 | /* Codec vendor 10ec:0260 */ 9 | /* HD codec revision 1.0 (4.0) (0x00100400) */ 10 | /* Subsystem ID 1025160d */ 11 | #include "oss_hdaudio_cfg.h" 12 | #include "hdaudio.h" 13 | #include "hdaudio_codec.h" 14 | #include "hdaudio_dedicated.h" 15 | #include "hdaudio_mixers.h" 16 | 17 | int 18 | hdaudio_asus_m9_mixer_init (int dev, hdaudio_mixer_t * mixer, int cad, int top_group) 19 | { 20 | DDB(cmn_err(CE_CONT, "hdaudio_asus_m9_mixer_init got called.\n")); 21 | 22 | corb_write (mixer, cad, 0x1b, 0, SET_EAPD, 0); 23 | 24 | return hdaudio_generic_mixer_init(dev, mixer, cad, top_group); 25 | } 26 | 27 | -------------------------------------------------------------------------------- /kernel/drv/oss_hdaudio/hdaudio_mixers.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Declarations of some functions and structures for HD audio mixers 3 | */ 4 | #define COPYING100 Copyright (C) Hannu Savolainen and Dev Mazumdar 1996-2005. All rights reserved. 5 | /* 6 | * Prototype definitions for dedicated HDAudio codec/mixer drivers. 7 | */ 8 | 9 | extern int hdaudio_generic_mixer_init (int dev, hdaudio_mixer_t * mixer, 10 | int cad, int group); 11 | -------------------------------------------------------------------------------- /kernel/drv/oss_ich/.changelog: -------------------------------------------------------------------------------- 1 | 20080115 by Dev: Added Nvidia MCP04 (10de:003a) model to driver/database 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ich/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ich/.devices: -------------------------------------------------------------------------------- 1 | oss_ich pci1022,7445 AMD 786 2 | oss_ich pci1022,746d AMD 8111 3 | oss_ich pci1039,7012 SiS 7012 4 | oss_ich pci10de,1b1 Nvidia nForce 5 | oss_ich pci10de,3a Nvidia MCP4 6 | oss_ich pci10de,6a Nvidia nForce2 7 | oss_ich pci10de,8a Nvidia CK8 8 | oss_ich pci10de,da Nvidia nForce3 9 | oss_ich pci10de,ea Nvidia CK8S 10 | oss_ich pci10de,59 Nvidia nForce4 11 | oss_ich pci10de,26b Nvidia MCP51 12 | oss_ich pci8086,2415 Intel AC97 (ICH) 13 | oss_ich pci8086,2425 Intel AC97 (ICH1) 14 | oss_ich pci8086,2445 Intel AC97 (ICH2) 15 | oss_ich pci8086,2485 Intel AC97 (ICH3) 16 | oss_ich pci8086,24c5 Intel AC97 (ICH4) 17 | oss_ich pci8086,24d5 Intel AC97 (ICH5) 18 | oss_ich pci8086,25a6 Intel AC97 (ESB) 19 | oss_ich pci8086,266e Intel AC97 (ICH6) 20 | oss_ich pci8086,27de Intel AC97 (ICH7) 21 | oss_ich pci8086,7195 Intel 440MX (440MX) 22 | -------------------------------------------------------------------------------- /kernel/drv/oss_ich/.name: -------------------------------------------------------------------------------- 1 | Intel ICH1-7, nVidia nForce, SiS7012, AMD8111/786 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ich/.params: -------------------------------------------------------------------------------- 1 | int intelpci_rate_tuning = 240; 2 | /* 3 | * Few broken motherboards had nonstandard crystal clocks that cause wrong 4 | * sampling rates. With such motherboards it was necessary to use 5 | * the intelpci_rate_tuning option to fix the rate. See the manual 6 | * for more info. 7 | */ 8 | int intelpci_force_mmio = 0; 9 | /* 10 | * intelpci_force_mmio forces the driver to use Memory Mapped IO 11 | * (some bioses don't provide I/O mapped addresses). 12 | */ 13 | int ich_jacksense = 0; 14 | /* 15 | * Force enabling jacksense on some AD198x mixers. 16 | */ 17 | -------------------------------------------------------------------------------- /kernel/drv/oss_ich/oss_ich.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_ich - Intel ICH/SiS7012/Nvidia/AMD audio device driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Intel ICH, nVidia Nforce, AMD and SiS 7012 6 | devices. 7 | 8 | OPTIONS 9 | 10 | o intelpci_rate_tuning= (default is 240) 11 | Some Compaq Deskpro models (EN and EX at least) and certain Dell models 12 | play and record audio at a higher speed than what is expected. If you have 13 | an Intel815 motherboard with an AD1885 you can try setting the parameter 14 | to 240, 280 or 330 and see which works for your system. The way to figure 15 | out the the right intelpci_rate_tuning value is using the osstest application. 16 | It reports a sample rate drift value ("Sample rate drift" or "srate drift"). 17 | Use the following formula (round the result to the nearest integer): 18 | 19 | 20 | 21 | o intelpci_force_mmio=<0|1> (default is 0=Disable) 22 | This option can be used to force the ICH4/ICH5 and ICH6 controllers to 23 | run in memory mapped mode to free up I/O address space. 24 | 25 | o ich_jacksense=<0|1> (default is 0) 26 | Force use of jacksensing on some AD198x mixers. 27 | 28 | FILES 29 | CONFIGFILEPATH/oss_ich.conf Device configuration file. 30 | 31 | 32 | AUTHOR 33 | 4Front Technologies 34 | 35 | -------------------------------------------------------------------------------- /kernel/drv/oss_imux/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | cflags=-O 3 | -------------------------------------------------------------------------------- /kernel/drv/oss_imux/.devices: -------------------------------------------------------------------------------- 1 | oss_imux oss_imux OSS Input Multiplexer 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_imux/.name: -------------------------------------------------------------------------------- 1 | OSS Input Multiplexer (IMUX) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_imux/.params: -------------------------------------------------------------------------------- 1 | /* 2 | * IMUX supports multiple instances, please consult the man page 3 | */ 4 | 5 | int imux_devices=5; 6 | /* 7 | * Number of IMUX client side devices to configure. 8 | * Values: 2-48 Default: 5. 9 | */ 10 | 11 | int imux_masterdev=-1; 12 | /* 13 | * Master physical device to use (ie attach IMUX to a specific soundcard) 14 | * -1 means automatically detect the device. Use the device index numbers 15 | * reported by ossinfo -a. 16 | * Values: 0-N Default: -1 (autodetec) 17 | */ 18 | 19 | int imux_rate=48000; 20 | /* 21 | * Select the base sampling rate for the IMUX device. The base rate must be 22 | * one supported by the actual physical device (as reported by audioinfo -a -v2). 23 | * Values: 8000-192000 Default: 48000 24 | */ 25 | -------------------------------------------------------------------------------- /kernel/drv/oss_madi/.devices: -------------------------------------------------------------------------------- 1 | oss_madi pci10ee,3fc6 RME MADI (not supported yet) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_madi/.name: -------------------------------------------------------------------------------- 1 | RME MADI Digital Interface 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_madi/.params: -------------------------------------------------------------------------------- 1 | int madi_maxchannels=64; 2 | /* 3 | * By default OSS will create device files for all 64 channels (32 stereo 4 | * pairs). Number of channels can be decreased by changing this parameter. 5 | */ 6 | int madi_devsize=2; 7 | /* 8 | * This parameter tells how the device files should be created for MADI 9 | * channels. By default (2) a device file will be created for each stereo 10 | * channel pair. Value of 1 means that separate device file will be 11 | * created for each channel. 12 | */ 13 | -------------------------------------------------------------------------------- /kernel/drv/oss_midiloop/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_midiloop/.devices: -------------------------------------------------------------------------------- 1 | oss_midiloop oss_midiloop OSS MIDI Loopback driver 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_midiloop/.name: -------------------------------------------------------------------------------- 1 | MIDI loopback pseudo device 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_midiloop/.params: -------------------------------------------------------------------------------- 1 | int midiloop_instances = 1; /* Number of loopback MIDI devs to install */ 2 | /* 3 | * midiloop_instances gives the number of MIDI loopback devices to be created. 4 | * The default value is 1 5 | */ 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_midimix/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_midimix/.name: -------------------------------------------------------------------------------- 1 | MIDI mixer pseudo device. 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sadasupport/.config: -------------------------------------------------------------------------------- 1 | bus=STREAMS 2 | targetos=SunOS 3 | depends=SADA 4 | -------------------------------------------------------------------------------- /kernel/drv/oss_sadasupport/.devices: -------------------------------------------------------------------------------- 1 | oss_sadasupport OSSAUDIOS SADA emulation layer for OSS 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sadasupport/.name: -------------------------------------------------------------------------------- 1 | SADA emulation layer for OSS 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sadasupport/.params: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/kernel/drv/oss_sadasupport/.params -------------------------------------------------------------------------------- /kernel/drv/oss_sadasupport/oss_sadasupport.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_sadasupport - Open Sound System to Sun "devaudio" converter driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver Solaris "devaudio" or "SADA" compatibility. 6 | This driver is a shim driver between SADA's audio core and amsrc2 (mixer) 7 | and the OSS audio core. Currently playback, recording and mixer controls 8 | of SADA/devaudio are supported by this driver. This driver essentially 9 | translates between SADA audio and OSS audio. It relies on SADA to keep 10 | track of complete audio information and then takes that information and 11 | translates it into OSS API. This way, OSS drivers can achieve a 99.9% 12 | emulation of SADA APIs. 13 | 14 | OPTIONS 15 | No configuration options defined for the current version. 16 | 17 | KNOWN PROBLEMS 18 | Mixer volume control (/dev/audioctl) emulation is very limited. It is only 19 | possible to change the playback volume. Use native OSS mixers such as 20 | ossxmix(1) for volume control and control panel functions. 21 | 22 | FILES 23 | CONFIGFILEPATH/oss_sadasupport.conf Device configuration file 24 | 25 | AUTHOR 26 | 4Front Technologies 27 | -------------------------------------------------------------------------------- /kernel/drv/oss_sblive/.devices: -------------------------------------------------------------------------------- 1 | oss_sblive pci1102,2 Creative Sound Blaster Live 2 | oss_sblive pcs1102,8040 Creative Sound Blaster Live 1024/Platinum 3 | oss_sblive pcs1102,8061 Creative Sound Blaster Live 5.1/Platinum IR 4 | oss_sblive pci1102,4 Creative Sound Blaster Audigy/Audigy2 5 | oss_sblive pcs1102,51 Creative Sound Blaster Audigy Platinum 6 | oss_sblive pci1102,8 Creative Sound Blaster Audigy2 Value/Audigy4 7 | oss_sblive pci1102,2001 Creative Sound Blaster Audigy2 ZS PCMCIA 8 | -------------------------------------------------------------------------------- /kernel/drv/oss_sblive/.name: -------------------------------------------------------------------------------- 1 | Creative Sound Blaster Live/Audigy 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sblive/.params: -------------------------------------------------------------------------------- 1 | int sblive_memlimit = 8; 2 | /* 3 | * Amount of memory allocated to SBLive Synth. 4 | * Values: 4-4096 (in megabytes). Default: 8MB 5 | */ 6 | 7 | int sblive_devices = 0; 8 | /* 9 | * Specifies number of audio output engines for SBLive/Audigy. 10 | * Changing this setting is not recommanded. 11 | * Values: 0, 5-32 12 | * Default: 0 (Use device dependent optimum value). 13 | */ 14 | 15 | int sblive_digital_din = 0; 16 | /* 17 | * Sets the SPDIF/Analog combo output to audio or spdif mode 18 | * Values: 1 = Digital, 0=Analog Default: 0 19 | */ 20 | 21 | int audigy_digital_din = 1; 22 | /* 23 | * Sets the SPDIF/Analog combo output to analog or spdif mode 24 | * Values: 1 = Digital, 0 = Analog Default: 1 25 | */ 26 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbpci/.devices: -------------------------------------------------------------------------------- 1 | oss_sbpci pci1102,8938 Creative Ectiva EV1938 2 | oss_sbpci pci1274,1371 Creative AudioPCI97 (ES1371/ES1373) 3 | oss_sbpci pci1274,5880 Creative Sound Blaster PCI128 (5880B) 4 | oss_sbpci pci1274,8001 Creative Sound Blaster PCI128 (CT5880) 5 | oss_sbpci pci1274,8002 Creative Sound Blaster PCI128 (5880A) 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbpci/.name: -------------------------------------------------------------------------------- 1 | Creative AudioPCI97 (ES1371/ES1373/EV1938) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbpci/.params: -------------------------------------------------------------------------------- 1 | int apci_latency=0; 2 | /* 3 | * Set the latency to 32, 64, 96, 128 clocks - some APCI97 devices exhibit 4 | * garbled audio in some cases and setting the latency to higer values fixes it 5 | * Values: 32, 64, 96, 128 - Default: 64 (or defined by bios) 6 | */ 7 | 8 | int apci_spdif=0; 9 | /* 10 | * Enable SPDIF port on SoundBlaster 128D or Sound Blaster Digital-4.1 models 11 | * Values: 1=Enable 0=Disable Default: 0 12 | */ 13 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbpci/oss_sbpci.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_sbpci - Creative Labs ES1371 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Creative Labs ES1371/ES1373/5880, Ectiva 1938 6 | audio controllers. 7 | 8 | APCI97 device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate 12 | 13 | APCI97 MIXER EXTENSIONS 14 | 15 | Dual Dac mode: This feature turns the APCI97 into two output devices with 16 | the output going to front and rear speakers independantly (however volume 17 | control is global). 18 | 19 | Speaker Mode: This feature allows you to either have the audio coming out 20 | the front speakers or you can have audio duplicated on rear speakers. This 21 | mode is disabled when Dual Dac mode is enabled. 22 | 23 | SPDIF: This button enables or disables SPDIF output. 24 | 25 | OPTIONS 26 | o apci97_latency= 27 | Certain models of the ES1371 sound devices will sound distorted playing stereo 28 | audio and setting the PCI latency fixes the problem 29 | 30 | o apci_spdif=0|1 31 | Certain models like the SB 4.1D/SB PCI128D have SPDIF output jacks and 32 | this setting enables the output device. 33 | 34 | FILES 35 | CONFIGFILEPATH/oss_sbpci.conf Device configuration file 36 | 37 | AUTHOR 38 | 4Front Technologies 39 | 40 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbxfi/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbxfi/.devices: -------------------------------------------------------------------------------- 1 | oss_sbxfi pci1102,5 Creative SB X-Fi 20K1 *EARLY BETA* 2 | oss_sbxfi pci1102,b Creative SB X-Fi 20K2 *EARLY BETA* 3 | #oss_sbxfi pci1102,9 Creative SB X-Fi PCI-e *EARLY BETA* 4 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbxfi/.name: -------------------------------------------------------------------------------- 1 | Creative Sound Blaster X-Fi 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbxfi/.params: -------------------------------------------------------------------------------- 1 | int sbxfi_type=0; 2 | /* 3 | * Override sbxfi autodetection. 4 | * Values: 0-4. Default: 0 5 | * 0 - Autodetect 6 | * 1 - Sound Blaster X-Fi (SB046x/067x/076x) 7 | * 2 - Sound Blaster X-Fi (SB073x) 8 | * 3 - Sound Blaster X-Fi (SB055x) 9 | * 4 - Sound Blaster X-Fi (UAA) 10 | * 5 - Sound Blaster X-Fi (SB0760) 11 | * 6 - Sound Blaster X-Fi (SB0880-1) 12 | * 7 - Sound Blaster X-Fi (SB0880-2) 13 | * 8 - Sound Blaster X-Fi (SB0880-3) 14 | */ 15 | 16 | -------------------------------------------------------------------------------- /kernel/drv/oss_sbxfi/oss_sbxfi.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_sbxfi - SoundBlaster X-Fi audio driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for the SoundBlaster X-Fi cards. 6 | 7 | OPTIONS 8 | o sbxfi_type Override X-Fi type autodetection. Values: 9 | 0 - Autodetect type 10 | 1 - Sound Blaster X-Fi (SB046x/067x/076x) 11 | 2 - Sound Blaster X-Fi (SB073x) 12 | 3 - Sound Blaster X-Fi (SB055x) 13 | 4 - Sound Blaster X-Fi (UAA) 14 | Default : 0. 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_sbxfi.conf Device configuration file. 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | -------------------------------------------------------------------------------- /kernel/drv/oss_solo/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_solo/.devices: -------------------------------------------------------------------------------- 1 | oss_solo pci125d,1969 ESS Solo-1 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_solo/.name: -------------------------------------------------------------------------------- 1 | ESS Solo-1 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_solo/oss_solo.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_solo - ESS Solo-1 audio driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for ESS Solo1/1938/1968 audio controllers. 6 | ESS Solo1 device characteristics: 7 | o 8/16 bit playback/record 8 | o mono/stereo playback/recording 9 | o 8KHz to 48Khz sample rate. 10 | 11 | OPTIONS 12 | None 13 | 14 | FILES 15 | CONFIGFILEPATH/oss_solo.conf Device configuration file 16 | 17 | AUTHOR 18 | 4Front Technologies 19 | 20 | -------------------------------------------------------------------------------- /kernel/drv/oss_trident/.devices: -------------------------------------------------------------------------------- 1 | oss_trident pci1023,2000 Trident 4DWave-DX 2 | oss_trident pci1023,2001 Trident 4DWave-NX 3 | oss_trident pci1023,2002 Trident 4DWave-CX 4 | oss_trident pci1039,7018 SiS 7018 5 | oss_trident pci10b9,5451 ALI M5451 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_trident/.name: -------------------------------------------------------------------------------- 1 | Trident 4DWave, SiS7018, ALI M5451 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_trident/.params: -------------------------------------------------------------------------------- 1 | int trident_mpu_ioaddr=0; 2 | /* 3 | * Trident MPU 401 I/O Address 4 | * Values: 0x300, 0x330 Default: 0x330 5 | */ 6 | 7 | -------------------------------------------------------------------------------- /kernel/drv/oss_trident/oss_trident.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_trident - SiS7018, 4Dwave, ALIM5451 audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Trident 4DWave DX/NX, SiS7018 and ALI5451 audio 6 | controllers. 7 | 8 | Trident device characteristics: 9 | o 8/16 bit playback/record 10 | o mono/stereo playback/recording 11 | o 8KHz to 48Khz sample rate. 12 | o Upto 8 hardware channels to mixing audio streams 13 | 14 | OPTIONS 15 | trident_mpu_ioaddr= 16 | Set the MPU I/O address. Refer to the driver.conf file for valid addresses. 17 | 18 | LIMITATIONS 19 | o Due to PCI addressing limitations any add-on cards based on these chips 20 | will not work under Sparc. The only exception is the ALI5451 chip that is 21 | used on the main boards on many Sparc based systems. 22 | 23 | FILES 24 | CONFIGFILEPATH/oss_trident.conf Device configuration file 25 | 26 | AUTHOR 27 | 4Front Technologies 28 | -------------------------------------------------------------------------------- /kernel/drv/oss_usb/.config: -------------------------------------------------------------------------------- 1 | bus=USB 2 | targetos=SunOS 3 | targetos=Linux 4 | -------------------------------------------------------------------------------- /kernel/drv/oss_usb/.name: -------------------------------------------------------------------------------- 1 | USB audio device support (BETA) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_usb/.params: -------------------------------------------------------------------------------- 1 | int usb_trace=0; 2 | int usb_mixerstyle=1; 3 | -------------------------------------------------------------------------------- /kernel/drv/oss_userdev/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | targetcpu=any 3 | -------------------------------------------------------------------------------- /kernel/drv/oss_userdev/.devices: -------------------------------------------------------------------------------- 1 | oss_userdev oss_userdev OSS user space audio driver I/O module 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_userdev/.name: -------------------------------------------------------------------------------- 1 | OSS loopback audio driver 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_userdev/.params: -------------------------------------------------------------------------------- 1 | int userdev_visible_clientnodes=0; 2 | /* 3 | * By default the oss_userdev driver will not create private device nodes 4 | * for the client side devices. Instead all client devices will share 5 | * the same device node (/dev/oss/oss_userdev/client). 6 | * 7 | * If userdev_visible_clientnodes is set to 1 then each oss_userdev instance 8 | * will have private device node (/dev/oss/oss_userdev0/pcmN) that can be 9 | * opened directly. This mode can be used when the oss_userdev driver is used 10 | * for multiple purposes in the same system. 11 | */ 12 | -------------------------------------------------------------------------------- /kernel/drv/oss_via823x/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_via823x/.devices: -------------------------------------------------------------------------------- 1 | oss_via823x pci1106,3059 VIA VT8233/8235/8237 2 | oss_via823x pci1106,4551 VIA VT5432B 3 | oss_via823x pci1106,7059 VIA VT8233A 4 | oss_via823x pcs1462,3800 MSI K7T266 5 | oss_via823x pcs1462,4720 MSI KT3 Ultra 6 | -------------------------------------------------------------------------------- /kernel/drv/oss_via823x/.name: -------------------------------------------------------------------------------- 1 | VIA VT8233/8235/8237 motherboard audio 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_via823x/oss_via823x.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_via823x - Open Sound System driver for VIA 8233/8235/8237 audio controllers. 3 | 4 | DESCRIPTION 5 | 6 | VIA823x device characteristics: 7 | o 8/16 bit playback/record 8 | o mono/stereo/4/5.1 (Dolby) playback 9 | o mono/stereo recording 10 | o 8KHz to 48Khz sample rate. 11 | o SPDIF input/output capability based on AC97 codec attech to the 12 | VIA823x controller. 13 | OPTIONS 14 | None 15 | 16 | FILES 17 | CONFIGFILEPATH/oss_via823x.conf Device configuration 18 | 19 | AUTHOR 20 | 4Front Technologies 21 | -------------------------------------------------------------------------------- /kernel/drv/oss_via97/.config: -------------------------------------------------------------------------------- 1 | platform=i86pc 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_via97/.devices: -------------------------------------------------------------------------------- 1 | oss_via97 pci1106,3058 VIA VT82C686 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_via97/.name: -------------------------------------------------------------------------------- 1 | VIA VT82C686 (via97) 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_via97/oss_via97.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_via97 - VIA 82C686 audio driver 3 | 4 | DESCRIPTION 5 | Open Sound System driver for VIA 82C686A and 82C686B audio controllers. 6 | 7 | VIA97 device characteristics: 8 | o 8/16 bit playback/record 9 | o mono/stereo playback/recording 10 | o 8KHz to 48Khz sample rate. 11 | 12 | OPTIONS 13 | None 14 | 15 | FILES 16 | CONFIGFILEPATH/oss_via97.conf Device configuration file. 17 | 18 | AUTHOR 19 | 4Front Technologies 20 | -------------------------------------------------------------------------------- /kernel/drv/oss_ymf7xx/.devices: -------------------------------------------------------------------------------- 1 | oss_ymf7xx pci1073,10 Yamaha DS-XG YMF744 2 | oss_ymf7xx pci1073,12 Yamaha DS-XG YMF754 3 | oss_ymf7xx pci1073,4 Yamaha DS-XG YMF724 4 | oss_ymf7xx pci1073,5 Yamaha DS-XG YMF734 5 | oss_ymf7xx pci1073,a Yamaha DS-XG YMF740 6 | oss_ymf7xx pci1073,c Yamaha DS-XG YMF740C 7 | oss_ymf7xx pci1073,d Yamaha DS-XG YMF724F 8 | -------------------------------------------------------------------------------- /kernel/drv/oss_ymf7xx/.name: -------------------------------------------------------------------------------- 1 | Yamaha DS-XG YMF7xx 2 | -------------------------------------------------------------------------------- /kernel/drv/oss_ymf7xx/.params: -------------------------------------------------------------------------------- 1 | int yamaha_mpu_ioaddr=0; 2 | /* 3 | * Yamaha DSXG MPU I/O Address 4 | * Values: 0x300, 0x330, 0x332, 0x334 Default: 0 5 | */ 6 | 7 | int yamaha_mpu_irq=0; 8 | /* 9 | * Yamaha DSXG MPU IRQ 10 | * Values: 5, 7, 9, 10, 11 Default: 0 11 | */ 12 | 13 | int yamaha_fm_ioaddr=0; 14 | /* 15 | * Yamaha DSXG FM IO Address 16 | * Values: 0x388, 0x398, 0x3a0, 0x3a8 Default: 0 17 | */ 18 | -------------------------------------------------------------------------------- /kernel/drv/oss_ymf7xx/oss_ymf7xx.man: -------------------------------------------------------------------------------- 1 | NAME 2 | oss_ymf7xx - Yamaha DS-XG audio driver. 3 | 4 | DESCRIPTION 5 | Open Sound System driver for Yamaha DS-XG YMF724/740/744/754 audio controllers. 6 | 7 | ymf7xx device characteristics: 8 | o 8/16 bit playback/record 9 | o mono/stereo/4 channel playback 10 | o mono/stereo recording 11 | o 8KHz to 48Khz sample rate. 12 | 13 | MIXER 14 | The Yamaha DSXG models 744 and 754 supports SPDIF and AC3 multichannel output 15 | and the Mixer extentions will allow you to enable/disable SPDIF output. 16 | 17 | CONFIG OPTIONS 18 | o yamaha_mpu_ioaddr= 19 | MPU I/O address. Refer to the device conf file (see below) for legal values. 20 | 21 | o yamaha_mpu_irq= 22 | MPU IRQ. Refer to device conf file (see below) for legal values 23 | 24 | o yamaha_fm_ioaddr= 25 | Yamaha FM SYnthesizer IO address. Refer to driver conf file (see below) for 26 | possible values. 27 | 28 | FILES 29 | CONFIGFILEPATH/oss_ymf7xx.conf Device configuration file 30 | 31 | AUTHOR 32 | 4Front Technologies 33 | 34 | -------------------------------------------------------------------------------- /kernel/drv/osscore/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | targetos=SunOS 3 | -------------------------------------------------------------------------------- /kernel/drv/osscore/.devices: -------------------------------------------------------------------------------- 1 | osscore OSSCORE OSS Core services 2 | -------------------------------------------------------------------------------- /kernel/drv/osscore/.name: -------------------------------------------------------------------------------- 1 | OSS Core services 2 | -------------------------------------------------------------------------------- /kernel/drv/osscore/osscore.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: OSS core pseudo driver (for Solaris) 3 | * 4 | * The osscore driver is used under Solaris to load the configuration settings 5 | * (osscore.conf) and to install the /dev/sndstat device. 6 | */ 7 | #define COPYING Copyright (C) Hannu Savolainen and Dev Mazumdar 2007. All rights reserved. 8 | 9 | #include "osscore_cfg.h" 10 | 11 | int 12 | osscore_attach (oss_device_t * osdev) 13 | { 14 | oss_register_device (osdev, "OSS common devices"); 15 | install_sndstat (osdev); 16 | install_dev_mixer (osdev); 17 | return 1; 18 | } 19 | 20 | int 21 | osscore_detach (oss_device_t * osdev) 22 | { 23 | if (oss_disable_device (osdev) < 0) 24 | return 0; 25 | 26 | oss_unregister_device (osdev); 27 | 28 | return 1; 29 | } 30 | -------------------------------------------------------------------------------- /kernel/framework/.config: -------------------------------------------------------------------------------- 1 | targetcpu=any 2 | -------------------------------------------------------------------------------- /kernel/framework/ac97/.config: -------------------------------------------------------------------------------- 1 | targetcpu=any 2 | -------------------------------------------------------------------------------- /kernel/framework/ac97/.params: -------------------------------------------------------------------------------- 1 | int ac97_amplifier=-1; 2 | /* 3 | * AC97 codecs have a control output for an external audio output amplifier 4 | * (necessary in some situations such as laptops). In some cases there may be 5 | * need to turn this amplifier off. 6 | * 7 | * ac97_amplifier=-1 enables autodetection (default). 8 | * ac97_amplifier=1 always enables the output amplifier stage. 9 | * ac97_amplifier=0 disables it. 10 | */ 11 | 12 | int ac97_recselect=0; 13 | /* 14 | * AC97 codecs support separate recording source selections for left and 15 | * right channels. This feature can be enabled but that may cause some 16 | * compatibility problems with certain applications. 17 | * 18 | * ac97_recselect=0 (default) selects common source selection for both channels. 19 | * ac97_recselect=1 enables independent source selections. 20 | */ 21 | -------------------------------------------------------------------------------- /kernel/framework/audio/.config: -------------------------------------------------------------------------------- 1 | targetcpu=any 2 | -------------------------------------------------------------------------------- /kernel/framework/include/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/kernel/framework/include/.nomake -------------------------------------------------------------------------------- /kernel/framework/include/midiparser.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Definitions for the MIDI message parser 3 | */ 4 | #define COPYING29 Copyright (C) Hannu Savolainen and Dev Mazumdar 1996-2007. All rights reserved. 5 | 6 | typedef struct midiparser_common midiparser_common_t, *midiparser_common_p; 7 | 8 | #define CAT_VOICE 0 9 | #define CAT_MTC 1 10 | #define CAT_SYSEX 2 11 | #define CAT_CHN 3 12 | #define CAT_REALTIME 4 13 | 14 | typedef void (*midiparser_callback_t) (void *context, int category, 15 | unsigned char msg, unsigned char ch, 16 | unsigned char *parms, int len); 17 | typedef void (*midiparser_mtc_callback_t) (void *context, 18 | oss_mtc_data_t * mtc); 19 | 20 | extern midiparser_common_p midiparser_create (midiparser_callback_t callback, 21 | void *comntext); 22 | extern void midiparser_unalloc (midiparser_common_p common); 23 | extern void midiparser_mtc_callback (midiparser_common_p common, 24 | midiparser_mtc_callback_t callback); 25 | 26 | extern void midiparser_input (midiparser_common_p common, unsigned char data); 27 | extern void midiparser_input_buf (midiparser_common_p common, 28 | unsigned char *data, int len); 29 | -------------------------------------------------------------------------------- /kernel/framework/include/oss_memblk.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: OSS memory block allocation and management routines. 3 | */ 4 | #define COPYING7 Copyright (C) Hannu Savolainen and Dev Mazumdar 2008. All rights reserved. 5 | 6 | typedef struct _oss_memblk_t oss_memblk_t; 7 | 8 | extern oss_memblk_t *oss_global_memblk; 9 | 10 | extern void *oss_memblk_malloc(oss_memblk_t **, int size); 11 | extern void oss_memblk_free(oss_memblk_t **, void *addr); 12 | extern void oss_memblk_unalloc(oss_memblk_t **); 13 | -------------------------------------------------------------------------------- /kernel/framework/include/oss_version.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: OSS version ID 3 | */ 4 | #include 5 | #include 6 | 7 | #ifndef OSS_LICENSE 8 | #define OSS_LICENSE "" /* Empty means commercial license */ 9 | #endif 10 | 11 | #define OSS_VERSION_ID "4.2" 12 | #define OSS_VERSION_STRING OSS_VERSION_ID " (b " OSS_BUILD_ID "/" OSS_COMPILE_DATE ")" 13 | #define OSS_INTERNAL_VERSION 0x040199 14 | -------------------------------------------------------------------------------- /kernel/framework/include/ossddk/oss_limits.PHh: -------------------------------------------------------------------------------- 1 | /* 2 | * Misc limits 3 | */ 4 | 5 | #ifdef __USE_PHPMAKE__ 6 | 27 | #else 28 | /* 29 | * Altrnative version for systems where Phpmake is not used 30 | */ 31 | #define MAX_MIXER_DEV 16 32 | #define MAX_MIDI_DEV 32 33 | #define MAX_TIMER_DEV (MAX_MIDI_DEV+4) 34 | #define HARD_MAX_AUDIO_DEVFILES 256 35 | #endif 36 | -------------------------------------------------------------------------------- /kernel/framework/include/remux.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Definitions for the audio remux engine 3 | * 4 | * This header file is to be included in all drivers that use the remux engine 5 | * for multi channel audio. 6 | */ 7 | 8 | #define COPYING17 Copyright (C) Hannu Savolainen and Dev Mazumdar 1996-2007. All rights reserved. 9 | 10 | extern void 11 | remux_install (char *name, oss_device_t * osdev, int frontdev, int reardev, 12 | int center_lfe_dev, int surrounddev); 13 | 14 | #define MAX_SUBDEVS 4 15 | 16 | typedef struct remux_devc 17 | { 18 | oss_device_t *osdev; 19 | oss_mutex_t mutex; 20 | 21 | int audio_dev; 22 | 23 | int n_physdevs; 24 | int physdev[MAX_SUBDEVS]; 25 | 26 | int maxchannels; 27 | struct fileinfo finfo[MAX_SUBDEVS]; 28 | 29 | int open_mode; 30 | int channels; 31 | int speed; 32 | } remux_devc; 33 | -------------------------------------------------------------------------------- /kernel/framework/include/uart401.h: -------------------------------------------------------------------------------- 1 | #ifndef UART401_H 2 | #define UART401_H 3 | /* 4 | * Purpose: Definitions for the MPU-401 (UART) support library 5 | */ 6 | 7 | #define COPYING18 Copyright (C) Hannu Savolainen and Dev Mazumdar 1996-2005. All rights reserved. 8 | 9 | #ifndef MIDI_CORE_H 10 | #include "midi_core.h" 11 | #endif 12 | 13 | /* 14 | * Purpose: Definitions for the MPU-401 UART driver 15 | */ 16 | 17 | typedef struct uart401_devc 18 | { 19 | oss_native_word base; 20 | int irq; 21 | oss_device_t *osdev; 22 | int running; 23 | oss_mutex_t mutex; 24 | oss_midi_inputbuf_t save_input_buffer; 25 | int opened, disabled; 26 | volatile unsigned char input_byte; 27 | int my_dev; 28 | int share_irq; 29 | } 30 | uart401_devc; 31 | 32 | extern int uart401_init (uart401_devc * devc, oss_device_t * osdev, int base, 33 | char *name); 34 | extern void uart401_irq (uart401_devc * devc); 35 | extern void uart401_disable (uart401_devc * devc); 36 | #endif 37 | -------------------------------------------------------------------------------- /kernel/framework/midi/.config: -------------------------------------------------------------------------------- 1 | configcheck=MIDI 2 | targetcpu=any 3 | -------------------------------------------------------------------------------- /kernel/framework/midi_stubs/.config: -------------------------------------------------------------------------------- 1 | configcheck=NO_MIDI 2 | -------------------------------------------------------------------------------- /kernel/framework/mixer/.config: -------------------------------------------------------------------------------- 1 | targetcpu=any 2 | -------------------------------------------------------------------------------- /kernel/framework/osscore/.config: -------------------------------------------------------------------------------- 1 | bus=VIRTUAL 2 | -------------------------------------------------------------------------------- /kernel/framework/remux/.config: -------------------------------------------------------------------------------- 1 | endian=LITTLE 2 | -------------------------------------------------------------------------------- /kernel/framework/sndstat/.config: -------------------------------------------------------------------------------- 1 | targetcpu=any 2 | -------------------------------------------------------------------------------- /kernel/framework/uart401/.config: -------------------------------------------------------------------------------- 1 | forgetcpu=armv5tel 2 | -------------------------------------------------------------------------------- /kernel/framework/vmix_core/.config: -------------------------------------------------------------------------------- 1 | configcheck=VMIX 2 | -------------------------------------------------------------------------------- /kernel/framework/vmix_core/db_scale.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: dB to linear conversion tables for vmix 3 | */ 4 | #define COPYING6 Copyright (C) Hannu Savolainen and Dev Mazumdar 2006. All rights reserved. 5 | 6 | /* 7 | * Attenuation table for dB->linear conversion. Indexed in steps of 0.5 dB. 8 | * Table size is 25 dB (first entry is handled as mute). 9 | */ 10 | 11 | #ifdef CONFIG_OSS_VMIX_FLOAT 12 | const float vmix_db_table[DB_SIZE + 1] = { 13 | 0.0 /* MUTE */ , 0.0035481, 0.0039811, 0.0044668, 0.0050119, 14 | 0.0056234, 0.0063096, 0.0070795, 0.0079433, 0.0089125, 15 | 0.01, 0.01122, 0.012589, 0.014125, 0.015849, 16 | 0.017783, 0.019953, 0.022387, 0.025119, 0.028184, 17 | 0.031623, 0.035481, 0.039811, 0.044668, 0.050119, 18 | 0.056234, 0.063096, 0.070795, 0.079433, 0.089125, 19 | 0.1, 0.1122, 0.12589, 0.14125, 0.15849, 20 | 0.17783, 0.19953, 0.22387, 0.25119, 0.28184, 21 | 0.31623, 0.35481, 0.39811, 0.44668, 0.50119, 22 | 0.56234, 0.63096, 0.70795, 0.79433, 0.89125, 23 | 1.0 /* Full level */ 24 | }; 25 | #else 26 | /* #define VMIX_VOL_SCALE moved to vmix.h */ 27 | const int vmix_db_table[DB_SIZE + 1] = { 28 | 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 29 | 1, 1, 1, 1, 2, 2, 2, 2, 3, 3, 30 | 4, 4, 5, 5, 6, 7, 8, 9, 10, 11, 31 | 12, 14, 16, 18, 20, 22, 25, 28, 32, 36, 32 | 40, 45, 50, 57, 64, 71, 80, 90, 101, 114, 33 | 128 34 | }; 35 | #endif 36 | -------------------------------------------------------------------------------- /kernel/framework/vmix_core/outexport_int.inc: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Local output buffer to device export routine for vmix (int) 3 | */ 4 | #define COPYING4 Copyright (C) Hannu Savolainen and Dev Mazumdar 2006-2007. All rights reserved. 5 | 6 | int i, ch, och; 7 | int vol; 8 | 9 | #define RANGE_MAX ((1<<24)-1) 10 | #define RANGE_MIN -(1<<24) 11 | 12 | vol = vmix_db_table[eng->outvol / 5]; 13 | 14 | for (ch = 0; ch < channels; ch++) 15 | { 16 | int vu; 17 | int *chbuf; 18 | 19 | och = eng->channel_order[ch]; 20 | op = (SAMPLE_TYPE *) outbuf; 21 | op += och; 22 | 23 | chbuf = chbufs[ch]; 24 | 25 | vu = eng->vu[och % 2]; 26 | vu = vu * 65536; 27 | 28 | for (i = 0; i < samples; i++) 29 | { 30 | int tmp; 31 | 32 | tmp = *chbuf++; 33 | 34 | tmp = (tmp * vol) / VMIX_VOL_SCALE; 35 | 36 | /* 37 | * Check for clipping. Decrease volume if necessary. 38 | */ 39 | if (tmpoutvol -= 1; 43 | vol /= 2; 44 | } 45 | else 46 | if (tmp>RANGE_MAX) 47 | { 48 | tmp=RANGE_MAX; 49 | eng->outvol -= 1; 50 | vol /= 2; 51 | } 52 | 53 | *op = VMIX_BYTESWAP(INT_EXPORT(tmp)); 54 | op += channels; 55 | 56 | /* VU meter */ 57 | if (tmp < 0) 58 | tmp = -tmp; 59 | if (tmp > vu) 60 | vu = tmp; 61 | } 62 | 63 | if (och < 2) 64 | { 65 | vu = vu / 65536; 66 | eng->vu[och] = vu; 67 | } 68 | } 69 | -------------------------------------------------------------------------------- /kernel/framework/vmix_core/vmix_import.inc: -------------------------------------------------------------------------------- 1 | #ifdef CONFIG_OSS_VMIX_FLOAT 2 | /* 3 | * Purpose: Recording device to local input buffer import routine for vmix 4 | */ 5 | #define COPYING3 Copyright (C) Hannu Savolainen and Dev Mazumdar 2006-2007. All rights reserved. 6 | 7 | int i, ch; 8 | float vol; 9 | 10 | vol = vmix_db_table[eng->outvol / 5]; 11 | 12 | for (ch = 0; ch < channels; ch++) 13 | { 14 | float vu; 15 | float *chbuf; 16 | 17 | vu = eng->vu[ch % 2]; 18 | vu = vu / 255.0; 19 | 20 | op = (SAMPLE_TYPE *) inbuf; 21 | op += ch; 22 | 23 | chbuf = chbufs[ch]; 24 | 25 | for (i = 0; i < samples; i++) 26 | { 27 | float tmp; 28 | 29 | #if 0 && defined(SINE_DEBUG) 30 | /* Generate internal sine wave test signal */ 31 | tmp = 0; 32 | if (ch < 2) 33 | { 34 | tmp = sine_table[sine_phase[ch]]; 35 | sine_phase[ch] = (sine_phase[ch] + 1) % SINE_SIZE; 36 | } 37 | #else 38 | tmp = VMIX_BYTESWAP (*op); 39 | tmp /= SAMPLE_RANGE; 40 | tmp *= vol; 41 | 42 | if (tmp < -1.0) 43 | tmp = -1.0; 44 | else if (tmp > 1.0) 45 | tmp = 1.0; 46 | 47 | #endif 48 | op += channels; 49 | 50 | *chbuf++ = tmp; 51 | 52 | /* VU meter */ 53 | if (tmp < 0.0) 54 | tmp = -tmp; 55 | if (tmp > vu) 56 | vu = tmp; 57 | } 58 | 59 | if (ch < 2) 60 | { 61 | vu = vu * 255.0; 62 | eng->vu[ch] = (int)vu; 63 | } 64 | } 65 | #else 66 | #include "vmix_import_int.inc" 67 | #endif 68 | -------------------------------------------------------------------------------- /kernel/framework/vmix_core/vmix_import_int.inc: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Recording device to local input buffer import routine for vmix (int) 3 | */ 4 | #define COPYING3 Copyright (C) Hannu Savolainen and Dev Mazumdar 2006-2007. All rights reserved. 5 | 6 | int i, ch; 7 | int vol; 8 | 9 | vol = vmix_db_table[eng->outvol / 5]; 10 | 11 | for (ch = 0; ch < channels; ch++) 12 | { 13 | int vu; 14 | int *chbuf; 15 | 16 | vu = eng->vu[ch % 2] * 65536; 17 | 18 | op = (SAMPLE_TYPE *) inbuf; 19 | op += ch; 20 | 21 | chbuf = chbufs[ch]; 22 | 23 | for (i = 0; i < samples; i++) 24 | { 25 | int tmp; 26 | 27 | tmp = INT_IMPORT (VMIX_BYTESWAP (*op)); 28 | tmp = (tmp * vol) / VMIX_VOL_SCALE; 29 | 30 | op += channels; 31 | 32 | *chbuf++ = tmp; 33 | 34 | /* VU meter */ 35 | if (tmp < 0) 36 | tmp = -tmp; 37 | if (tmp > vu) 38 | vu = tmp; 39 | } 40 | 41 | if (ch < 2) 42 | { 43 | vu = vu / 65536; 44 | eng->vu[ch] = vu; 45 | } 46 | } 47 | -------------------------------------------------------------------------------- /lib/.config: -------------------------------------------------------------------------------- 1 | mode=user 2 | -------------------------------------------------------------------------------- /lib/libOSSlib/.config: -------------------------------------------------------------------------------- 1 | mode=shlib 2 | targetos=Linux 3 | -------------------------------------------------------------------------------- /lib/libOSSlib/.nativemake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/lib/libOSSlib/.nativemake -------------------------------------------------------------------------------- /lib/libOSSlib/Makefile: -------------------------------------------------------------------------------- 1 | OBJS=libmain.o midiparser.o play_event.o 2 | INSTALLLIB=/lib 3 | LDFLAGS=-shared -fPIC 4 | CFLAGS=-O -fPIC 5 | #LDFLAGS=-Bdynamic 6 | AROPTS=rc 7 | AR=ar 8 | 9 | all: 10 | sh ./compile.sh $(INSTALLLIB) "$(CC)" "$(CFLAGS)" "$(MAKE)" 11 | 12 | install: all 13 | cp libOSSlib.* $(INSTALLLIB) 14 | cp drums.o3 std.o3 /etc 15 | 16 | static: libOSSlib.a 17 | cp libOSSlib.a $(INSTALLLIB) 18 | 19 | libOSSlib.so: $(OBJS) 20 | ${CC} $(LDFLAGS) -o libOSSlib.so $(OBJS) 21 | 22 | dep: 23 | 24 | clean: 25 | rm -f *.o *.so x y z core *.a 26 | 27 | libOSSlib.a: $(OBJS) 28 | $(AR) $(AROPTS) libOSSlib.a $(OBJS) 29 | #-ranlib libOSSlib.a 30 | -------------------------------------------------------------------------------- /lib/libOSSlib/compile.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | MAKE=$4 3 | 4 | case `uname` in 5 | 6 | "Linux") 7 | $MAKE libOSSlib.so 8 | ;; 9 | 10 | "FreeBSD") 11 | $MAKE libOSSlib.so 12 | ;; 13 | 14 | "OSF1") 15 | $MAKE libOSSlib.a CFLAGS="" 16 | ;; 17 | 18 | "NetBSD") 19 | $MAKE libOSSlib.a CFLAGS="" 20 | ;; 21 | 22 | "OpenBSD") 23 | $MAKE libOSSlib.a CFLAGS="" 24 | ;; 25 | 26 | "BSD/OS") 27 | $MAKE libOSSlib.a CFLAGS="" 28 | ;; 29 | 30 | "AIX") 31 | $MAKE libOSSlib.a CFLAGS="" 32 | ;; 33 | 34 | "HP-UX") 35 | $MAKE libOSSlib.a CC=$2 CFLAGS=$3 36 | ;; 37 | 38 | "LynxOS") 39 | $MAKE AROPTS=rcs libOSSlib.a CFLAGS="" 40 | ;; 41 | 42 | "UNIX_SV") 43 | $MAKE libOSSlib.a CFLAGS="" 44 | ;; 45 | 46 | "UnixWare") 47 | $MAKE libOSSlib.a CFLAGS="" 48 | ;; 49 | 50 | "OpenUNIX") 51 | $MAKE libOSSlib.a CFLAGS="" 52 | ;; 53 | 54 | "SCO_SV") 55 | $MAKE libOSSlib.a INSTALLLIB="$1" CFLAGS="" 56 | ;; 57 | 58 | "SunOS") 59 | $MAKE libOSSlib.a CFLAGS="" 60 | ;; 61 | 62 | "PowerMAX_OS") 63 | $MAKE libOSSlib.a CFLAGS="" 64 | ;; 65 | "DragonFly") 66 | $MAKE libOSSlib.a CFLAGS="" 67 | ;; 68 | 69 | "BeOS"|"Haiku") 70 | $MAKE libOSSlib.a CFLAGS="" 71 | ;; 72 | 73 | *) 74 | echo Can\'t recognize your operating system '('`uname`')'. 75 | echo;echo 76 | echo use $MAKE libOSSlib.so or $MAKE libOSSlib.a to build OSSlib 77 | exit 0 78 | 79 | esac 80 | 81 | exit 0 82 | -------------------------------------------------------------------------------- /lib/libOSSlib/midiparser.h: -------------------------------------------------------------------------------- 1 | #include "../../kernel/framework/include/midiparser.h" 2 | -------------------------------------------------------------------------------- /lib/libossmix/.config: -------------------------------------------------------------------------------- 1 | mode=shlib 2 | forgetos=BeOS 3 | forgetos=VxWorks 4 | -------------------------------------------------------------------------------- /lib/libossmix/libossmix_impl.h: -------------------------------------------------------------------------------- 1 | #define COPYING3 Copyright (C) Hannu Savolainen and Dev Mazumdar 2014. All rights reserved. 2 | 3 | extern int mixlib_trace; 4 | 5 | typedef struct 6 | { 7 | int (*connect) (const char *hostname, int port); 8 | int (*get_fd) (ossmix_select_poll_t * cb); 9 | void (*disconnect) (void); 10 | void (*enable_events) (void); 11 | int (*get_nmixers) (void); 12 | int (*get_mixerinfo) (int mixernum, oss_mixerinfo * mi); 13 | int (*open_mixer) (int mixernum); 14 | void (*close_mixer) (int mixernum); 15 | int (*get_nrext) (int mixernum); 16 | int (*get_nodeinfo) (int mixernum, int node, oss_mixext * ext); 17 | int (*get_enuminfo) (int mixernum, int node, oss_mixer_enuminfo * ei); 18 | int (*get_description) (int mixernum, int node, oss_mixer_enuminfo * desc); 19 | int (*get_value) (int mixernum, int ctl, int timestamp); 20 | void (*set_value) (int mixernum, int ctl, int timestamp, int value); 21 | void (*timertick)(void); 22 | } ossmix_driver_t; 23 | 24 | extern ossmix_driver_t ossmix_local_driver, ossmix_tcp_driver; 25 | extern void _client_event (int cmd, int p1, int p2, int p3, int p4, int p5); 26 | extern int _ossmix_refresh_mixer(int mixernum, int prev_nmixers); 27 | -------------------------------------------------------------------------------- /lib/libsalsa/.config: -------------------------------------------------------------------------------- 1 | targetos=Linux 2 | depends=ALSA 3 | -------------------------------------------------------------------------------- /lib/libsalsa/.nativemake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/lib/libsalsa/.nativemake -------------------------------------------------------------------------------- /misc/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/misc/.nomake -------------------------------------------------------------------------------- /misc/man1m/soundoff.man: -------------------------------------------------------------------------------- 1 | NAME 2 | soundoff - Stop Open Sound System 3 | 4 | DESCRIPTION 5 | 6 | The soundoff command can be used to stop Open Sound System and to unload the 7 | kernel modules related with it. 8 | 9 | There are no command line arguments. Only the super user (root) can use this 10 | command. 11 | 12 | Open Sound System can be loaded by executing the soundon command. 13 | 14 | SAVING THE MIXER AND CONTROL PANEL SETTINGS AUTOMATICALLY 15 | 16 | By default soundoff will save the current mixer and control panel settings 17 | automatically each time soundoff is executed. The saved settings will be 18 | restored automatically when soundon is executed next time. 19 | 20 | This automatic save feature can be disabled by editing /usr/lib/oss/etc/userdefs 21 | and by changing the line containing "autosave_mixer yes" to 22 | "autosave_mixer no". After this the mixer settings will only be saved when 23 | the savemixer command is executed (by super user). 24 | 25 | FILES 26 | /usr/lib/oss/etc/userdefs 27 | /usr/sbin/soundoff 28 | /usr/lib/oss/etc/installed_drivers. 29 | 30 | SEE ALSO 31 | soundon(1) 32 | ossdetect(1) 33 | ossdevlinks(1) 34 | 35 | AUTHOR 36 | 4Front Technologies 37 | -------------------------------------------------------------------------------- /misc/man1m/soundon.man: -------------------------------------------------------------------------------- 1 | NAME 2 | soundon - Start Open Sound System 3 | 4 | DESCRIPTION 5 | 6 | The soundon command is used to load the OSS core module (osscore) and the 7 | low level drivers for the sound devices detected in ths system (by ossdetect). 8 | The list of low level sound device drivers to load is located in 9 | /usr/lib/oss/etc/installed_drivers which is maintained by the ossdetect command. 10 | 11 | There are no command line arguments. Only the super user (root) can use this 12 | command. 13 | 14 | Open Sound System can be unloaded by executing the soundoff command. 15 | 16 | FILES 17 | /usr/sbin/soundon 18 | /usr/lib/oss/etc/installed_drivers. 19 | 20 | SEE ALSO 21 | soundoff(1) 22 | ossdetect(1) 23 | ossdevlinks(1) 24 | 25 | AUTHOR 26 | 4Front Technologies 27 | -------------------------------------------------------------------------------- /misc/man7/midi.man: -------------------------------------------------------------------------------- 1 | NAME 2 | midi - Open Sound System MIDI devices 3 | 4 | DESCRIPTION 5 | MIDI support is not included in OSS 4.0. It will be introduced in the future OSS 6 | versions. 7 | 8 | PROGRAMMING INFORMATION 9 | See the OSS MIDI Programming section of the OSS Programmer's Guide (MIDI(2)) 10 | for more info. 11 | 12 | OPTIONS 13 | None 14 | 15 | FILES 16 | /dev/midi is the default MIDI device file in the system. 17 | 18 | AUTHOR 19 | 4Front Technologies 20 | 21 | -------------------------------------------------------------------------------- /misc/man7/mixer.man: -------------------------------------------------------------------------------- 1 | NAME 2 | mixer - Open Sound System mixer (control panel) device 3 | 4 | DESCRIPTION 5 | Mixer devices are used by control panel and mixer programs (such as ossxmix(1)) 6 | to change volumes and other settings of the sound cards in the system. 7 | 8 | PROGRAMMING INFORMATION 9 | See the OSS Mixer Programming section of the OSS Programmer's Guide (MIXER(2)) 10 | for more info. 11 | 12 | OPTIONS 13 | None 14 | 15 | FILES 16 | /dev/mixer is the default mixer device file in the system. 17 | 18 | AUTHOR 19 | 4Front Technologies 20 | 21 | -------------------------------------------------------------------------------- /misc/man9ossddk/TODO: -------------------------------------------------------------------------------- 1 | ossddk_create_stringlist.9ossddk # For rec/play src/target names 2 | 3 | ossddk_mixer_create_control.9ossddk 4 | ossddk_mixer_set_strings.9ossddk 5 | ossddk_mixer_touch.9ossddk 6 | ossddk_mixer_truncate.9ossddk 7 | 8 | ossddk_ac97_install.9ossddk 9 | ossddk_ac97_is_varrate.9ossddk 10 | ossddk_ac97_remove.9ossddk 11 | ossddk_ac97_set_ext_init.9ossddk 12 | ossddk_ac97_set_playrate.9ossddk 13 | ossddk_ac97_set_recrate.9ossddk 14 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_ac97_is_varrate.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_ac97_is_varrate 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_ac97_is_varrate \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_ac97_is_varrate(\fBac97_handle_t * \fIac97handle\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIac97handle\fR 26 | .in +16n 27 | .rt 28 | AC97 device handle returned by ossddk_ac97_install(9ossddk). 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | TODO 34 | .PP 35 | .SH "SEE ALSO" 36 | .PP 37 | \fIWriting Sound Device Drivers with OSS DDK\fR 38 | \fIOpen Sound System Programmer's Guide\fR 39 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_ac97_remove.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_ac97_remove 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_ac97_remove \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_ac97_remove(\fBac97_handle_t * \fIac97handle\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIac97handle\fR 26 | .in +16n 27 | .rt 28 | AC97 device handle returned by ossddk_ac97_install(9ossddk). 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | TODO 34 | .PP 35 | .SH "SEE ALSO" 36 | .PP 37 | \fIWriting Sound Device Drivers with OSS DDK\fR 38 | \fIOpen Sound System Programmer's Guide\fR 39 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_ac97_set_ext_init.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_ac97_set_ext_init 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_ac97_set_ext_init \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_ac97_set_ext_init(\fBac97_handle_t * \fIac97handle\fP, \fBmixer_create_controls_t \fIfunc\fP, \fBint \fInextra\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIac97handle\fR 26 | .in +16n 27 | .rt 28 | AC97 device handle returned by ossddk_ac97_install(9ossddk). 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIfunc\fR 34 | .in +16n 35 | .rt 36 | TODO func 37 | .in -16n 38 | .sp 39 | .ne 2 40 | .mk 41 | \fB\fInextra\fR 42 | .in +16n 43 | .rt 44 | TODO nextra 45 | .in -16n 46 | .PP 47 | .SH "DESCRIPTION" 48 | .PP 49 | TODO 50 | .PP 51 | .SH "SEE ALSO" 52 | .PP 53 | \fIWriting Sound Device Drivers with OSS DDK\fR 54 | \fIOpen Sound System Programmer's Guide\fR 55 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_ac97_set_playrate.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_ac97_set_playrate 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_ac97_set_playrate \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_ac97_set_playrate(\fBac97_handle_t * \fIac97handle\fP, \fBint \fIsrate\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIac97handle\fR 26 | .in +16n 27 | .rt 28 | AC97 device handle returned by ossddk_ac97_install(9ossddk). 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIsrate\fR 34 | .in +16n 35 | .rt 36 | Sampling rate in HZ. 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | TODO 42 | .PP 43 | .SH "SEE ALSO" 44 | .PP 45 | \fIWriting Sound Device Drivers with OSS DDK\fR 46 | \fIOpen Sound System Programmer's Guide\fR 47 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_ac97_set_recrate.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_ac97_set_recrate 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_ac97_set_recrate \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_ac97_set_recrate(\fBac97_handle_t * \fIac97handle\fP, \fBint \fIsrate\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIac97handle\fR 26 | .in +16n 27 | .rt 28 | AC97 device handle returned by ossddk_ac97_install(9ossddk). 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIsrate\fR 34 | .in +16n 35 | .rt 36 | Sampling rate in HZ. 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | TODO 42 | .PP 43 | .SH "SEE ALSO" 44 | .PP 45 | \fIWriting Sound Device Drivers with OSS DDK\fR 46 | \fIOpen Sound System Programmer's Guide\fR 47 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_get_devc.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_adev_get_devc 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_adev_get_devc \- Returns the devc pointer for this audio device 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid*\fR ossddk_adev_get_devc(\fBint \fIdev\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS device number. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | This function returns the devc pointer used when creating this audio device using 34 | ossddk_install_audiodev(9ossddk). 35 | .PP 36 | CAUTION! Extreme care must be taken in drivers that drive both mixer and audio 37 | device files. Both types of devices have different functions for getting 38 | the devc pointer. Drivers must use ossddk_adev_get_devc with audio device 39 | numbers and ossddk_mixer_get_devc with mixer device numbers. 40 | .PP 41 | .SH "RETURN VALUES" 42 | The devc pointer. 43 | .PP 44 | .SH "SEE ALSO" 45 | .PP 46 | \fIWriting Sound Device Drivers with OSS DDK\fR 47 | \fIOpen Sound System Programmer's Guide\fR 48 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_get_portc_play.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_adev_get_portc.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_get_portc_record.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_adev_get_portc.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_set_devc.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_adev_set_devc 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_adev_set_devc \- Set the devc pointer of an audio device 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_adev_set_devc(\fBint \fIdev\fP, \fBvoid *\fIdevc\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS audio device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIdevc\fR 34 | .in +16n 35 | .rt 36 | Pointer to driver defined device instance data. 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | The devc pointer of an audio device points to the data structure where the driver 42 | stores it's per-card information. The driver can store a pointer to this structure 43 | in the audio device and obtain it later in the callback functions. 44 | Usually the driver sets the devc pointer when calling ossddk_install_audiodev. However 45 | it is possible to change this pointer later with this function. 46 | .PP 47 | .SH "SEE ALSO" 48 | .PP 49 | \fIWriting Sound Device Drivers with OSS DDK\fR 50 | \fIOpen Sound System Programmer's Guide\fR 51 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_set_portc.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_adev_get_portc.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_set_portc_play.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_adev_get_portc.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_set_portc_record.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_adev_get_portc.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_adev_set_portnum.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_adev_set_portnum 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_adev_set_portnum \- Set the audio port number within a device 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_adev_set_portnum(\fBint \fIdev\fP, \fBint \fIportnum\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS audio device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIportnum\fR 34 | .in +16n 35 | .rt 36 | Audio port number (0 to N). 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | Some sound cards may have multiple audio devices. In such cases the driver should 42 | call this function to set the port number. Port number 0 is the first port and so on. 43 | .PP 44 | .SH "SEE ALSO" 45 | .PP 46 | \fIWriting Sound Device Drivers with OSS DDK\fR 47 | .LP 48 | \fIOpen Sound System Programmer's Guide\fR 49 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_audio_inputintr.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_audio_inputintr 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_audio_inputintr \- Recording interrupt callback 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_audio_inputintr(\fBint \fIdev\fP, \fBint \fIintr_flags\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS audio device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIintr_flags\fR 34 | .in +16n 35 | .rt 36 | Currently not used. Should always be set to 0. 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | This function should be called by the interrupt handler of an audio driver on fragment 42 | boundaries (for a recording device). The OSS audio core will the update it's internal 43 | pointers and wake up the application if necessary. 44 | .PP 45 | .SH "SEE ALSO" 46 | .PP 47 | \fIWriting Sound Device Drivers with OSS DDK\fR 48 | \fIOpen Sound System Programmer's Guide\fR 49 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_audio_outputintr.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_audio_outputintr 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_audio_outputintr \- Audio output interrupt callback 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_audio_outputintr(\fBint \fIdev\fP, \fBint \fIintr_flags\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS audio device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIintr_flags\fR 34 | .in +16n 35 | .rt 36 | Currently not used. Should always be set to 0. 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | This function should be called by the interrupt handler of an audio driver on fragment 42 | boundaries (for a playback device). The OSS audio core will the update it's internal 43 | pointers and wake up the application if necessary. 44 | .PP 45 | .SH "SEE ALSO" 46 | .PP 47 | \fIWriting Sound Device Drivers with OSS DDK\fR 48 | \fIOpen Sound System Programmer's Guide\fR 49 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_disable_device.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_disable_device 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_disable_device \- Disables the device if possible prior unloading the driver 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_disable_device(\fBoss_device_t *\fIosdev\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIosdev\fR 26 | .in +16n 27 | .rt 28 | OSS device handle. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | Drivers should call \fIossddk_disable_device\fR function in the beginning of their 34 | detach routine. This function checks if the driver can be safely unloaded and prevents 35 | OSS from accessing the driver any more. 36 | .PP 37 | .SH "RETURN VALUES" 38 | This function returns a negative value (-errno) if the device cannot be disabled at 39 | this moment. In this case the driver should refuse to detach. Value of 0 means that 40 | the device was successfully disabled and the driver can proceed the detach operation. 41 | .PP 42 | .SH "SEE ALSO" 43 | .PP 44 | \fIWriting Sound Device Drivers with OSS DDK\fR 45 | \fIOpen Sound System Programmer's Guide\fR 46 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_get_buffused.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_dmap_get_buffused 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_dmap_get_buffused \- Returns the size of buffer that is actually in use 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_dmap_get_buffused(\fBdmap_t *\fIdmap\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdmap\fR 26 | .in +16n 27 | .rt 28 | Audio buffer handle. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | OSS audio devices have a DMA buffer with the maximum size returned by 34 | \fIossddk_dmap_get_buffsize\fR. However in most cases just part of the available 35 | buffer is actually in use. The driver can call \fIossddk_dmap_get_buffused\fR 36 | to find out the transfer count to be programmed in the device registers. 37 | .PP 38 | .SH "RETURN VALUES" 39 | Amount of buffer currently in use (in bytes). This value equals to 40 | fragment_size*num_fragments. 41 | .PP 42 | .SH "SEE ALSO" 43 | .PP 44 | \fIWriting Sound Device Drivers with OSS DDK\fR 45 | .LP 46 | \fIOpen Sound System Programmer's Guide\fR 47 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_get_dmabuf.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_dmap_get_dmabuf 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_dmap_get_dmabuf \- Get (kernel) address of the DMA buffer 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBunsigned char*\fR ossddk_dmap_get_dmabuf(\fBdmap_t *\fIdmap\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdmap\fR 26 | .in +16n 27 | .rt 28 | Audio buffer handle. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | This function returns the kernel virtual address of the DMA buffer allocated 34 | for this dmap, However in most drivers this value has no use. Instead they 35 | should use \fIossddk_dmap_set_phys(9ossddk)\fR to get the memory/bus address 36 | of the buffer. 37 | .PP 38 | .SH "RETURN VALUES" 39 | Kernel virtual address of the DMA buffer (first byte) or NULL if no buffer 40 | is currently allocated. 41 | .PP 42 | .SH "SEE ALSO" 43 | .PP 44 | \fIWriting Sound Device Drivers with OSS DDK\fR 45 | .LP 46 | \fIOpen Sound System Programmer's Guide\fR 47 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_get_numfrags.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_get_fragsize.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_get_phys.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_set_phys.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_get_private.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_set_private.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_get_qtail.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_get_qhead.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_set_buffsize.9ossddk: -------------------------------------------------------------------------------- 1 | .so ossddk_dmap_get_buffsize.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_set_callback.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_dmap_set_callback 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_dmap_set_callback \- Reserved for future use 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_dmap_set_callback(\fBdmap_t *\fIdmap\fP, \fBoss_audio_callback_t \fIcb\fP, \fBint \fIarg\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdmap\fR 26 | .in +16n 27 | .rt 28 | Audio buffer handle. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIcb\fR 34 | .in +16n 35 | .rt 36 | TODO cb 37 | .in -16n 38 | .sp 39 | .ne 2 40 | .mk 41 | \fB\fIarg\fR 42 | .in +16n 43 | .rt 44 | TODO arg 45 | .in -16n 46 | .PP 47 | .SH "DESCRIPTION" 48 | .PP 49 | This function is reserved for future use. Normal OSS DDK drivers should not use 50 | it. 51 | .PP 52 | .SH "SEE ALSO" 53 | .PP 54 | \fIWriting Sound Device Drivers with OSS DDK\fR 55 | .LP 56 | \fIOpen Sound System Programmer's Guide\fR 57 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_set_fragsize.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_get_fragsize.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_set_numfrags.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_get_fragsize.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_set_playerror.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_dmap_set_playerror 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_dmap_set_playerror \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_dmap_set_playerror(\fBdmap_t *\fIdmap\fP, \fBint \fIerr\fP, \fBint \fIparm\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdmap\fR 26 | .in +16n 27 | .rt 28 | Audio buffer handle. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIerr\fR 34 | .in +16n 35 | .rt 36 | TODO err 37 | .in -16n 38 | .sp 39 | .ne 2 40 | .mk 41 | \fB\fIparm\fR 42 | .in +16n 43 | .rt 44 | TODO parm 45 | .in -16n 46 | .PP 47 | .SH "DESCRIPTION" 48 | .PP 49 | TODO 50 | .PP 51 | .SH "SEE ALSO" 52 | .PP 53 | \fIWriting Sound Device Drivers with OSS DDK\fR 54 | \fIOpen Sound System Programmer's Guide\fR 55 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_dmap_set_recerror.9ossddk: -------------------------------------------------------------------------------- 1 | .so man9ossddk/ossddk_dmap_set_private.9ossddk 2 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_mixer_create_group.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_mixer_create_group 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_mixer_create_group \- Create a new mixer group (window frame). 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_mixer_create_group(\fBint \fIdev\fP, \fBint \fIparent\fP, \fBconst char *\fIid\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS mixer device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIparent\fR 34 | .in +16n 35 | .rt 36 | Control number of the parent group. 0 means the device root group. 37 | .in -16n 38 | .sp 39 | .ne 2 40 | .mk 41 | \fB\fIid\fR 42 | .in +16n 43 | .rt 44 | Short name for the group (at most 15 characters). 45 | .in -16n 46 | .PP 47 | .SH "DESCRIPTION" 48 | .PP 49 | This function creates a new mixer group under the given parent group. 50 | See the mixer extension programming section of OSS 4.0 API Specification 51 | for more info about mixer groups. 52 | .PP 53 | .SH "SEE ALSO" 54 | .PP 55 | \fIWriting Sound Device Drivers with OSS DDK\fR 56 | \fIOpen Sound System Programmer's Guide\fR 57 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_mixer_set_strings.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_mixer_set_strings 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_mixer_set_strings \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_mixer_set_strings(\fBint \fIdev\fP, \fBint \fIctl\fP, \fBconst char *\fIs\fP, \fBint \fIversion\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIctl\fR 34 | .in +16n 35 | .rt 36 | TODO ctl 37 | .in -16n 38 | .sp 39 | .ne 2 40 | .mk 41 | \fB\fIs\fR 42 | .in +16n 43 | .rt 44 | TODO s 45 | .in -16n 46 | .sp 47 | .ne 2 48 | .mk 49 | \fB\fIversion\fR 50 | .in +16n 51 | .rt 52 | TODO version 53 | .in -16n 54 | .PP 55 | .SH "DESCRIPTION" 56 | .PP 57 | TODO 58 | .PP 59 | .SH "SEE ALSO" 60 | .PP 61 | \fIWriting Sound Device Drivers with OSS DDK\fR 62 | \fIOpen Sound System Programmer's Guide\fR 63 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_mixer_touch.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_mixer_touch 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_mixer_touch \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_mixer_touch(\fBint \fIdev\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS device number. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | TODO 34 | .PP 35 | .SH "SEE ALSO" 36 | .PP 37 | \fIWriting Sound Device Drivers with OSS DDK\fR 38 | \fIOpen Sound System Programmer's Guide\fR 39 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_mixer_truncate.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_mixer_truncate 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_mixer_truncate \- TODO 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBint\fR ossddk_mixer_truncate(\fBint \fIdev\fP, \fBint \fIindex\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIdev\fR 26 | .in +16n 27 | .rt 28 | OSS device number. 29 | .in -16n 30 | .sp 31 | .ne 2 32 | .mk 33 | \fB\fIindex\fR 34 | .in +16n 35 | .rt 36 | TODO index 37 | .in -16n 38 | .PP 39 | .SH "DESCRIPTION" 40 | .PP 41 | TODO 42 | .PP 43 | .SH "SEE ALSO" 44 | .PP 45 | \fIWriting Sound Device Drivers with OSS DDK\fR 46 | \fIOpen Sound System Programmer's Guide\fR 47 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_osdev_get_devc.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_osdev_get_devc 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_osdev_get_devc \- Get the devc pointer registered for the osdev handle. 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid*\fR ossddk_osdev_get_devc(\fBoss_device_t *\fIosdev\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIosdev\fR 26 | .in +16n 27 | .rt 28 | OSS device handle. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | Driver can use this function to get the devc structure it used when calling 34 | ossddk_register_device(9ossddk). 35 | .PP 36 | .SH "RETURN VALUES" 37 | This function always returns the devc pointer. There are no error codes. 38 | .PP 39 | .SH "SEE ALSO" 40 | .PP 41 | \fIWriting Sound Device Drivers with OSS DDK\fR 42 | \fIOpen Sound System Programmer's Guide\fR 43 | -------------------------------------------------------------------------------- /misc/man9ossddk/ossddk_unregister_device.9ossddk: -------------------------------------------------------------------------------- 1 | '\" te 2 | .\" Copyright (c) 2005, 4Front Technologies 2005\&. 3 | .TH ossddk_unregister_device 9ossddk "12 Sep 2005" "SunOS 5.10" "OSS DDK Services" 4 | .SH "NAME" 5 | ossddk_unregister_device \- Disconnects the driver from OSS DDK 6 | .PP 7 | .SH "SYNOPSIS" 8 | .nf 9 | #include 10 | .LP 11 | #include 12 | .fi 13 | .LP 14 | \fBvoid\fR ossddk_unregister_device(\fBoss_device_t *\fIosdev\fP); 15 | .PP 16 | .SH "INTERFACE LEVEL" 17 | .PP 18 | Open Sound System specific (OSS 4.0 DDK)\&. 19 | .PP 20 | .SH "ARGUMENTS" 21 | .PP 22 | .sp 23 | .ne 2 24 | .mk 25 | \fB\fIosdev\fR 26 | .in +16n 27 | .rt 28 | OSS device handle. 29 | .in -16n 30 | .PP 31 | .SH "DESCRIPTION" 32 | .PP 33 | This routine disconnects the driver from OSS DDK and disables all the services 34 | (device files) created by the driver. This call must be made once in driver's detach 35 | routine. No subsequent OSS DDK calls can be made after this moment. 36 | .PP 37 | .SH "SEE ALSO" 38 | .PP 39 | \fIWriting Sound Device Drivers with OSS DDK\fR 40 | \fIOpen Sound System Programmer's Guide\fR 41 | -------------------------------------------------------------------------------- /misc/samples/ddksample/Makefile: -------------------------------------------------------------------------------- 1 | OBJECTS=ddksample.o ddksample_audio.o ddksample_mixer.o ddksample_misc.o 2 | CFLAGS=-D_KERNEL 3 | 4 | all: ddksample 5 | 6 | ddksample: $(OBJECTS) 7 | ld -dy -r -Ndrv/osscore $(OBJECTS) -o ddksample 8 | # ld -64 -dy -r -Ndrv/osscore $(OBJECTS) -o ddksample # For 64 bit kernels 9 | 10 | install: ddksample 11 | cp ddksample /kernel/drv/ddksample 12 | cp ddksample.conf /kernel/drv/ddksample.conf 13 | -rem_drv ddksample 14 | add_drv ddksample 15 | ossdetect -d 16 | 17 | clean: 18 | rm -f ddksample *.o x y z core *~ 19 | -------------------------------------------------------------------------------- /misc/samples/ddksample/ddksample.conf: -------------------------------------------------------------------------------- 1 | name="ddksample" parent="pseudo" instance=0; 2 | -------------------------------------------------------------------------------- /misc/samples/ddksample/ddksample.h: -------------------------------------------------------------------------------- 1 | #ifndef _DDKSAMPLE_H 2 | #define _DDKSAMPLE_H 3 | 4 | // Audio engine (port) control structure. 5 | 6 | #define MAX_SUBDEVICE 4 7 | 8 | typedef struct 9 | { 10 | int dev; 11 | int open_mode; /* OPEN_READ | OPEN_WRITE */ 12 | 13 | int speed; 14 | int channels; 15 | int format, bits; 16 | 17 | int prepare_flags; 18 | int audio_active; 19 | 20 | int timeout_value; 21 | timeout_id_t timeout_id; 22 | 23 | int left_volume, right_volume; 24 | int mute; 25 | #define DDKSAMPLE_MAX_VOL 100 26 | 27 | int left_peak, right_peak; 28 | } ddksample_portc; 29 | 30 | // Device control structure 31 | typedef struct 32 | { 33 | oss_device_t *osdev; 34 | kmutex_t mutex; 35 | 36 | int mixer_dev; 37 | int mainvol_left, mainvol_right; 38 | 39 | int num_portc; 40 | ddksample_portc portc[MAX_SUBDEVICE]; 41 | int audio_open_count; /* Number of channels currently opened */ 42 | 43 | } ddksample_devc; 44 | 45 | extern int ddksample_mixer_init (ddksample_devc * devc); 46 | extern int ddksample_audio_init (ddksample_devc * devc); 47 | extern void ddksample_do_math (ddksample_portc * portc, void *buf, int len); 48 | 49 | #endif 50 | -------------------------------------------------------------------------------- /os_cmd/.config: -------------------------------------------------------------------------------- 1 | mode=user 2 | -------------------------------------------------------------------------------- /os_cmd/FreeBSD/.config: -------------------------------------------------------------------------------- 1 | targetos=FreeBSD 2 | mode=sbin 3 | cflags=-I/sys 4 | -------------------------------------------------------------------------------- /os_cmd/FreeBSD/ossdetect/ossdetect.man: -------------------------------------------------------------------------------- 1 | NAME 2 | ossdetect - Open Sound System audio device detection program. 3 | 4 | SYNOPSIS 5 | ossdetect [-diuv] [-m] [-L] 6 | 7 | DESCRIPTION 8 | The ossdetect application performs automatic detection of soundcards. 9 | The application looks at the /usr/lib/oss/etc/device.list and performs 10 | automatic detection. It will create a file with the list of the configured 11 | drivers in /usr/lib/oss/etc/installed_drivers. 12 | 13 | The Input Multiplexer driver (IMUX) is not configured by default and 14 | can be added to the OSS configuration using the -i option. 15 | 16 | OPTIONS 17 | -d Create device file links. 18 | -i Adds the oss_imux driver. 19 | -m Create nodes with permissions set to octal . 20 | -u Adds the oss_userdev driver. 21 | -v Verbose output. 22 | -L Use as root directory for OSS files. 23 | Default: Path from /etc/oss.conf, followed by /usr/lib/oss. 24 | 25 | SEE ALSO 26 | ossdevlinks(1), ossinfo(1) 27 | 28 | FILES 29 | /usr/sbin/ossdetect 30 | 31 | AUTHOR 32 | 4Front Technologies 33 | -------------------------------------------------------------------------------- /os_cmd/Linux/.config: -------------------------------------------------------------------------------- 1 | targetos=Linux 2 | mode=sbin 3 | -------------------------------------------------------------------------------- /os_cmd/Linux/ossdetect/ossdetect.man: -------------------------------------------------------------------------------- 1 | NAME 2 | ossdetect - Open Sound System audio device detection program. 3 | 4 | SYNOPSIS 5 | ossdetect [-diuv] [-m] [-L] 6 | 7 | DESCRIPTION 8 | The ossdetect application performs automatic detection of soundcards. 9 | The application looks at the /usr/lib/oss/etc/device.list and performs 10 | automatic detection. It will create a file with the list of the configured 11 | drivers in /usr/lib/oss/etc/installed_drivers. 12 | 13 | The Input Multiplexer driver (IMUX) is not configured by default and 14 | can be added to the OSS configuration using the -i option. 15 | 16 | OPTIONS 17 | -d Create device file links. 18 | -i Adds the oss_imux driver. 19 | -m Create nodes with permissions set to octal . 20 | -u Adds the oss_userdev driver. 21 | -v Verbose output. 22 | -L Use as root directory for OSS files. 23 | Default: Path from /etc/oss.conf, followed by /usr/lib/oss. 24 | 25 | SEE ALSO 26 | ossdevlinks(1), ossinfo(1) 27 | 28 | FILES 29 | /usr/sbin/ossdetect 30 | 31 | AUTHOR 32 | 4Front Technologies 33 | -------------------------------------------------------------------------------- /os_cmd/SCO_SV/.config: -------------------------------------------------------------------------------- 1 | targetos=SCO_SV 2 | -------------------------------------------------------------------------------- /os_cmd/SCO_SV/ossdetect/.config: -------------------------------------------------------------------------------- 1 | mode=sbin 2 | targetos=SCO_SV 3 | -------------------------------------------------------------------------------- /os_cmd/SCO_SV/ossdetect/ossdetect.man: -------------------------------------------------------------------------------- 1 | NAME 2 | ossdetect - Open Sound System audio device detection program. 3 | 4 | SYNOPSIS 5 | ossdetect [-diuv] [-m] [-L] 6 | 7 | DESCRIPTION 8 | The ossdetect application performs automatic detection of soundcards. 9 | The application looks at the /usr/lib/oss/etc/device.list and performs 10 | automatic detection. It will create a file with the list of the configured 11 | drivers in /usr/lib/oss/etc/installed_drivers. 12 | 13 | The Input Multiplexer driver (IMUX) is not configured by default and 14 | can be added to the OSS configuration using the -i option. 15 | 16 | OPTIONS 17 | -d Create device file links. 18 | -i Adds the oss_imux driver. 19 | -m Create nodes with permissions set to octal . 20 | -u Adds the oss_userdev driver. 21 | -v Verbose output. 22 | -L Use as root directory for OSS files. 23 | Default: Path from /etc/oss.conf, followed by /usr/lib/oss. 24 | 25 | SEE ALSO 26 | ossdevlinks(1), ossinfo(1) 27 | 28 | FILES 29 | /usr/sbin/ossdetect 30 | 31 | AUTHOR 32 | 4Front Technologies 33 | -------------------------------------------------------------------------------- /os_cmd/SunOS/.config: -------------------------------------------------------------------------------- 1 | targetos=SunOS 2 | -------------------------------------------------------------------------------- /os_cmd/SunOS/ossdetect/.config: -------------------------------------------------------------------------------- 1 | cflags=-ldevinfo 2 | mode=sbin 3 | targetos=SunOS 4 | -------------------------------------------------------------------------------- /os_cmd/SunOS/ossdetect/ossdetect.man: -------------------------------------------------------------------------------- 1 | NAME 2 | ossdetect - Open Sound System audio device detection applet. 3 | 4 | DESCRIPTION 5 | The ossdetect application performs automatic detection of soundcards 6 | under solaris. The application looks at the /usr/lib/oss/etc/device.list 7 | and performs automatic detection. It will create a file with the 8 | list of the configured drivers in /usr/lib/oss/etc/installed_drivers. 9 | 10 | The Input Multiplexer driver (IMUX) is not configured by default and 11 | can be added to the OSS configuration using the -i option. 12 | OPTIONS 13 | -v Verbose output 14 | -f Forces the creation of driver.conf files. 15 | -i Adds the IMUX driver. 16 | -u Adds the oss_userdev driver. 17 | -d Scans /devices and creates device file links 18 | 19 | FILES 20 | /usr/sbin/ossdetect 21 | 22 | AUTHOR 23 | 4Front Technologies 24 | -------------------------------------------------------------------------------- /oss/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/oss/.nomake -------------------------------------------------------------------------------- /phpmake/Makefile.php: -------------------------------------------------------------------------------- 1 | 6 | 7 | # Makefile for Open Sound System module main 8 | 9 | CC=cc -ffreestanding 10 | HOSTCC=cc 11 | CPLUSPLUS=g++ -fno-rtti -fno-exceptions -I. 12 | OSFLAGS=-fno-common -fno-stack-protector -Wall -Werror -DOSS_LITTLE_ENDIAN 13 | OS=Linux 14 | ARCH=x86_64 15 | TOPDIR=. 16 | OBJDIR=$(TOPDIR)/target/objects 17 | TMPDIR=. 18 | MODDIR=$(TOPDIR)/target/modules 19 | BINDIR=$(TOPDIR)/target/bin 20 | LIBDIR=$(TOPDIR)/target/lib 21 | SBINDIR=$(TOPDIR)/target/sbin 22 | OSSLIBDIR="/usr/lib/oss" 23 | THISOS=kernel/OS/Linux 24 | CFLAGS=-O 25 | SUBDIRS=lib cmd kernel os_cmd kernel/OS/Linux 26 | TARGETS=main 27 | DEPDIR= 28 | 29 | include .makefile 30 | 31 | all: subdirs 32 | lint: lint_subdirs 33 | 34 | dep: dep_subdirs 35 | 36 | include $(TOPDIR)/make.defs 37 | 38 | clean: clean_local clean_subdirs 39 | 40 | 41 | include setup/Linux/make.local 42 | -------------------------------------------------------------------------------- /phpmake/defaults.php: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/phpmake/defaults.php -------------------------------------------------------------------------------- /phpmake/library.php: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /phpmake/version.php: -------------------------------------------------------------------------------- 1 | 6 | -------------------------------------------------------------------------------- /setup/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/setup/.nomake -------------------------------------------------------------------------------- /setup/BeOS/make.local: -------------------------------------------------------------------------------- 1 | build: kernel/framework/include/buildid.h all 2 | sh build.sh 3 | 4 | copy: build 5 | cp -R prototype/* /boot/ 6 | 7 | package: build 8 | sh setup/BeOS/mkpkg.sh 9 | 10 | install: copy 11 | -------------------------------------------------------------------------------- /setup/BeOS/mkpkg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | VERSION=`sh showversion.sh` 4 | RELEASE=`cat buildid.dat` 5 | OSSNAME=oss-beos 6 | PKGNAME=$OSSNAME-$VERSION-$RELEASE 7 | 8 | echo building $PKGNAME.zip 9 | (cd prototype; zip -ry9 ../$PKGNAME.zip *) 10 | 11 | #if test -f 4front-private/export_package.sh 12 | #then 13 | # sh 4front-private/export_package.sh $PKGNAME.zip . `sh showversion.sh` /tmp `uname -i`-26 14 | #fi 15 | 16 | exit 0 17 | -------------------------------------------------------------------------------- /setup/FreeBSD/make.local: -------------------------------------------------------------------------------- 1 | build: kernel/framework/include/buildid.h all 2 | sh build.sh 3 | 4 | copy: build 5 | cp -R prototype/* / 6 | 7 | package: build 8 | sh setup/FreeBSD/mkpkg.sh 9 | 10 | install: copy 11 | cd ${OSSLIBDIR}/build && sh install.sh 12 | -------------------------------------------------------------------------------- /setup/FreeBSD/oss/build/Makefile.osscore: -------------------------------------------------------------------------------- 1 | SRCS=osscore.c 2 | KMOD=osscore 3 | OBJS += osscore_mainline.o 4 | SRCS += device_if.h bus_if.h pci_if.h 5 | 6 | .include 7 | 8 | -------------------------------------------------------------------------------- /setup/FreeBSD/oss/build/Makefile.tmpl: -------------------------------------------------------------------------------- 1 | SRCS=MODNAME.c 2 | KMOD=MODNAME 3 | OBJS += MODNAME_mainline.o 4 | SRCS += device_if.h bus_if.h pci_if.h 5 | CFLAGS += -I../include/internals 6 | 7 | .include 8 | 9 | -------------------------------------------------------------------------------- /setup/FreeBSD/oss/build/devid.h: -------------------------------------------------------------------------------- 1 | 2 | typedef struct 3 | { 4 | unsigned short vendor, device; 5 | } device_id_t; 6 | -------------------------------------------------------------------------------- /setup/FreeBSD/oss/soundon.user: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This script can be used to run programs every time OSS is started. 4 | # By default, this script is disabled, and contains no commands. 5 | # To enable, add executable permissions to this file, and edit below 6 | # commands to be run. 7 | exit 0 8 | -------------------------------------------------------------------------------- /setup/FreeBSD/pkg-comment: -------------------------------------------------------------------------------- 1 | Open Sound System for FreeBSD 2 | -------------------------------------------------------------------------------- /setup/FreeBSD/pkg-descr: -------------------------------------------------------------------------------- 1 | Open Sound System for FreeBSD is a audio subsystem that provides a cross platform audio and MIDI API with device drivers for most consumer and professional PCI and USB audio devices. Additional information about Open Sound System is available at http://www.opensound.com 2 | -------------------------------------------------------------------------------- /setup/FreeBSD/pkg-postinstall: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if test -f /etc/oss.conf 3 | then 4 | . /etc/oss.conf 5 | else 6 | OSSLIBDIR=/usr/lib/oss 7 | fi 8 | 9 | cd $OSSLIBDIR/build 10 | echo "Build Open Sound System for FreeBSD-`uname -m` `uname -r`" 11 | sh install.sh 12 | 13 | chmod 744 /etc/rc.d/oss 14 | 15 | echo "Starting Open Sound System" 16 | rm -f /dev/dsp; ln -s /dev/dsp0 /dev/dsp 17 | /usr/sbin/soundoff > /dev/null 2>&1 18 | /usr/sbin/soundon 19 | -------------------------------------------------------------------------------- /setup/FreeBSD/pkg-postremove: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if test -f /etc/oss.conf 3 | then 4 | . /etc/oss.conf 5 | else 6 | OSSLIBDIR=/usr/lib/oss 7 | fi 8 | 9 | rm -rf $OSSLIBDIR 10 | rm -f /dev/dsp* /dev/audio* /dev/mixer* /dev/midi* /dev/sndstat /dev/sequencer /dev/music 11 | -------------------------------------------------------------------------------- /setup/FreeBSD/pkg-preremove: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | echo "Killing all active audio applications" 4 | 5 | /usr/sbin/fuser -k /dev/mixer* /dev/dsp* /dev/audio* /dev/sequencer /dev/music /dev/midi* > /dev/null 2>&1 6 | 7 | sleep 2 8 | 9 | /usr/sbin/soundoff 10 | exit 0 11 | -------------------------------------------------------------------------------- /setup/FreeBSD/sbin/soundoff: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test -f /etc/oss.conf 4 | then 5 | . /etc/oss.conf 6 | else 7 | OSSLIBDIR=/usr/lib/oss 8 | fi 9 | 10 | if ! /sbin/kldstat | grep -q osscore.ko 11 | then 12 | echo OSS not loaded. 13 | exit 0 14 | fi 15 | 16 | if ! test -f $OSSLIBDIR/etc/installed_drivers 17 | then 18 | echo $OSSLIBDIR/etc/installed_drivers is missing. 19 | exit 1 20 | fi 21 | 22 | # Save mixer settings automatically if requested 23 | if test -f $OSSLIBDIR/etc/userdefs && grep -q "autosave_mixer yes" $OSSLIBDIR/etc/userdefs 24 | then 25 | /usr/sbin/savemixer 26 | fi 27 | 28 | # Save legacy devices 29 | /usr/sbin/ossdevlinks -N 30 | 31 | PROGRAMS="`fstat /dev/mixer* /dev/dsp* /dev/midi* /dev/oss/*/* 2>/dev/null | sed '1 D'`" 32 | 33 | if test "$PROGRAMS " != " " 34 | then 35 | echo 36 | echo Some applications are still using OSS - cannot unload 37 | echo 38 | 39 | fstat /dev/mixer* /dev/dsp* /dev/midi* /dev/oss/*/* 2>/dev/null 40 | 41 | echo 42 | echo Please stop these applications and run soundoff again 43 | exit 2 44 | fi 45 | 46 | for n in `cat $OSSLIBDIR/etc/installed_drivers | sed 's/#.*//'` 47 | do 48 | /sbin/kldunload $n > /dev/null 2>&1 49 | done 50 | 51 | /sbin/kldunload osscore 52 | 53 | if ! /sbin/kldstat | grep -q osscore.ko # OSS gone? 54 | then 55 | exit 0 56 | fi 57 | 58 | echo Cannot unload the OSS driver modules 59 | 60 | exit 0 61 | -------------------------------------------------------------------------------- /setup/Linux/arm/Makefile.osscore.arm: -------------------------------------------------------------------------------- 1 | 2 | ifneq ($(KERNELRELEASE),) 3 | 4 | obj-m := osscore.o 5 | 6 | else 7 | 8 | PWD := $(shell pwd) 9 | endif 10 | 11 | default: 12 | @echo "static const char __oss_compile_vermagic[];" > ubuntu_version_hack.inc 13 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 14 | 15 | clean: 16 | rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z 17 | rm -rf .tmp_versions 18 | -------------------------------------------------------------------------------- /setup/Linux/arm/Makefile.tmpl.arm: -------------------------------------------------------------------------------- 1 | include /etc/oss.conf 2 | 3 | EXTRA_CFLAGS += -I${OSSLIBDIR}/include/internals -I${OSSLIBDIR}/include/sys 4 | 5 | ifneq ($(KERNELRELEASE),) 6 | 7 | obj-m := MODNAME.o 8 | 9 | else 10 | 11 | #KERNELDIR ?= /lib/modules/$(shell uname -r)/build 12 | PWD := $(shell pwd) 13 | 14 | default: 15 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 16 | 17 | endif 18 | 19 | clean: 20 | @rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z 21 | @rm -rf .tmp_versions 22 | -------------------------------------------------------------------------------- /setup/Linux/copyright: -------------------------------------------------------------------------------- 1 | Upstream sources are at: 2 | http://www.opensound.com 3 | 4 | Authors: 5 | 4Front Technologies ( http://www.4front-tech.com ) 6 | 7 | Copyright: 8 | Copyright (C) 2006-2008 Hannu Savolainen and Dev Mazumdar. 9 | All rights reserved. 10 | 11 | This program is free software; you can redistribute it and/or modify 12 | it under the terms of the GNU General Public License as published by 13 | the Free Software Foundation; version 2 dated June, 1991. 14 | 15 | This program is distributed in the hope that it will be useful, 16 | but WITHOUT ANY WARRANTY; without even the implied warranty of 17 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18 | GNU General Public License for more details. 19 | 20 | You should have received a copy of the GNU General Public License 21 | along with this program; if not, write to the Free Software 22 | Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 23 | 24 | On Debian GNU/Linux systems, the complete text of the GNU General 25 | Public License can be found in `/usr/share/common-licenses/GPL'. 26 | -------------------------------------------------------------------------------- /setup/Linux/installoss.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test "$USER " != "root " 4 | then 5 | echo "You must be super-user or logged in as root to install OSS" 6 | exit 1 7 | fi 8 | 9 | if test "$1 " != " " 10 | then 11 | OSSLIBDIR="$1" 12 | else 13 | OSSLIBDIR="/usr/lib/oss" 14 | fi 15 | 16 | echo "Installing Open Sound System `cat "./$OSSLIBDIR/version.dat"`...." 17 | echo "Copying files from ./etc and ./usr into /..." 18 | tar -cpf - etc usr |(cd /; tar -xpf -) 19 | echo "Running /usr/lib/oss/build/install script...." 20 | if ! sh "/$OSSLIBDIR/build/install.sh" 21 | then 22 | echo 23 | echo "ERROR: install.sh script failed" 24 | exit 0 25 | fi 26 | echo "OSS installation complete..." 27 | echo 28 | echo "Run /usr/sbin/soundon to start the drivers" 29 | echo "Run /usr/bin/osstest to test the audio" 30 | echo "Run /usr/bin/ossinfo to display status" 31 | -------------------------------------------------------------------------------- /setup/Linux/linsetup.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | if test "$CONFIGURE " != "YES " 4 | then 5 | echo 6 | echo Error: Wrong usage 7 | echo 8 | echo You must run `dirname $0`/configure instead of $0 9 | exit 1 10 | fi 11 | 12 | if test "`ls .` " != " " 13 | then 14 | echo Error: Current directory must be empty 15 | exit 1 16 | fi 17 | 18 | if test "`uname -m` " = "arm " 19 | then 20 | # ARM doesn't have regparm support 21 | 22 | echo Setting up for ARM architecture 23 | sh $SRCDIR/setup/setupdir.sh 24 | exit 0 25 | fi 26 | 27 | # Setup directory for REGPARM 28 | 29 | unset NO_REGPARM 30 | export USE_REGPARM=1 31 | 32 | echo Setting up full REGPARM compiling environment 33 | 34 | echo "SUBDIRS+=noregparm" > .makefile 35 | sh $SRCDIR/setup/setupdir.sh 36 | 37 | # Setup for NOREGPARM 38 | 39 | mkdir noregparm 40 | 41 | unset USE_REGPARM 42 | export NO_REGPARM=1 43 | 44 | echo > .nocopy 45 | echo Setting up kernel-only NOREGPARM compiling environment 46 | (cd noregparm;sh $SRCDIR/setup/setupdir.sh -K) 47 | rm -f .nocopy 48 | 49 | # Make sure both versions share the same timestamp.h file. 50 | cp -f kernel/framework/include/timestamp.h noregparm/kernel/framework/include/timestamp.h 51 | 52 | exit 0 53 | -------------------------------------------------------------------------------- /setup/Linux/make.local: -------------------------------------------------------------------------------- 1 | build: kernel/framework/include/buildid.h all 2 | sh build.sh 3 | 4 | copy: build 5 | #rm -f ${OSSLIBDIR}/modules/*.o 6 | (cd prototype; find -L . -type d | xargs -i{} mkdir -p ${DESTDIR}/{}) 7 | (cd prototype; find -L . -type f | xargs -i{} cp {} ${DESTDIR}/{}) 8 | 9 | package: build 10 | sh setup/Linux/mkpkg.sh 11 | 12 | tarball: build 13 | sh setup/Linux/mktarball.sh 14 | 15 | deb: build 16 | sh setup/Linux/mkdeb.sh 17 | 18 | install: copy 19 | cd ${OSSLIBDIR}/build && sh install.sh 20 | sync 21 | soundoff && sync && soundon && echo "OSS has started OK" 22 | -------------------------------------------------------------------------------- /setup/Linux/md5.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | i=$2 4 | i=${i#.} 5 | 6 | # Create the MD5 sums file using the program we have found earlier 7 | case "$1" in 8 | MD5SUM) 9 | md5sum ".$i" 10 | ;; 11 | MD5) 12 | x=`md5 ".$i" | awk "{ for (y=1;y<=NF;y++) if ((length(\\$y) == 32) && (\\$y !~ /[\/]/)) {print \\$y; break} }"`; echo "$x $i" 13 | ;; 14 | DIGEST) 15 | x=`digest -a md5 ".$i"`; echo "$x $i" 16 | ;; 17 | OPENSSL) 18 | x=`openssl md5 $i | awk "{ for (y=1;y<=NF;y++) if ((length(\\$y) == 32) && (\\$y !~ /[\/]/)) {print \\$y; break} }"`; echo "$x $i" 19 | ;; 20 | esac 21 | -------------------------------------------------------------------------------- /setup/Linux/menu.ex: -------------------------------------------------------------------------------- 1 | ?package(oss-linux):needs="X11" \ 2 | section="Apps/Sound" \ 3 | title="ossxmix" \ 4 | command="/usr/bin/ossxmix" 5 | -------------------------------------------------------------------------------- /setup/Linux/mkpkg.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./.directories 4 | 5 | VERSION=`sh showversion.sh` 6 | RELEASE=`cat buildid.dat` 7 | ARCH=`uname -m` 8 | OSSNAME=oss-linux 9 | 10 | RPMNAME=$OSSNAME-$VERSION 11 | PKGNAME=$OSSNAME-$VERSION-$RELEASE.$ARCH 12 | echo building $RPMNAME.rpm 13 | 14 | rm -rf spec $RPMNAME 15 | mkdir $RPMNAME 16 | echo "Version: " $VERSION > spec 17 | echo "Release: " $RELEASE >> spec 18 | echo "Name: " $OSSNAME >> spec 19 | cat setup/Linux/spec.tmpl | sed "s:OSSLIBDIR:\"$OSSLIBDIR\":g" >> spec 20 | echo "%files" >> spec 21 | (cd prototype; find . -type f -print | sed 's/^.//g' > /tmp/filelist) 22 | cat /tmp/filelist >> spec 23 | rm -rf /tmp/prototype 24 | cp -af prototype /tmp 25 | tar zcvf /tmp/oss $RPMNAME 26 | rpmbuild -bb --buildroot=/tmp/prototype --define "_sourcedir /tmp" --define "_rpmdir ./" --define '_build_name_fmt %%{NAME}-%%{VERSION}-%%{RELEASE}.%%{ARCH}.rpm' spec 27 | # Cleanup 28 | rm -rf /tmp/oss /tmp/filelist $RPMNAME spec 29 | 30 | if test -f 4front-private/export_package.sh 31 | then 32 | sh 4front-private/export_package.sh $PKGNAME.rpm . `sh showversion.sh` /tmp `uname -i`-26 33 | fi 34 | -------------------------------------------------------------------------------- /setup/Linux/mktarball.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . ./.directories 4 | 5 | VERSION=`sh showversion.sh` 6 | RELEASE=`cat buildid.dat` 7 | OSSNAME=oss-linux 8 | if test `uname -m` = "x86_64"; then ARCH=amd64 9 | else ARCH=`uname -m|sed 's/^i[3-9]86/i386/'` 10 | fi 11 | PKGNAME=$OSSNAME-$VERSION-$RELEASE-$ARCH 12 | 13 | echo building $PKGNAME.tar.bz2 14 | #cp ./setup/Linux/installoss.sh prototype 15 | cp ./setup/Linux/removeoss.sh prototype/$OSSLIBDIR/scripts 16 | (cd prototype; find . -type f -print) > prototype/$OSSLIBDIR/MANIFEST 17 | (cd prototype; tar cfj /tmp/$PKGNAME.tar.bz2 . ) 18 | mv /tmp/$PKGNAME.tar.bz2 . 19 | 20 | if test -f 4front-private/export_package.sh 21 | then 22 | sh 4front-private/export_package.sh $PKGNAME.tar.bz2 . `sh showversion.sh` /tmp `uname -m`-26 23 | fi 24 | 25 | exit 0 26 | -------------------------------------------------------------------------------- /setup/Linux/oss/build/Makefile.osscore: -------------------------------------------------------------------------------- 1 | include /etc/oss.conf 2 | 3 | EXTRA_CFLAGS += -I${OSSLIBDIR}/include/internals -I${OSSLIBDIR}/include/sys 4 | 5 | ifneq ($(KERNELRELEASE),) 6 | 7 | obj-m := osscore.o 8 | 9 | else 10 | 11 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build 12 | PWD := $(shell pwd) 13 | endif 14 | 15 | default: 16 | @echo "static const char __oss_compile_vermagic[]" > ubuntu_version_hack.inc 17 | #The kernel build system saves kernel version (obtained via "utsrelease.h") 18 | #used during compile in a "vermagic" symbol. soundon compares this with 19 | #current version of running kernel to know when to relink modules. 20 | #Some Ubuntu kernels have 'uname -r' output different from "utsrelease.h" 21 | #contents, so we save the previous uname as a fallback check. 22 | # https://bugs.launchpad.net/ubuntu/+source/linux/+bug/247055 23 | @echo "__attribute__((used))" >> ubuntu_version_hack.inc 24 | @echo "__attribute__((section(\".modinfo\")))" >> ubuntu_version_hack.inc 25 | @echo "= \"$(shell /usr/sbin/ossvermagic -z -s)\";" >> ubuntu_version_hack.inc 26 | 27 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 28 | @rm -f ubuntu_version_hack.inc 29 | 30 | clean: 31 | rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z ubuntu_version_hack.inc 32 | rm -rf .tmp_versions 33 | -------------------------------------------------------------------------------- /setup/Linux/oss/build/Makefile.tmpl: -------------------------------------------------------------------------------- 1 | include /etc/oss.conf 2 | 3 | EXTRA_CFLAGS += -I${OSSLIBDIR}/include/internals -I${OSSLIBDIR}/include/sys 4 | 5 | ifneq ($(KERNELRELEASE),) 6 | 7 | obj-m := MODNAME.o 8 | 9 | else 10 | 11 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build 12 | PWD := $(shell pwd) 13 | 14 | default: 15 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 16 | 17 | endif 18 | 19 | clean: 20 | @rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z 21 | @rm -rf .tmp_versions 22 | -------------------------------------------------------------------------------- /setup/Linux/oss/build/ossdip.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Definition of the _dev_info_t structure for Linux 3 | */ 4 | #ifndef OSSDIP_H 5 | #define OSSDIP_H 6 | struct _dev_info_t 7 | { 8 | struct pci_dev *pcidev; 9 | }; 10 | #endif 11 | -------------------------------------------------------------------------------- /setup/Linux/oss/cuckoo/Makefile: -------------------------------------------------------------------------------- 1 | ccflags-y += -I/usr/lib/oss 2 | 3 | ifneq ($(KERNELRELEASE),) 4 | 5 | obj-m := cuckoo.o cuckoo_pcm.o cuckoo_mixer.o 6 | 7 | else 8 | 9 | KERNELDIR ?= /lib/modules/$(shell uname -r)/build 10 | PWD := $(shell pwd) 11 | 12 | default: 13 | $(MAKE) -C $(KERNELDIR) M=$(PWD) modules 14 | 15 | endif 16 | 17 | install: default 18 | cp *.ko /lib/modules/`uname -r`/kernel/oss 19 | depmod -a 20 | 21 | clean: 22 | rm -f *.o *.ko *.mod.c *.mod.o .*.cmd core core.* x y z 23 | rm -rf .tmp_versions Modules.symvers 24 | -------------------------------------------------------------------------------- /setup/Linux/oss/cuckoo/checksum.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/setup/Linux/oss/cuckoo/checksum.h -------------------------------------------------------------------------------- /setup/Linux/oss/scripts/90-oss_usb-create-device.fdi: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | oss_usb-create-devices 6 | 7 | 8 | 9 | -------------------------------------------------------------------------------- /setup/Linux/oss/scripts/killprocs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PROCS="`fuser /dev/mixer* /dev/dsp* /dev/audio* /dev/sequencer /dev/music /dev/midi* 2>/dev/null`" 3 | 4 | if test "$PROCS " = " " 5 | then 6 | exit 0 7 | fi 8 | 9 | for pid in $PROCS 10 | do 11 | #ps ax|grep "^ *$pid " 12 | echo killing $pid 13 | kill $pid 14 | done 15 | 16 | sleep 2 17 | exit 0 18 | -------------------------------------------------------------------------------- /setup/Linux/oss/scripts/oss_usb-create-devices: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | /usr/sbin/ossdetect -d 4 | /usr/sbin/ossdevlinks 5 | -------------------------------------------------------------------------------- /setup/Linux/oss/scripts/setup-alsa.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | # This script will restgore selected ALSA modules that were earlier removed by 4 | # remove_drv.sh 5 | 6 | if test -d /proc/asound 7 | then 8 | # ALSA is already loaded 9 | exit 0 10 | fi 11 | 12 | if ! test -f /lib/modules/`uname -r`/sound-preoss.tar.bz2 13 | then 14 | echo ALSA backup archive /lib/modules/`uname -r`/sound-preoss.tar.bz2 not found. Cannot continue. 15 | exit 1 16 | fi 17 | 18 | RESTORE=kernel/sound/soundcore.ko 19 | 20 | for n in snd snd-pcm snd-timer snd-page-alloc 21 | do 22 | RESTORE="$RESTORE kernel/sound/core/$n.ko kernel/sound/acore/$n.ko" 23 | done 24 | 25 | (cd /lib/modules/`uname -r` && tar xvfj sound-preoss.tar.bz2 $RESTORE) 26 | 27 | if test -d /dev/snd.save && ! test -d /dev/snd 28 | then 29 | mv /dev/snd.save /dev/snd 30 | fi 31 | 32 | exit 0 33 | -------------------------------------------------------------------------------- /setup/Linux/oss/scripts/showprocs.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PROCS="`fuser /dev/mixer* /dev/dsp* /dev/audio* /dev/sequencer /dev/music /dev/midi*|sed 's/.* //'|sort|uniq`" 3 | 4 | if test "$PROCS " = " " 5 | then 6 | exit 0 7 | fi 8 | 9 | if test "$1 " != "-q " 10 | then 11 | echo $PROCS 12 | echo 13 | echo "NOTICE!" 14 | echo "=======" 15 | echo 16 | echo There are some programs still using OSS devices. You may need to stop them 17 | echo manually: 18 | echo 19 | fi 20 | 21 | for pid in $PROCS 22 | do 23 | ps ax|grep "^ *$pid " 24 | done 25 | 26 | echo 27 | 28 | exit 0 29 | -------------------------------------------------------------------------------- /setup/Linux/oss/soundon.user: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # This script can be used to run programs every time OSS is started. 4 | # By default, this script is disabled, and contains no commands. 5 | # To enable, add executable permissions to this file, and edit below 6 | # commands to be run. 7 | exit 0 8 | -------------------------------------------------------------------------------- /setup/Linux/postinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | OSSLIBDIR=/usr/lib/oss 3 | if [ -e /tmp/OSS_UPGRADE ]; then rm /tmp/OSS_UPGRADE; fi 4 | if [ -e /etc/oss.conf ]; then . /etc/oss.conf; else echo "OSSLIBDIR=/usr/lib/oss" > /etc/oss.conf; fi 5 | echo "Building OSS Modules for Linux-`uname -p` `uname -r`" 6 | cd "$OSSLIBDIR"/build 7 | sh install.sh 8 | if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus; fi 9 | echo "Forcing re-detection of installed soundcards" 10 | ossdetect 11 | echo "Starting Open Sound System" 12 | sync 13 | /usr/sbin/soundoff >> /dev/null 2>&1 14 | sync 15 | /usr/sbin/soundon || exit 0 16 | -------------------------------------------------------------------------------- /setup/Linux/postrm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | OSSLIBDIR=/usr/lib/oss 3 | if [ -e /etc/oss.conf ]; then . /etc/oss.conf; fi 4 | if [ -e /tmp/OSS_UPGRADE ]; then echo "Upgrading OSS - will not purge $OSSLIBDIR."; else rm -rf "$OSSLIBDIR"/*; fi 5 | rm -f /usr/lib/libflashsupport.so 6 | if [ -x /usr/bin/update-menus ]; then /usr/bin/update-menus; fi 7 | -------------------------------------------------------------------------------- /setup/Linux/preinst: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if [ -x /etc/init.d/alsa-utils ]; then /etc/init.d/alsa-utils stop || true; fi 3 | if [ -x /usr/sbin/alsa ]; then /usr/sbin/alsa force-unload || true; fi 4 | if [ -x /etc/init.d/alsa ]; then /etc/init.d/alsa force-unload || true; fi 5 | touch /tmp/OSS_UPGRADE 6 | exit 0 7 | -------------------------------------------------------------------------------- /setup/Linux/prerm: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | OSSLIBDIR=/usr/lib/oss 3 | if [ -e /etc/oss.conf ]; then . /etc/oss.conf; fi 4 | sh "$OSSLIBDIR"/scripts/restore_drv.sh || true 5 | -------------------------------------------------------------------------------- /setup/Linux/removeoss.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if test `whoami` != "root" 3 | then 4 | echo "You must be super-user or logged in as root to uninstall OSS..." 5 | exit 0 6 | fi 7 | 8 | if test -f /etc/oss.conf 9 | then 10 | . /etc/oss.conf 11 | else 12 | OSSLIBDIR=/usr/lib/oss 13 | fi 14 | 15 | echo "Uninstalling OSS...." 16 | echo "Running soundoff...." 17 | /usr/sbin/soundoff 18 | echo "Restoring previously install sound drivers..." 19 | sh "$OSSLIBDIR"/scripts/restore_drv.sh 20 | echo "Removing OSS Files in MANIFEST" 21 | cd / 22 | for i in `cat "$OSSLIBDIR"/MANIFEST` 23 | do 24 | # echo "Removing file $i" 25 | rm -f $i 26 | done 27 | 28 | echo "Removing $OSSLIBDIR directory" 29 | rm -rf "$OSSLIBDIR" 30 | 31 | echo "OSS Uninstalled. However you may need to reboot the system." 32 | -------------------------------------------------------------------------------- /setup/Linux/shlibs: -------------------------------------------------------------------------------- 1 | libsalsa 2 oss-linux 2 | -------------------------------------------------------------------------------- /setup/Linux/spec.tmpl: -------------------------------------------------------------------------------- 1 | Summary: Open Sound System sound drivers for Linux 2 | License: Open Sound System 3 | Group: System/sound 4 | Source: oss 5 | URL: http://www.opensound.com 6 | Distribution: Open Sound System 7 | Vendor: 4Front Technologies 8 | Packager: 4Front Technologies 9 | BuildRoot: /tmp/prototype 10 | Requires: gcc, make 11 | %if 0%{?suse_version} 12 | Requires: kernel-default-devel 13 | %else 14 | Requires: kernel-devel 15 | %endif 16 | 17 | %description 18 | Open Sound System for Linux (OSS/Linux) is a commercial quality sound driver 19 | distributed by 4Front Technologies (http://www.opensound.com). OSS provides 20 | support for practically all sound cards on the market including PnP and 21 | many PCI ones. Installation and configuration is higly automated and easy to 22 | perform. To obtain technical support and additional features, you will need to 23 | order a license key from http://www.opensound.com/order.html 24 | %prep 25 | %setup 26 | %pre 27 | %post 28 | echo "Building OSS Modules for Linux-`uname -p` `uname -r`" 29 | cd OSSLIBDIR/build 30 | sh install.sh 31 | echo "Starting Open Sound System" 32 | /usr/sbin/soundoff >> /dev/null 2>&1 33 | /usr/sbin/soundon 34 | exit 0 35 | %preun 36 | sh OSSLIBDIR/scripts/restore_drv.sh 37 | %postun 38 | rm -rf OSSLIBDIR/* 39 | rm -f /usr/lib/libflashsupport.so 40 | -------------------------------------------------------------------------------- /setup/SCO_SV/S89oss: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if test -f /etc/oss.conf 3 | then 4 | . /etc/oss.conf 5 | else 6 | OSSLIBDIR=/usr/lib/oss 7 | fi 8 | 9 | ########## 10 | # 11 | # The first argument tells what to do. 12 | ########## 13 | 14 | state=$1 15 | 16 | case $state in 17 | 18 | 'start') 19 | # Signal the osscore module to forceload all the low level 20 | # drivers (in the right order). 21 | 22 | if test -f $OSSLIBDIR/starting 23 | then 24 | echo Previous start failed. Remove $OSSLIBDIR/starting 25 | echo and run soundon manually to start OSS. 26 | exit 1 27 | fi 28 | 29 | echo "Starting Open Sound System" 30 | /usr/sbin/soundoff > /dev/null 2>&1 31 | /usr/sbin/soundon 32 | rm -f $OSSLIBDIR/starting 33 | exit 0 34 | ;; 35 | 'stop') 36 | # Save mixer settings automatically if requested 37 | if test -f $OSSLIBDIR/etc/userdefs && grep -q "autosave_mixer yes" $OSSLIBDIR/etc/userdefs 38 | then 39 | /usr/sbin/savemixer 40 | fi 41 | exit 0 42 | ;; 43 | esac 44 | 45 | exit 1 46 | 47 | -------------------------------------------------------------------------------- /setup/SCO_SV/combpkg/depend: -------------------------------------------------------------------------------- 1 | # using depend in packages. 2 | X audio Audio Subsystem 3 | -------------------------------------------------------------------------------- /setup/SCO_SV/combpkg/request: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | 4 | uver=`uname -v` 5 | if [ "$uver" = 7.1.4 ] ; then 6 | CLASSES="$CLASSES uw7" 7 | else 8 | if [ $uver = "6.0.0" ] ; then 9 | CLASSES="$CLASSES osr6" 10 | else 11 | echo "invalid CLASS" 12 | exit 2 13 | fi 14 | fi 15 | 16 | # and so to any other packaging scripts 17 | cat >$1 < prototype/$OSSLIBDIR/MANIFEST 19 | (cd prototype; tar cf - . ) | compress > $PKGNAME.tar.Z 20 | 21 | if test -f 4front-private/export_package.sh 22 | then 23 | sh 4front-private/export_package.sh $PKGNAME.tar.Z . `sh showversion.sh` /tmp `uname -m` 24 | fi 25 | 26 | exit 0 27 | -------------------------------------------------------------------------------- /setup/SCO_SV/oss/modules/osscore/Drvmap: -------------------------------------------------------------------------------- 1 | osscore|Y|N|Sound Boards|Open Sound System 2 | |||OSS framework module 3 | -------------------------------------------------------------------------------- /setup/SCO_SV/oss/modules/osscore/Master: -------------------------------------------------------------------------------- 1 | $version 2 2 | $contact 4Front Technologies (http://www.opensound.com) 3 | $interface ddi 8mp 4 | osscore - R 5 | -------------------------------------------------------------------------------- /setup/SCO_SV/oss/modules/osscore/Node: -------------------------------------------------------------------------------- 1 | $maxchan 0 2 | osscore osscore%i c 0 0 0 0600 3 | -------------------------------------------------------------------------------- /setup/SCO_SV/oss/modules/osscore/System: -------------------------------------------------------------------------------- 1 | * Don't edit this file manually! This information will be ignored. 2 | * 3 | $version 2 4 | osscore Y 0 5 4 0 0 0 0 0 -1 5 | -------------------------------------------------------------------------------- /setup/SCO_SV/pkgdepend: -------------------------------------------------------------------------------- 1 | # using depend in packages. 2 | X audio Audio Subsystem 3 | -------------------------------------------------------------------------------- /setup/SCO_SV/postremove: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # Remove the device instances from /dev 3 | for i in `cat /tmp/installed_drivers` 4 | do 5 | rm -f /dev/$i[0-9]* 6 | done 7 | rm -f /tmp/installed_drivers 8 | 9 | # Remove the device files 10 | rm -f /dev/dsp /dev/dsp_* /dev/midi /dev/mixer 11 | rm -f /dev/dsp[0-9]* /dev/dsp_* 12 | rm -f /dev/mixer[0-9]* 13 | rm -f /dev/midi[0-9][0-9]* 14 | rm -f /dev/sndstat 15 | rm -f /etc/rc2.d/S89oss /etc/init.d/oss 16 | rm -rf /dev/oss 17 | exit 0 18 | -------------------------------------------------------------------------------- /setup/SCO_SV/preremove: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | . /etc/oss.conf 3 | 4 | /usr/sbin/soundoff 5 | cp -f $OSSLIBDIR/etc/installed_drivers /tmp/installed_drivers 6 | (cd $OSSLIBDIR;rm -rf etc/installed_drivers etc/legacy_devices logs conf) 7 | 8 | # Remove the drivers - preremove will copy installed_drivers to /tmp 9 | for n in `ls $OSSLIBDIR/modules` 10 | do 11 | if [ -d /etc/conf/pack.d/$n ]; then 12 | /etc/conf/bin/idinstall -P oss -d $n > /dev/null 2>&1 13 | rm -f $OSSLIBDIR/modules/$n/install.log 14 | fi 15 | done 16 | -------------------------------------------------------------------------------- /setup/SCO_SV/r.drvcfg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (c) 2005 by 4Front Technologies 4 | # All rights reserved. 5 | # 6 | # 7 | 8 | if test "`uname -s`" = "UnixWare" 9 | then 10 | PKGCHK=/usr/sbin/pkgchk 11 | else 12 | PKGCHK=/bin/pkgchk 13 | fi 14 | 15 | while read src 16 | do 17 | if [ -f $src ] 18 | then 19 | if $PKGCHK -p $src 20 | then 21 | rm -f $src 22 | else 23 | echo "not removing $src" 24 | fi 25 | fi 26 | done 27 | exit 0 28 | -------------------------------------------------------------------------------- /setup/SCO_SV/removeoss.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | if test `whoami` != "root" 3 | then 4 | echo "You must be super-user or logged in as root to uninstall OSS..." 5 | exit 0 6 | fi 7 | 8 | echo "Uninstalling OSS...." 9 | echo "Running soundoff...." 10 | /usr/sbin/soundoff 11 | 12 | echo Uninstalling OSS modules 13 | cp -f $OSSLIBDIR/etc/installed_drivers /tmp/installed_drivers 14 | (cd $OSSLIBDIR;rm -rf etc/installed_drivers etc/legacy_devices logs conf) 15 | 16 | # Remove the drivers - preremove will copy installed_drivers to /tmp 17 | for n in `ls $OSSLIBDIR/modules` 18 | do 19 | if [ -d /etc/conf/pack.d/$n ]; then 20 | /etc/conf/bin/idinstall -P oss -d $n > /dev/null 2>&1 21 | rm -f $OSSLIBDIR/modules/$n/install.log 22 | fi 23 | done 24 | 25 | echo "Removing OSS Files in MANIFEST" 26 | cd / 27 | for i in `cat /usr/lib/oss/MANIFEST` 28 | do 29 | # echo "Removing file $i" 30 | rm -f $i 31 | done 32 | 33 | echo "Removing /usr/lib/oss directory" 34 | rm -rf /usr/lib/oss 35 | 36 | echo "OSS Uninstalled. However you may need reboot the system." 37 | -------------------------------------------------------------------------------- /setup/SCO_SV/sbin/soundoff: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | . /etc/oss.conf 4 | 5 | if /sbin/modadmin -Q osscore >> /dev/null 2>&1 6 | then 7 | OK=1 8 | else 9 | echo OSS not loaded. 10 | exit 0 11 | fi 12 | 13 | if test ! -f $OSSLIBDIR/etc/installed_drivers 14 | then 15 | echo $OSSLIBDIR/etc/installed_drivers is missing. 16 | exit 1 17 | fi 18 | 19 | # Save mixer settings automatically if requested 20 | if test -f $OSSLIBDIR/etc/userdefs && /usr/bin/grep -q "autosave_mixer yes" $OSSLIBDIR/etc/userdefs 21 | then 22 | /usr/sbin/savemixer 23 | fi 24 | 25 | for n in `cat $OSSLIBDIR/etc/installed_drivers | sed 's/#.*//'` 26 | do 27 | /sbin/modadmin -U $n > /dev/null 2>&1 28 | done 29 | 30 | /sbin/modadmin -U osscore > /dev/null 2>&1 31 | 32 | if /sbin/modadmin -Q osscore >> /dev/null 2>&1 33 | then 34 | OK=1 35 | else 36 | exit 0 37 | fi 38 | 39 | echo Cannot unload the OSS driver modules 40 | 41 | exit 0 42 | -------------------------------------------------------------------------------- /setup/SunOS/.changelog: -------------------------------------------------------------------------------- 1 | 010814 by Dev Mazumdar: Added forceload.conf in build.sh so that USB driver loads. 2 | -------------------------------------------------------------------------------- /setup/SunOS/S89oss: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | if test -f /etc/oss.conf 3 | then 4 | . /etc/oss.conf 5 | else 6 | OSSLIBDIR=/usr/lib/oss 7 | fi 8 | 9 | ########## 10 | # 11 | # The first argument tells what to do. 12 | ########## 13 | 14 | state=$1 15 | 16 | if test -f /etc/oss.conf 17 | then 18 | . /etc/oss.conf 19 | else 20 | OSSLIBDIR=$OSSLIBDIR 21 | fi 22 | 23 | case $state in 24 | 25 | 'start') 26 | soundoff 27 | soundon 28 | exit 0 29 | ;; 30 | 'stop') 31 | /usr/sbin/savemixer > /dev/null 2>&1 32 | exit 0 33 | ;; 34 | esac 35 | 36 | exit 1 37 | 38 | -------------------------------------------------------------------------------- /setup/SunOS/__xtol-i86pc-i386.s: -------------------------------------------------------------------------------- 1 | .file "__xtol-i86pc-i386.s" 2 | .text 3 | .globl __xtol 4 | .type __xtol, @function 5 | __xtol: 6 | subl $0x8,%esp 7 | fnstcw 0x2(%esp) 8 | movw 0x2(%esp),%ax 9 | movw %ax,%cx 10 | andw $0xc00,%cx 11 | orw $0xc00,%ax 12 | movw %ax,0x0(%esp) 13 | fldcw 0x0(%esp) 14 | fistpl 0x4(%esp) 15 | fstcw 0x0(%esp) 16 | movw 0x0(%esp),%ax 17 | andw $0xf3ff,%ax 18 | orw %cx,%ax 19 | movw %ax,0x0(%esp) 20 | fldcw 0x0(%esp) 21 | movl 0x4(%esp),%eax 22 | addl $0x8,%esp 23 | ret 24 | .size __xtol, .-__xtol 25 | -------------------------------------------------------------------------------- /setup/SunOS/i.drvcfg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (c) 2005 4Fronte Technologies 4 | # 5 | 6 | while read src dest 7 | do 8 | if [ ! -f $dest ] ; then 9 | mv $src $dest 10 | fi 11 | done 12 | exit 0 13 | -------------------------------------------------------------------------------- /setup/SunOS/preremove: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | cp -f ${PKG_INSTALL_ROOT}/etc/oss/installed_drivers ${PKG_INSTALL_ROOT}/tmp/installed_drivers 4 | 5 | rm -f ${PKG_INSTALL_ROOT}/usr/sfw/lib/libflashsupport.so 6 | -------------------------------------------------------------------------------- /setup/SunOS/r.drvcfg: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | # 3 | # Copyright (c) 2005 by 4Front Technologies 4 | # All rights reserved. 5 | # 6 | # 7 | 8 | while read src 9 | do 10 | if [ -f $src ] 11 | then 12 | if /usr/sbin/pkgchk -p $src 13 | then 14 | rm -f $src 15 | else 16 | echo "not removing $src" 17 | fi 18 | fi 19 | done 20 | exit 0 21 | -------------------------------------------------------------------------------- /setup/SunOS/svc-oss.htm: -------------------------------------------------------------------------------- 1 | #!/sbin/sh 2 | # 3 | 4 | . /lib/svc/share/smf_include.sh 5 | 6 | # Generic runtime checks 7 | OSS_SERVICE=`echo $SMF_FMRI | sed 's/.*:\(.*\)/\1/'` 8 | 9 | if [ -z "$SMF_FMRI" ]; then 10 | echo "Open Sound System service can only be started/stopped via the SMF framework" 11 | exit $SMF_EXIT_ERR_NOSMF 12 | fi 13 | 14 | if [ -z "$OSS_SERVICE" ]; then 15 | echo "Unable to parse service name from SMF FRMI $SMF_FRMI" 16 | exit $SMF_EXIT_ERR_NOSMF 17 | fi 18 | 19 | # 20 | # Original script, refactored 21 | # 22 | 23 | if test -f /etc/oss.conf 24 | then 25 | . /etc/oss.conf 26 | else 27 | OSSLIBDIR=/usr/lib/oss 28 | fi 29 | 30 | oss_start() { 31 | /usr/sbin/soundon > /dev/null 2>&1 32 | # Somehow this is required overhere to prevent skipping 33 | /usr/sbin/ossdevlinks 34 | } 35 | 36 | oss_stop() { 37 | # Save mixer settings automatically if requested 38 | if test -f $OSSLIBDIR/etc/userdefs && /usr/xpg4/bin/grep -q "autosave_mixer yes" $OSSLIBDIR/etc/userdefs 39 | then 40 | /usr/sbin/savemixer 41 | fi 42 | } 43 | 44 | case $1 in 45 | 'start') 46 | oss_start 47 | ;; 48 | 'stop') 49 | oss_stop 50 | ;; 51 | *) 52 | echo "Usage: $0 { start | stop }" 53 | exit 1 54 | ;; 55 | esac 56 | -------------------------------------------------------------------------------- /setup/VxWorks/build.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | rm -rf prototype 4 | mkdir prototype 5 | mkdir prototype/oss-install 6 | 7 | if test "$LD " = " " 8 | then 9 | LD=ar 10 | fi 11 | 12 | $LD -r -o prototype/oss-install/osscore.o target/objects/*.o 13 | 14 | cp target/modules/*.o prototype/oss-install/ 15 | 16 | if test "$AR " = " " 17 | then 18 | AR=ar 19 | fi 20 | 21 | $AR rc prototype/oss-install/liboss.a prototype/oss-install/*.o 22 | 23 | exit 0 24 | -------------------------------------------------------------------------------- /setup/VxWorks/make.local: -------------------------------------------------------------------------------- 1 | build: kernel/framework/include/buildid.h all 2 | LD=$(LD) AR=$(AR) sh build.sh 3 | 4 | package: build 5 | sh setup/VxWorks/mkpkg.sh 6 | -------------------------------------------------------------------------------- /setup/build_common.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | SRCDIR=$1 4 | OSSLIBDIR=$2 5 | 6 | if test ! -d $SRCDIR 7 | then 8 | echo Bad SRCDIR parameter 9 | exit 1 10 | fi 11 | 12 | if test ! -d prototype 13 | then 14 | echo Bad prototype directory 15 | exit 1 16 | fi 17 | 18 | # Copy common files to the prototype tree 19 | cp -pRf $SRCDIR/oss/* prototype/$OSSLIBDIR/ 20 | rm -f prototype/$OSSLIBDIR/oss/.nomake 21 | 22 | #cp $SRCDIR/lib/libossmix/libossmix.h prototype/usr/lib/oss/include 23 | 24 | chmod 700 prototype/usr/sbin/* 25 | 26 | exit 0 27 | -------------------------------------------------------------------------------- /setup/ossvers.c: -------------------------------------------------------------------------------- 1 | #define COPYING Copyright (C) Hannu Savolainen and Dev Mazumdar 2006. All rights reserved. 2 | 3 | #include 4 | #include 5 | 6 | int 7 | main (void) 8 | { 9 | printf (OSS_VERSION_STRING "\n"); 10 | return 0; 11 | } 12 | -------------------------------------------------------------------------------- /setup/srcconf_beos.inc: -------------------------------------------------------------------------------- 1 | #define HAVE_SYSDEP 2 | #define HAVE_KERNEL_FLAGS 3 | static void 4 | check_sysdep (conf_t * conf, struct utsname *un) 5 | { 6 | strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I."); 7 | 8 | /* fixup machine names */ 9 | if (strcmp (un->machine, "BePC") == 0) 10 | { 11 | strcpy (conf->arch, "i586"); 12 | } 13 | if (strcmp (un->machine, "BePC") == 0 || 14 | strcmp (un->machine, "i386") == 0 || 15 | strcmp (un->machine, "i486") == 0 || 16 | strcmp (un->machine, "i586") == 0 || strcmp (un->machine, "i686") == 0) 17 | { 18 | strcpy (conf->platform, "i86pc"); 19 | } 20 | if (strcmp (un->machine, "BeMac") == 0 || 21 | strcmp (un->machine, "BeBox") == 0) 22 | { 23 | /* seems to be what Linux uses */ 24 | /* XXX: check for ppc64 ? */ 25 | strcpy (conf->arch, "ppc"); 26 | strcpy (conf->platform, "ppc"); 27 | } 28 | } 29 | 30 | static void 31 | add_kernel_flags (FILE * f) 32 | { 33 | fprintf (f, "CFLAGS=-O2 -D_KERNEL -D_KERNEL_MODE=1 -no-fpic\n"); 34 | } 35 | -------------------------------------------------------------------------------- /setup/srcconf_freebsd.inc: -------------------------------------------------------------------------------- 1 | #define HAVE_SYSDEP 2 | #define HAVE_KERNEL_FLAGS 3 | static void 4 | check_sysdep (conf_t * conf, struct utsname *un) 5 | { 6 | strcpy (conf->cplusplus, "g++ -fno-rtti -fno-exceptions -I."); 7 | strcpy (conf->platform, "i86pc"); 8 | } 9 | 10 | static void 11 | add_kernel_flags (FILE * f) 12 | { 13 | # if defined(__x86_64__) 14 | fprintf (f, 15 | "CFLAGS += -O3 -fno-common -mcmodel=kernel -mno-red-zone -fno-asynchronous-unwind-tables -ffreestanding\n"); 16 | # endif 17 | } 18 | -------------------------------------------------------------------------------- /setup/txt2man: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/setup/txt2man -------------------------------------------------------------------------------- /setup/x11.pc: -------------------------------------------------------------------------------- 1 | prefix=/usr/openwin 2 | exec_prefix=${prefix} 3 | libdir=${exec_prefix}/lib 4 | includedir=${prefix}/include 5 | 6 | xthreadlib= 7 | 8 | Name: X11 9 | Description: X Library 10 | Version: 0.0 11 | Requires: xproto kbproto inputproto 12 | Requires.private: xau xdmcp 13 | Cflags: -I${includedir} -D_REENTRANT -D_POSIX_PTHREAD_SEMANTICS -DXTHREADS -DXUSE_MTSAFE_API 14 | Libs: -L${libdir} -R${libdir} -lX11 15 | Libs.private: 16 | 17 | -------------------------------------------------------------------------------- /showversion.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | DIR=`dirname $0` 4 | 5 | if test "$DIR " = " " 6 | then 7 | DIR=. 8 | fi 9 | 10 | grep "define OSS_VERSION_ID" $DIR/kernel/framework/include/oss_version.h|sed 's/.*_ID "/v/'|sed 's/"//' 11 | -------------------------------------------------------------------------------- /tutorials/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/.nomake -------------------------------------------------------------------------------- /tutorials/drivers/myossdev0/.config: -------------------------------------------------------------------------------- 1 | # 2 | # The .config file is optional. All drivers will inherit the config 3 | # settings of the parent environment. The default device driver settings are 4 | # suitable for PCI devices that work under any operating system and any 5 | # processor architecture. 6 | # 7 | # Let's assume this sample driver is for a sound chip that is only used 8 | # on PC motherboards. Since it's known that it will not be present in 9 | # machines having Sparc or PPC processor it doesn't make any sense to 10 | # ship the driver in OSS packages for other processor architectures. 11 | # The platform=i86pc does the trick. i86pc means systems based on the 12 | # IA32 (AKA x86, i386..i686) architecture and it's 64 bit variants such as 13 | #x86_64 (AMD64, EMT64). 14 | # 15 | platform=i86pc 16 | # 17 | # 18 | # It is also possible to make the driver available only for a given operating 19 | # system for example if it depends on some kernel services not available 20 | # anywhere else. This can be done using the targetos keyword. For example 21 | # targetos=Linux and/or targetos=Solaris. 22 | # 23 | # If the driver is known to be incompatible with certain operating system 24 | # it's possible to exclude it using the forfetos keyword. For example 25 | # forgetos=Linux. 26 | -------------------------------------------------------------------------------- /tutorials/drivers/myossdev0/.devices: -------------------------------------------------------------------------------- 1 | # 2 | # Devices supported by the myossdev driver 3 | # 4 | # The lines beginning with '#' in column 1 are comments. Using '#' in any 5 | # other column is not permitted. Also empty lines are illegal. 6 | # 7 | # The pci666,777 entry refers to the primary PCI vendor/device ID with 8 | # vendor=0x666 and device=0x777. All devices with this ID will be mapped 9 | # to this driver. 10 | myossdev pci666,777 Generic Acme Laboratories Evil Audio device 11 | # 12 | # PCI subdevice IDs can be used to identify specific models of given device. 13 | # In most cases this is unnecessary but it makes it possible to show more 14 | # meaningful device names in possible configuration utilities. For example 15 | # pcs666,111 means PCI device with subvendor ID of 0x666 and subdevice ID 16 | # of 111. 17 | myossdev pcs666,111 Acme Laboratories Evil Audio basic 18 | myossdev pcs666,999 Acme Laboratories Evil Audio Super Deluxe Turbo 19 | -------------------------------------------------------------------------------- /tutorials/drivers/myossdev0/.params: -------------------------------------------------------------------------------- 1 | /* 2 | * The initial comment is optional and gives information common to all config 3 | * options. 4 | */ 5 | int myossdev_verbose = 0; 6 | /* 7 | * Setting myossdev0_verbose to 1 enables various debugging messages 8 | * displayed by the driver. This option can be used when debugging problems 9 | * with the device. 10 | */ 11 | 12 | -------------------------------------------------------------------------------- /tutorials/drivers/myossdev0/README: -------------------------------------------------------------------------------- 1 | This is the step 0 of the sample OSS driver project. This driver 2 | has support for loading/unloading (attach/detach) and nothing else. 3 | More features will be added in the subsequent steps. 4 | 5 | To compile this driver it must be copied to a directory with 6 | proper name. So you need to create kernel/drv/myossdev (inside the OSS 7 | source tree) and copy contents of this directory to it. Then follow the 8 | instructions for compiling and installing OSS. 9 | -------------------------------------------------------------------------------- /tutorials/drivers/myossdev0/myossdev.h: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: Common definitions for the ACME Labs Evil Audio driver. 3 | * 4 | * The intial comment usually doesn't contain much information. 5 | */ 6 | 7 | /* 8 | * As in the C sources you need to include a placeholder define for the 9 | * copyright notice. To avoid getting multiple define warnings for the COPYING 10 | * macro the header files should use macro name like COPYING2..COPYING9. 11 | */ 12 | 13 | #define COPYING2 Copyright (C) ACME Laboratories 2000-2006. All rights reserved. 14 | 15 | /* 16 | * Each device instance should have a per-device data structure that contains 17 | * variables common to all sub-devices of the card. By convenntion this 18 | * structure is called devc. Driver designers may use different terminology. 19 | * However use of devc is highly recomended in all OSS drivers because it 20 | * will make maintenance of the code easier. 21 | */ 22 | 23 | typedef struct _myossdev_devc_t *myoss_devc_t; 24 | 25 | struct _myossdev_devc_t 26 | { 27 | oss_device_t *osdev; /* A handle to the device given by the OSS core. */ 28 | oss_mutex_t *mutex; /* A lock/mutex variable for the device */ 29 | }; 30 | -------------------------------------------------------------------------------- /tutorials/sndkit/.depend: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/.depend -------------------------------------------------------------------------------- /tutorials/sndkit/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/.nomake -------------------------------------------------------------------------------- /tutorials/sndkit/Makefile: -------------------------------------------------------------------------------- 1 | TOPDIR=../.. 2 | 3 | include $(TOPDIR)/make.defs 4 | 5 | SUBDIRS=dsp morse tests samples sblive softsynth userdev_demo 6 | 7 | all: subdirs 8 | 9 | clean: clean_local clean_subdirs 10 | -------------------------------------------------------------------------------- /tutorials/sndkit/dsp/Makefile: -------------------------------------------------------------------------------- 1 | #CC = gcc 2 | #CFLAGS = -O6 -m486 -funroll-loops -Wall 3 | CFLAGS = -O -I../../../include 4 | #LD = gcc 5 | LD = cc 6 | #LDFLAGS = -s -N 7 | LDFLAGS = -s 8 | 9 | INSTALLDIR = /usr/local/bin 10 | 11 | .c.o: 12 | # $(CC) -c $(CFLAGS) -o $*.o $< 13 | $(CC) -c $(CFLAGS) $< 14 | 15 | all: srec 16 | 17 | install: all 18 | cp srec $(INSTALLDIR) 19 | ln -sf $(INSTALLDIR)/srec $(INSTALLDIR)/splay 20 | chown root $(INSTALLDIR)/splay $(INSTALLDIR)/srec 21 | chmod 755 $(INSTALLDIR)/splay $(INSTALLDIR)/srec 22 | cd str;make install 23 | 24 | srec: recplay.o help.o 25 | $(LD) $(LDFLAGS) recplay.o help.o -o srec 26 | 27 | clean: 28 | rm -f $(OBJS) *.o srec a.out core 29 | cd str;make clean 30 | 31 | recplay.o: recplay.c 32 | -------------------------------------------------------------------------------- /tutorials/sndkit/dsp/Readme: -------------------------------------------------------------------------------- 1 | srec and splay utilities (recplay.c) 2 | ==================================== 3 | 4 | Run "make install" to install "splay" and "srec" into /usr/local/bin. 5 | 6 | These programs support recording and playback of digitized 7 | voice. There is several possible parameters to these programs. 8 | Try "srec -h" and "splay -h" for further information. 9 | 10 | The vplay -program in the vplay directory is a improved version of 11 | the recplay.c. 12 | 13 | NOTE! The str program has been moved to the subdirectory ./str 14 | -------------------------------------------------------------------------------- /tutorials/sndkit/dsp/str/Makefile: -------------------------------------------------------------------------------- 1 | #CC = gcc 2 | #CFLAGS = -O6 -m486 -funroll-loops -Wall 3 | #LD = gcc 4 | #LDFLAGS = -s -N 5 | CC = cc 6 | CFLAGS = -O 7 | LD = cc 8 | LDFLAGS = -s 9 | 10 | INSTALLDIR = /usr/local/bin 11 | 12 | OBJS = str.o strplay.o ../help.o 13 | 14 | .c.o: 15 | # $(CC) -c $(CFLAGS) -o $*.o $< 16 | $(CC) -c $(CFLAGS) $< 17 | 18 | all: str 19 | 20 | install: all 21 | cp str $(INSTALLDIR) 22 | chown root $(INSTALLDIR)/str 23 | chmod 755 $(INSTALLDIR)/str 24 | ln -f $(INSTALLDIR)/str $(INSTALLDIR)/str15 25 | ln -f $(INSTALLDIR)/str $(INSTALLDIR)/str32 26 | 27 | str: $(OBJS) 28 | $(LD) $(LDFLAGS) $(OBJS) -o str 29 | 30 | clean: 31 | rm -f $(OBJS) str a.out core 32 | 33 | str.o: str.c str.h 34 | strplay.o: strplay.c str.h 35 | -------------------------------------------------------------------------------- /tutorials/sndkit/dsp/vplay/Makefile: -------------------------------------------------------------------------------- 1 | #CC=gcc 2 | #CFLAGS=-O6 -funroll-loops -Wall 3 | CC=cc 4 | CFLAGS=-O -Wall 5 | 6 | all: vplay vrec 7 | 8 | vplay: vplay.c fmtheaders.h 9 | $(CC) $(CFLAGS) vplay.c -o vplay 10 | strip vplay 11 | 12 | vrec: vplay 13 | ln -s vplay vrec 14 | clean: 15 | rm -f vplay vrec *.o core 16 | 17 | install: vplay 18 | cp vplay /usr/local/bin 19 | rm -f /usr/local/bin/vrec 20 | ln -s /usr/local/bin/vplay /usr/local/bin/vrec 21 | -------------------------------------------------------------------------------- /tutorials/sndkit/dsp/vplay/etc.magic.vplay: -------------------------------------------------------------------------------- 1 | # 2 | # Creative Labs Voice file 3 | # 4 | 0 string Creative\ Voice\ File Creative Labs Voice File 5 | >19 byte 0x1A 6 | >23 byte >0 - version %d 7 | >22 byte >0 \b.%d 8 | # 9 | # Microsoft WAVE format 10 | 0 string RIFF Microsoft RIFF 11 | >8 string WAVE - WAVE format 12 | >34 short >0 %d bit 13 | >22 short =1 Mono 14 | >22 short =2 Stereo 15 | >22 short >2 %d Channels 16 | >24 long >0 %d Hz 17 | -------------------------------------------------------------------------------- /tutorials/sndkit/dsp/vplay_vxworks/Makefile: -------------------------------------------------------------------------------- 1 | 2 | # Makefile for OSS/VxWorks 3 | # 4 | 5 | CPU = I80486 6 | TOOL = gnu 7 | 8 | include $(WIND_BASE)/target/h/make/defs.bsp 9 | include $(WIND_BASE)/target/h/make/make.$(CPU)$(TOOL) 10 | include $(WIND_BASE)/target/h/make/defs.$(WIND_HOST_TYPE) 11 | 12 | exe: vplay.o 13 | -------------------------------------------------------------------------------- /tutorials/sndkit/libossmix_demo/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-I/usr/lib/oss/include 2 | LDFLAGS=-lossmix 3 | 4 | # Comment out the following line under Solaris 5 | #LDFLAGS += -lnsl -lresolv -lsocket 6 | 7 | PROGRAMS=ossmixlib_demo 8 | 9 | all: $(PROGRAMS) 10 | 11 | clean: 12 | rm -f *.o *~ x y z $(PROGRAMS) 13 | 14 | -------------------------------------------------------------------------------- /tutorials/sndkit/libossmix_demo/README: -------------------------------------------------------------------------------- 1 | This simple program demonstrates how to use the libossmix library 2 | to access mixer settings (instead of making ioctl calls directly). 3 | 4 | Use the -h and -p command line arguments of libossmix_demo to 5 | connect to a remote ossmixd server running in a remote host. 6 | -------------------------------------------------------------------------------- /tutorials/sndkit/morse/Makefile: -------------------------------------------------------------------------------- 1 | INSTALLDIR=/usr/local/bin 2 | TARGETS=morse morse2 morse3 testgen loadcw 3 | CFLAGS=-I../../../include 4 | LDLAGS= 5 | 6 | all: $(TARGETS) 7 | 8 | morse2.o morse3.o morse.o testgen.o: charlist.h 9 | 10 | morse: morse.o 11 | $(CC) $(LDFLAGS) -o morse morse.o -lm 12 | 13 | morse2: morse2.o 14 | $(CC) $(LDFLAGS) -o morse2 morse2.o -lm 15 | 16 | morse3: morse3.o 17 | $(CC) $(LDFLAGS) -o morse3 morse3.o -lm 18 | 19 | testgen: testgen.o 20 | $(CC) $(LDFLAGS) -o testgen testgen.o -lm 21 | 22 | install: $(TARGETS) 23 | cp -f $(TARGETS) randomcw Vvcw $(INSTALLDIR) 24 | chmod 755 $(INSTALLDIR)/randomcw 25 | 26 | clean: 27 | rm -f *.o $(TARGETS) core core.* x y z *~ 28 | -------------------------------------------------------------------------------- /tutorials/sndkit/morse/Vvcw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/Vvcw -------------------------------------------------------------------------------- /tutorials/sndkit/morse/charlist.h: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/charlist.h -------------------------------------------------------------------------------- /tutorials/sndkit/morse/loadcw.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/loadcw.c -------------------------------------------------------------------------------- /tutorials/sndkit/morse/morse.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/morse.c -------------------------------------------------------------------------------- /tutorials/sndkit/morse/morse2.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/morse2.c -------------------------------------------------------------------------------- /tutorials/sndkit/morse/morse3.c: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/morse3.c -------------------------------------------------------------------------------- /tutorials/sndkit/morse/randomcw: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/tutorials/sndkit/morse/randomcw -------------------------------------------------------------------------------- /tutorials/sndkit/morse/testgen.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | 7 | int ncodes; 8 | 9 | char randomlist[256]; 10 | int nrandom = 0; 11 | 12 | #include "charlist.h" 13 | 14 | int 15 | main (int argc, char *argv[]) 16 | { 17 | int ngroups = 0, maxgroups = 20; 18 | ncodes = strlen (Chars); 19 | 20 | srandom (time (0)); 21 | 22 | if (argc > 1) 23 | { 24 | parse_charlist (argv[1]); 25 | } 26 | else 27 | { 28 | strcpy (randomlist, Chars); 29 | nrandom = strlen (randomlist); 30 | } 31 | 32 | if (argc > 2) 33 | maxgroups = atoi (argv[2]); 34 | 35 | if (nrandom < 2) 36 | { 37 | printf ("Bad character list\n"); 38 | exit (-1); 39 | } 40 | 41 | while (1) 42 | { 43 | int i, c; 44 | 45 | if (ngroups && !(ngroups % 5)) 46 | printf ("\n"); 47 | 48 | if (ngroups++ >= maxgroups) 49 | { 50 | printf ("\n"); 51 | exit (0); 52 | } 53 | 54 | 55 | for (i = 0; i < 5; i++) 56 | { 57 | c = random () % nrandom; 58 | 59 | printf ("%c", randomlist[c]); 60 | } 61 | 62 | printf (" "); 63 | fflush (stdout); 64 | } 65 | } 66 | -------------------------------------------------------------------------------- /tutorials/sndkit/ossmplay/Makefile: -------------------------------------------------------------------------------- 1 | CC = cc 2 | CFLAGS = -g 3 | LIBOBJS = mlib.o 4 | INSTALLDIR=/usr/local/bin 5 | INSTALLLIB=/usr/lib 6 | .PREFIXES: .o .c 7 | 8 | # Uncomment the following lines if you want to use OSSlib. 9 | # Look at the OSSlib subdirectory for more info about OSSlib. 10 | # NOTE! OSS version 3.8-beta2 or later is required for OSSlib. 11 | OSSDEFINES=-DOSSLIB 12 | OSSLIBS=-lOSSlib 13 | 14 | all : ossmplay 15 | 16 | install: ossmplay 17 | cp ossmplay $(INSTALLDIR)/ossmplay 18 | 19 | ossmplay : main.o $(LIBOBJS) 20 | $(CC) $(CFLAGS) -o ossmplay main.o $(LIBOBJS) -L$(INSTALLLIB) $(OSSLIBS) 21 | 22 | main.o: mlib.h main.c 23 | $(CC) $(CFLAGS) $(OSSDEFINES) -c main.c 24 | 25 | mlib.o: mlib.h 26 | 27 | .c.o: 28 | $(CC) $(CFLAGS) -c $< 29 | 30 | clean: 31 | rm -f *.o ossmplay core 32 | -------------------------------------------------------------------------------- /tutorials/sndkit/samples/Makefile: -------------------------------------------------------------------------------- 1 | # 2 | # Note! In most systems soundcard.h located under or is for 3 | # obsolete OSS 3.x version and these utilities will fail to compile with 4 | # it. For safety reasons utilities located in this directory have been 5 | # changed to include just instead of . 6 | # 7 | # The correct version of soundcard.h is located in 8 | # /usr/lib/oss/include/sys. However some operating systems have OSS4 9 | # included in the base system and /usr/include/sys/soundcard.h may be 10 | # correct. 11 | # 12 | # You can use the OSSLIBDIR variable defined in /etc/oss.conf. If this 13 | # file exists then include it in the Makefile. You can use 14 | # -I(OSSLIBDIR)/include/sys 15 | 16 | CFLAGS=-I../../../include 17 | 18 | # Note2! Not all programs are included in TARGET. The missing programs are 19 | # used to demonstrate OSS features that are not recommended. 20 | 21 | TARGETS=audiolevel dsp_geterror_demo fulldup midi midiin mixer_applet mixext mmap_duplex mmap_test playtgt recsrc singen 22 | 23 | all: $(TARGETS) 24 | 25 | clean: 26 | rm -f $(TARGETS) *.o core core.* *.core x y z *~ 27 | -------------------------------------------------------------------------------- /tutorials/sndkit/samples/Readme: -------------------------------------------------------------------------------- 1 | Sample and skeleton programs for programming with OSS 2 | ===================================================== 3 | 4 | Warning! These source files have not been checked for full OSS 4.0 5 | compatibility (work in progress). 6 | 7 | For more information about these programs contact hannu@opensound.com. 8 | -------------------------------------------------------------------------------- /tutorials/sndkit/samples/midiin.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: A minimalistic MIDI input programming sample. 3 | * Copyright (C) 4Front Technologies, 2002-2004. Released under GPLv2/CDDL. 4 | * 5 | * Description: 6 | * This simple program opens a MIDI device file and displays everything 7 | * it receives in hexadecimal format. 8 | * 9 | * Please look at the "{!link MIDI}" section of the OSS Developer's 10 | * manual for more info about MIDI programming. 11 | */ 12 | 13 | #include 14 | #include 15 | #include 16 | #include 17 | #include 18 | 19 | #define DEVICE "/dev/midi" 20 | 21 | int 22 | main () 23 | { 24 | int fd; 25 | unsigned char buf[128]; 26 | int l; 27 | 28 | if ((fd = open (DEVICE, O_RDONLY, 0)) == -1) 29 | { 30 | perror ("open " DEVICE); 31 | exit (-1); 32 | } 33 | 34 | /* 35 | * Note that read may return any number of bytes between 0 and sizeof(buf). 36 | * -1 means that some error has occurred. 37 | */ 38 | 39 | while ((l = read (fd, buf, sizeof (buf))) != -1) 40 | { 41 | int i; 42 | 43 | for (i = 0; i < l; i++) 44 | { 45 | if (buf[i] & 0x80) /* Status byte */ 46 | printf ("\n"); 47 | printf ("%02x ", buf[i]); 48 | } 49 | 50 | fflush (stdout); 51 | } 52 | 53 | close (fd); 54 | exit (0); 55 | } 56 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/README: -------------------------------------------------------------------------------- 1 | This directory contains undocumented and unsupported utilities to compile 2 | DSP code for SB Live! and Audigy/2/4. The sblive driver has used precompiled 3 | embedded versions of this code (emu10k1_dsp.h and emu10k2_dsp.h) so these tools 4 | have not been tested for years. However it should still be possible to modify, 5 | compile and load the code to the card. 6 | 7 | Undocumented and unsupported really means that. If you want to use these tools 8 | then you have to obtain the knowledge about the Live!/audigy DSP architecture 9 | yourself. Also you need to figure out how these tools work. 10 | 11 | Note! The Makefile required to compile this stuff is included in the "source" 12 | directory of OSS. However this file may not appear in the "build" tree. 13 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/emu10k1.mac: -------------------------------------------------------------------------------- 1 | // Constants for EMU 10k1 (SB Live) 2 | // Sends 3 | 4 | .send SEND_L 0 5 | .send SEND_R 1 6 | .send SEND_SL 2 7 | .send SEND_SR 3 8 | .send SEND_C 4 9 | .send SEND_W 5 10 | .send SEND_RL 6 11 | .send SEND_RR 7 12 | 13 | // NOTE! 5 and 6 reserved for S/PDIF (AC3) passthrough with Audigy 14 | 15 | // Inputs 16 | 17 | .input AC97IN_L 0 18 | .input AC97IN_R 1 19 | .input CDSPDIFIN_L 2 20 | .input CDSPDIFIN_R 3 21 | .input ZVIN_L 4 22 | .input ZVIN_R 5 23 | .input GPSPDIFIN_L 6 // TOSLink 24 | .input GPSPDIFIN_R 7 25 | .input MICIN_L 8 // LiveDrive (Line/Mic In 1) 26 | .input MICIN_R 9 27 | .input CXSPDIFIN_L 10 // LiveDrive (Coax S/PDIF input) 28 | .input CXSPDIFIN_R 11 29 | .input AUXIN_L 12 // LiveDrive (Line/Mic 2) 30 | .input AUXIN_R 13 31 | 32 | // Outputs 33 | 34 | .output FRONT_L 0 35 | .output FRONT_R 1 36 | .output SPDOUT1_L 2 37 | .output SPDOUT1_R 3 38 | .output DCENTER 4 // Digital Center channel 39 | .output DLFE 5 // Digital LFE 40 | .output HEADPH_L 6 // LiveDrive headphone out 41 | .output HEADPH_R 7 42 | .output SURR_L 8 // Rear output 43 | .output SURR_R 9 44 | .output ADC_L 10 // Send to the ADC recording channel 45 | .output ADC_R 11 46 | .output MICREC 12 // Send to the microphone recording buffer 47 | .output AC97SURR_L 13 // AC97 Surround L 48 | .output AC97SURR_R 14 // AC97 Surround R 49 | 50 | .output ACENTER 17 // Analog center channel 51 | .output ALFE 18 // Analog LFE output 52 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/emuasm1: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/opt/langtools/lbin:/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1:$PATH 3 | cpp < $1|./asm10k `basename $1 .dsp`.bin1 -1 4 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/emuasm2: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | PATH=/opt/langtools/lbin:/usr/local/lib/gcc-lib/sparc-sun-solaris2.6/2.8.1:$PATH 3 | cpp -DAUDIGY < $1|./asm10k `basename $1 .dsp`.bin2 -2 4 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/mkheader.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | 5 | int 6 | main (int argc, char *argv[]) 7 | { 8 | unsigned char buffer[1024]; 9 | int i, l, n = 0; 10 | 11 | if (argc != 2) 12 | { 13 | fprintf (stderr, "Bad usage\n"); 14 | exit (-1); 15 | } 16 | 17 | printf ("static unsigned char %s[] =\n", argv[1]); 18 | printf ("{\n"); 19 | 20 | while ((l = read (0, buffer, sizeof (buffer))) > 0) 21 | { 22 | for (i = 0; i < l; i++) 23 | { 24 | if (n > 0) 25 | printf (", "); 26 | 27 | if (n && (n % 16) == 0) 28 | printf ("\n"); 29 | printf ("0x%02x", buffer[i]); 30 | n++; 31 | } 32 | } 33 | 34 | printf ("\n};\n"); 35 | 36 | exit (0); 37 | } 38 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/null.dsp: -------------------------------------------------------------------------------- 1 | #include "emu10k2.mac" 2 | 3 | .gpr AUX_L 4 | .gpr AUX_R 5 | .gpr SPDIF_TMP_L 6 | .gpr SPDIF_TMP_R 7 | .parm _PASSTHROUGH 0 onoff; 8 | 9 | ACC3(AUX_L, SEND_L, 0, 0) 10 | ACC3(FRONT_L, AUX_L, 0, 0) 11 | 12 | ACC3(AUX_R, SEND_L, 0, 0) 13 | ACC3(FRONT_R, AUX_L, 0, 0) 14 | 15 | ACC3(SURR_R, 0, 0, 0) 16 | ACC3(SURR_L, 0, 0, 0) 17 | ACC3(SPDIF_TMP_L, SPDIF_L, 0, 0) 18 | ACC3(SPDIF_TMP_R, SPDIF_R, 0, 0) 19 | 20 | MACINTS(SPDOUT1_L, 0, AUX_L, _PASSTHROUGH_OFF) 21 | MACINTS(SPDOUT1_R, 0, AUX_R, _PASSTHROUGH_OFF) 22 | MACINTS(SPDOUT1_L, SPDOUT1_L, SPDIF_TMP_L, _PASSTHROUGH_ON) 23 | MACINTS(SPDOUT1_R, SPDOUT1_R, SPDIF_TMP_R, _PASSTHROUGH_ON) 24 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/vu.mac: -------------------------------------------------------------------------------- 1 | #define COPYING3 Copyright (C) Hannu Savolainen and Dev Mazumdar 2000-2006. All rights reserved. 2 | // VU meter computation macros 3 | // 4 | // Simple VU 5 | #define VU(vuvar, input) \ 6 | TSTNEG(VUTMP, input, input, 0);\ 7 | LIMIT(vuvar, vuvar, vuvar, VUTMP) 8 | /* VU meter with volume scaling */ 9 | #define VUSCALE(vuvar, input, scale) \ 10 | MACS(VUTMP2, 0, input, scale) ;\ 11 | TSTNEG(VUTMP, VUTMP2, VUTMP2, 0);\ 12 | LIMIT(vuvar, vuvar, vuvar, VUTMP) 13 | /* VU meter with volume scaling and summing with a 'base' signal */ 14 | #define VUSCALESUM(vuvar, basevar, input, scale) \ 15 | MACS(VUTMP2, basevar, input, scale) ;\ 16 | TSTNEG(VUTMP, VUTMP2, VUTMP2, 0);\ 17 | LIMIT(vuvar, vuvar, vuvar, VUTMP) 18 | -------------------------------------------------------------------------------- /tutorials/sndkit/sblive/writegpr.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | #include 6 | #include 7 | #define oss_native_ulong unsigned long 8 | #define sound_os_info unsigned long 9 | #define ac97_devc unsigned long 10 | typedef int oss_mutex; 11 | #include 12 | #include 13 | 14 | int 15 | main (int argc, char *argv[]) 16 | { 17 | int ossfd, reg, value; 18 | char *dspname = "/dev/dsp"; 19 | sblive_reg rg; 20 | 21 | if (argc < 3) 22 | { 23 | fprintf (stderr, "Usage: %s GPR hexvalue\n", argv[0]); 24 | exit (-1); 25 | } 26 | 27 | if (sscanf (argv[1], "%d", ®) != 1) 28 | exit (-1); 29 | 30 | if (sscanf (argv[2], "%x", &value) != 1) 31 | exit (-1); 32 | 33 | if ((ossfd = open (dspname, O_WRONLY, 0)) == -1) 34 | { 35 | perror (dspname); 36 | exit (-1); 37 | } 38 | 39 | rg.reg = GPR0 + reg; 40 | rg.chn = 0; 41 | rg.value = value; 42 | 43 | if (ioctl (ossfd, SBLIVE_WRITEREG, &rg) == -1) 44 | perror (dspname); 45 | 46 | 47 | exit (0); 48 | } 49 | -------------------------------------------------------------------------------- /tutorials/sndkit/softsynth/Makefile: -------------------------------------------------------------------------------- 1 | include /etc/oss.conf 2 | 3 | BINDIR=/usr/local/bin 4 | 5 | OSSINCLUDES=-I$(OSSLIBDIR)/include/sys -I$(OSSLIBDIR)/include -L/usr/lib/oss/lib 6 | CFLAGS=-lm -O6 7 | 8 | all: softsynth softsynth_gtk 9 | 10 | softsynth: softsynth.c 11 | $(CC) $(CFLAGS) $(OSSINCLUDES) softsynth.c -o softsynth -lOSSlib 12 | 13 | softsynth_gtk1: softsynth_gtk.c 14 | -$(CC) $(CFLAGS) `gtk-config --cflags --libs` $(OSSINCLUDES) softsynth_gtk.c -o softsynth_gtk -lOSSlib 15 | 16 | softsynth_gtk: softsynth_gtk.c 17 | -$(CC) $(CFLAGS) `pkg-config gtk+-2.0 --cflags --libs` $(OSSINCLUDES) softsynth_gtk.c -o softsynth_gtk -lOSSlib 18 | 19 | install: all 20 | -cp softsynth softsynth_gtk $(BINDIR) 21 | 22 | clean: 23 | rm -f softsynth softsynth_gtk *.o x y z *~ core core.* 24 | -------------------------------------------------------------------------------- /tutorials/sndkit/softsynth/README: -------------------------------------------------------------------------------- 1 | What is this? 2 | ============= 3 | 4 | This directory contains a very simple software MIDI organ which is 5 | based on playback of sine waves at various frequencies and amplitudes. Please 6 | see the softsynth.c file for better explanation. This is probably the simpliest 7 | software synthesizer application one can write. 8 | 9 | The softsynth.c file contains the original version of this program 10 | (no GUI). It's compatible also with any of the earlier OSS versions if you 11 | use an OSSlib version that contains the MIDI parser library (shipped with 12 | OSS 3.99.1j and later). 13 | 14 | The softsynth_gtk.c contains another version of the original program. It 15 | has GTK+ GUI. In addition it uses several services that are only 16 | available in OSS 4.0 and later. 17 | -------------------------------------------------------------------------------- /tutorials/sndkit/tests/Makefile: -------------------------------------------------------------------------------- 1 | TARGETS=iosync multich16 multich32 musicin seltest2 spdif_in_debug sweepdown sweepup synctest ioctl_test 2 | 3 | CFLAGS=-I../../../include 4 | 5 | all: ${TARGETS} 6 | 7 | sweepup: 8 | $(CC) ${CFLAGS} $(LDFLAGS) -lm -o sweepup sweepup.c 9 | 10 | clean: 11 | rm -f ${TARGETS} *.o x y z *~ 12 | -------------------------------------------------------------------------------- /tutorials/sndkit/tests/README.1ST: -------------------------------------------------------------------------------- 1 | Important warning 2 | ================= 3 | 4 | Many prongrams in this directory are in no way sample programs. Most of them 5 | intentionally misuse the OSS API to force the drivers to fail if there are 6 | any bugs in them. Using this kind of stupid methods in ordinary applications 7 | is asking for troubles. 8 | 9 | However some of the programs demonstrate how to use certain new features 10 | of OSS. In such cases the program name is mentioned somewhere else in the 11 | OSS documentation. 12 | -------------------------------------------------------------------------------- /tutorials/sndkit/tests/singen.inc: -------------------------------------------------------------------------------- 1 | #if 0 2 | #define COPYING6 Copyright (C) Hannu Savolainen and Dev Mazumdar 2000-2006. All rights reserved. 3 | { 4 | static unsigned int p[10] = { 0 }; 5 | int *pp; 6 | int i; 7 | 8 | static int sinebuf[48] = { 9 | 10 | 0, 4276, 8480, 12539, 16383, 19947, 23169, 25995, 11 | 28377, 30272, 31650, 32486, 32767, 32486, 31650, 30272, 12 | 28377, 25995, 23169, 19947, 16383, 12539, 8480, 4276, 13 | 0, -4276, -8480, -12539, -16383, -19947, -23169, -25995, 14 | -28377, -30272, -31650, -32486, -32767, -32486, -31650, -30272, 15 | -28377, -25995, -23169, -19947, -16383, -12539, -8480, -4276 16 | }; 17 | 18 | for (i = 0; i < dmap->grc3state[ch].outsz; i++) 19 | { 20 | if (0 * ctr) 21 | { 22 | *((unsigned int *) (p2) + i * channels + ch) = 23 | sinebuf[p[ch] % 48] * 64 * 0; 24 | p[ch]++; 25 | } 26 | } 27 | } 28 | #endif 29 | -------------------------------------------------------------------------------- /tutorials/sndkit/userdev_demo/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-I/usr/lib/oss/include/sys -I/usr/include/oss -g 2 | 3 | all: udserver 4 | 5 | clean: 6 | rm -f *.o udserver 7 | -------------------------------------------------------------------------------- /utils/.nomake: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/Open-Sound-System/OpenSoundSystem/ac48ed061efb79b231e8b998b05264f8b33c4376/utils/.nomake -------------------------------------------------------------------------------- /utils/Makefile: -------------------------------------------------------------------------------- 1 | CFLAGS=-I../include 2 | 3 | PROGRAMS=snoopy mixgen readtimings 4 | 5 | all: $(PROGRAMS) 6 | 7 | snoopy: snoopy.c ../kernel/drv/oss_hdaudio/hdaudio.h 8 | $(CC) -o snoopy snoopy.c -I../kernel/drv/oss_hdaudio $(CFLAGS) 9 | 10 | mixgen: mixgen.c ../kernel/drv/oss_hdaudio/hdaudio.h 11 | $(CC) -o mixgen mixgen.c -I../kernel/drv/oss_hdaudio $(CFLAGS) 12 | 13 | mixgen2: mixgen2.c ../kernel/drv/oss_hdaudio/hdaudio.h 14 | $(CC) -o mixgen2 mixgen2.c -I../kernel/drv/oss_hdaudio $(CFLAGS) 15 | 16 | clean: 17 | rm -f $(PROGRAMS) core core.* *.core *~ x y z *.o 18 | -------------------------------------------------------------------------------- /utils/phpmake: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | if test ! -f Makefile.php 4 | then 5 | echo No Makefile.php in this directory 6 | exit 0 7 | fi 8 | 9 | if ! php Makefile.php > Makefile 10 | then 11 | exit 1 12 | fi 13 | 14 | for n in */Makefile.php 15 | do 16 | N=`dirname $n` 17 | 18 | if test "$N " != '* ' 19 | then 20 | if ! (cd $N && phpmake $*) 21 | then 22 | exit 1 23 | fi 24 | fi 25 | done 26 | 27 | exit 0 28 | -------------------------------------------------------------------------------- /utils/readtimings.c: -------------------------------------------------------------------------------- 1 | /* 2 | * Purpose: OSS built in tracing reader 3 | * 4 | * Description: 5 | * This program is used to read timing/tracing information produced by the 6 | * built in tracing facility of OSS. 7 | * 8 | * To use this program you need to rebuild OSS with the DO_TIMINGS macro 9 | * defined. This macro is located in the os.h file for the target operating 10 | * system. Output is written to stdout. Tracing information is currently 11 | * produced only for the audio devices. 12 | * 13 | * To understand the output you need to be familiar with the internals of OSS. 14 | */ 15 | #define COPYING Copyright (C) Hannu Savolainen and Dev Mazumdar 2006. All rights reserved. 16 | 17 | #include 18 | #include 19 | #include 20 | #include 21 | 22 | int 23 | main (void) 24 | { 25 | int fd; 26 | char buf[257 * 1024]; 27 | int l; 28 | 29 | if ((fd = open ("/dev/mixer0", O_RDONLY, 0)) == -1) 30 | { 31 | perror ("/dev/mixer0"); 32 | exit (-1); 33 | } 34 | 35 | while (1) 36 | { 37 | if ((l = read (fd, buf, sizeof (buf))) < 0) 38 | { 39 | perror ("read"); 40 | exit (-1); 41 | } 42 | 43 | if (l) 44 | write (1, buf, l); 45 | 46 | usleep (100000); 47 | } 48 | 49 | close (fd); 50 | exit (0); 51 | } 52 | -------------------------------------------------------------------------------- /utils/vib: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOP=. 4 | if test -d origdir 5 | then 6 | TOP=origdir 7 | fi 8 | 9 | vi `find $TOP/kernel/OS/FreeBSD $TOP/setup/FreeBSD $TOP/os_cmd/FreeBSD -name $1` 10 | -------------------------------------------------------------------------------- /utils/vif: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOP=. 4 | if test -d origdir 5 | then 6 | TOP=origdir/ 7 | fi 8 | 9 | vi `find $TOP -name $1` 10 | -------------------------------------------------------------------------------- /utils/vil: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOP=. 4 | if test -d origdir 5 | then 6 | TOP=origdir 7 | fi 8 | 9 | vi `find $TOP/kernel/OS/Linux $TOP/setup/Linux $TOP/os_cmd/Linux -name $1` 10 | -------------------------------------------------------------------------------- /utils/vil24: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | vi `find ./kernel/OS/Linux24 setup/Linux24 os_cmd/Linux24 -name $1` 4 | -------------------------------------------------------------------------------- /utils/vis: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOP=. 4 | if test -d origdir 5 | then 6 | TOP=origdir 7 | fi 8 | 9 | vi `find $TOP/kernel/OS/SunOS $TOP/setup/SunOS $TOP/os_cmd/SunOS -name $1` 10 | -------------------------------------------------------------------------------- /utils/viu: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOP=. 4 | if test -d origdir 5 | then 6 | TOP=origdir 7 | fi 8 | 9 | vi `find $TOP/kernel/OS/SCO_SV $TOP/setup/SCO_SV $TOP/os_cmd/SCO_SV -name $1` 10 | -------------------------------------------------------------------------------- /utils/viv: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | 3 | TOP=. 4 | if test -d origdir 5 | then 6 | TOP=origdir 7 | fi 8 | 9 | vi `find $TOP/kernel/OS/VxWorks $TOP/setup/VxWorks -name $1` 10 | --------------------------------------------------------------------------------