Commit Graph

1968 Commits

Author SHA1 Message Date
Dale Weiler
117225b626 Cleanup system call code and improve branch prediction. 2015-05-20 14:14:51 -04:00
Dale Weiler
31900155fb ring3 switch code in user.S now 2015-05-20 04:46:10 -04:00
Dale Weiler
ca5a319ee6 Validate syscall inputs 2015-05-20 03:34:39 -04:00
Dale Weiler
ceaed61c42 Merge branch 'strawberry-dev' of github.com:klange/toaruos into strawberry-dev 2015-05-20 03:20:08 -04:00
Dale Weiler
01176e0f97 Use GAS instead of YASM. 2015-05-20 03:12:20 -04:00
Kevin Lange
4a1ff8112d Fix color of volume icons 2015-05-19 20:38:41 -07:00
Kevin Lange
7f66c10230 Bind scroll to volume up/down on volume icon 2015-05-18 22:19:30 -07:00
Kevin Lange
d8ac0fc902 Add a working (but read-only) volume knob to the panel. 2015-05-18 21:36:49 -07:00
Kevin Lange
9d41b3fc25 Merge branch 'mixer-rebase' of https://github.com/gerow/toaruos into gerow-mixer-rebase 2015-05-18 21:15:25 -07:00
Kevin Lange
eac7301e79 Merge branch 'gerow-mixing-fix' into strawberry-dev 2015-05-18 21:11:26 -07:00
Kevin Lange
9458b813a4 Merge branch 'gerow-sh-C-p-C-n' into gerow-mixing-fix 2015-05-18 21:11:00 -07:00
Kevin Lange
740ec2ede7 Merge branch 'mixing-fix' of https://github.com/gerow/toaruos into gerow-mixing-fix 2015-05-18 21:10:53 -07:00
Kevin Lange
bc806cf774 Merge branch 'sh-C-p-C-n' of https://github.com/gerow/toaruos into gerow-sh-C-p-C-n 2015-05-18 21:10:23 -07:00
Kevin Lange
60568a70a5 Remove debug messages from png loading 2015-05-18 21:08:37 -07:00
Kevin Lange
9a72bfc4cd Add half-assed support for IRQ chaining.
We only support 4 total chain entries at the moment, but that can be
"easily expanded"... We don't really have a lite dynamic vector, just
the big fat dynamic lists, so improving on this needs some extra effort.

This commit also drags in a bunch of random network work by necessity.
2015-05-18 21:07:06 -07:00
Kevin Lange
331e0f0ad1 All debug lines to go straight to serial rather than TTY 2015-05-18 21:05:52 -07:00
Kevin Lange
b4d7e263b6 Fix critical issue in spawn_process 2015-05-18 21:05:41 -07:00
Mike Gerow
3515353704 Allow walking through shell history using C-n and C-p 2015-05-18 19:29:33 -07:00
Mike Gerow
2ac9f8a9ea Fix the way that buffers are mixed
The previous method was failing to actually mix the samples as signed
16-bit values and just adding the individual bytes. This works out fine
for single buffers but creates weird artifacting if multiple buffers are
being mixed and there is a carry between the bytes.
2015-05-18 02:00:57 -07:00
Mike Gerow
368d2c0525 Add a command line utility for interacting with /dev/mixer 2015-05-17 20:31:36 -07:00
Mike Gerow
0f35a5bfe3 Add ioctl interface for snd mixer 2015-05-17 20:31:36 -07:00
Mike Gerow
f53ea98e05 Implement snd mixer interface in ac97.c 2015-05-17 20:31:36 -07:00
Mike Gerow
ad708efd5a Add support for managing mixer knobs to snd interface 2015-05-17 20:31:36 -07:00
Kevin Lange
5d4f63356a Fix warning in lfbvideo module 2015-05-17 15:00:49 -07:00
Kevin Lange
e703c8761b removing log calls from timing-sensitive sound functions 2015-05-17 14:12:10 -07:00
Kevin Lange
8e61d4ee3a Cleanup unused functions in glogin 2015-05-15 22:51:47 -07:00
Kevin Lange
9df3810da9 Separate pipe write/read locking 2015-05-15 22:51:27 -07:00
Kevin Lange
e047cea9a3 Boring comment header cleanups [ci skip] 2015-05-15 22:50:58 -07:00
Kevin Lange
bebb58b189 Fix audio delays 2015-05-15 22:21:53 -07:00
Kevin Lange
141ca495d9 Write to buffers in sequence instead of splitting in half 2015-05-15 15:01:51 -07:00
Mike Gerow
64d771b4fa Remove the now unnecessary ioctl from play utility 2015-05-15 01:04:07 -07:00
Mike Gerow
320925d0d9 Convert ac97 module to use snd 2015-05-15 01:04:07 -07:00
Mike Gerow
b06b4af8b9 Add snd sound subsystem.
It's got a long way to go, but this provides basic mixing between
applications.
2015-05-15 01:04:07 -07:00
Mike Gerow
fd8c5db72a Surround list macros in parens in order to allow calls like this:
list_t list;
foreach(node, &list) {
  ...
}
2015-05-15 01:04:07 -07:00
Kevin Lange
9cf86430ee fix readme typo [ci skip] 2015-05-14 20:34:46 -07:00
Kevin Lange
58f84075bf Big rewrite of the README
Have wanted to convert the three lists of third-party software to a table for a while now.
2015-05-14 19:34:17 -07:00
Kevin Lange
e1720dbc8a Fix allocation of common symbols in modules
Fixes #87
2015-05-14 09:47:23 -07:00
Kevin Lange
66938e3123 Fix symbols not marked extern 2015-05-14 09:32:52 -07:00
Kevin Lange
6acef2ab41 Add audio player 2015-05-14 09:25:48 -07:00
Kevin Lange
456cbf1016 hacky, but working, /dev/dsp interface 2015-05-13 23:28:47 -07:00
Kevin Lange
3e605ec2d8 Crank the volume a bit 2015-05-13 18:58:24 -07:00
Kevin Lange
034cd38cf4 Gracefully handle failures to load audio files 2015-05-13 18:52:00 -07:00
Kevin Lange
5573199c4e Actually let the file finish playing instead of cutting it off 2015-05-13 18:39:56 -07:00
Kevin Lange
a3ca443492 Don't bind shell functions if we didn't find it 2015-05-13 15:27:41 -07:00
Kevin Lange
fb9e02fbd8 Clean up AC97 driver for merge 2015-05-13 15:26:28 -07:00
Mike Gerow
3b60e8c36f Added experimental ac97 driver.
This doesn't include a userland interface, but it does include a couple
of commands for the debug shell. ac97_status, which shows some register
and port values for the ac97 and ac97_noise which attempts to play a
(very annoying) 440Hz sine wave through the sound card.
2015-05-13 01:35:55 -07:00
Mike Gerow
ac17214207 Added ability to check if an IRQ is already occupied.
A proper solution would probably be to introduce shared IRQs at some
point in time.
2015-05-13 01:33:05 -07:00
Kevin Lange
eb3e865036 Update pong description 2015-05-12 23:29:24 -07:00
Kevin Lange
de3e405b52 Make pong prettier 2015-05-12 20:51:07 -07:00
Kevin Lange
2a59b09a9a This is terrible: Yutani Pong 2015-05-11 22:20:27 -07:00