summaryrefslogtreecommitdiffstats
path: root/sys/arch/macppc/dev/snapper.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Declare hw_{prod,serial,uuid,vendor,ver} in <sys/systm.h>.visa2020-08-261-3/+1
| | | | OK deraadt@, mpi@
* Move PowerBook5,4 audio from aoa(4) to snapper(4).gkoehler2020-06-061-1/+6
| | | | | | | | | | | This adds the missing TAS3004 volume control. Before, I put my ear near the speaker (to hear audio), because I had no way to turn up the volume. Now, the default volume is much louder, so I use sndioctl(1) to turn it down. Check for the model string "PowerBook5,4". This model's device tree has compatible = "AOAKeylargo" for the audio, doesn't show the TAS3004 in the same way as other models.
* Remove unused getdev() audio driver functions.ratchov2016-09-191-16/+1
|
* Remove drain(), query_encoding(), mappage() and get_default_params()ratchov2016-09-141-13/+2
| | | | | methods from all audio drivers and from the audio_if structure as they are never called.
* Do not do strncmp comparisons on dv_xname because longer device names whichderaadt2009-10-261-3/+3
| | | | | | look similar could arrive in the future. Instead, compare directly against dv_cfdata->cf_driver->cd_name Issue originally spotted by miod
* input and volume twiddlestodd2008-11-061-5/+6
| | | | | | | o set init data to match snapper_set_foo* o set volume to 190 (audible compared to the default) o set input to mic (most common usage) ok jakemsr@
* * use uint8_t instead of int to hold the value of an 8-bit register.jakemsr2008-11-051-3/+10
| | | | | | | | | | | | * for outputs.{bass,treble}, 0 dB corresponds to mixer value 128, not 0. * line-in is configured as the default recording source; set sc->sc_record_source accordingly. * add missing register to initialization code. from Marco (marco2z at arsystel com), thanks testing/ok drahn@
* native default parameters for i2s devices instead of 8kHzjakemsr2008-10-291-2/+9
| | | | | | mulaw mono, which few can even do. "Please just get this in." brad@
* how about i commit what was actually approved? wrong tree, bad todd ;-(todd2008-08-251-2/+2
|
* o implement proper volume control table based on chipset docstodd2008-08-241-9/+193
| | | | | o attempt to make record work (but silence for now) from drahn@, ok maja@, drahn@
* allow low level audio drivers to specify a default sample format,jakemsr2008-04-211-1/+2
| | | | | | | | | instead of 8-bit mono mulaw @ 8kHz. this is just the infrastructure; no drivers are specifying a default yet. ok ratchov@, deanna@
* rename drivers with numbers in them; ok gwk drahnderaadt2007-04-231-7/+7
|
* Fix totally bogus previous commit.kettenis2005-12-281-3/+3
|
* Make sure we match the correct driver for newer macppc systems.kettenis2005-12-171-5/+9
| | | | tested by xsa@, ok joris@, brad@
* some driver cleanup, ANSI/KNF and more consistency between the drivers.brad2005-11-051-34/+16
| | | | ok joris@
* update datasheet URL.brad2005-10-311-5/+3
|
* - add needed bass & treble glue in i2s;joris2005-10-311-1/+111
| | | | | | - add support for bass & treble in snapper; ok drahn@
* add aoa audio support, found in several macppc machinesjoris2005-10-311-3/+2
| | | | ok drahn@
* kill unneeded node argument in snapper_init()joris2005-10-281-6/+4
| | | | ok drahn@
* add an i2s framework, which can be reused in new audio driversjoris2005-10-261-1183/+36
| | | | | | | | | for macppc, as most modern Apple machines have i2s-based audio. also let snapper use i2s.c right away; tested by Antoine Jacoutot, drahn@ and kettenis@ "yes, commit!" drahn@, ok kettenis@
* revert to revision 1.16 for now, 1.17 and 1.18 broke audiojoris2005-10-201-15/+4
| | | | | | on a lot of macppc machines that use this driver; ok drahn@
* Dont reset the registers if the same speed is programmed. helps reducedrahn2005-10-111-7/+9
| | | | | the possible race where the frequency fails to set when changing speeds. hopefully this will workaround the problem reported on misc@
* Stop and restart the i2s clock when changing the snapper speed, otherwisedrahn2005-10-071-1/+10
| | | | the new setting doesn't do anything.
* Dont hardcode the speed, allows mplayer to work.drahn2005-05-261-2/+2
|
* on the iBook G3, there are too many devices with the same gpio name;jason2005-05-261-6/+15
| | | | | | prefer the first found. Now, FINALLY, I have my own music at the hackathon. ok drahn [and yes, dale, I'm working on mplayer]
* pin the sample rate at 44.1k, PB's don't seem to get the 8k or 48k samplejason2005-05-231-10/+8
| | | | rate notificiations
* define our own conversion function which does mono-to-stereo withjason2005-05-221-2/+17
| | | | a sign change (no byte swapping, and correct endianess)
* whoops, wrong conversion functionjason2005-05-221-2/+2
|
* more encodingsjason2005-05-221-91/+79
| | | | | | | | | slinear8: mono/stereo ulinear8: mono/stereo alaw: mono ulaw: mono NOTE: still doesn't work on my machine, but hey, at least the encodings are closer.
* fix names of ulinear, toojason2005-05-221-3/+3
|
* add memory clobber to prevent reorderingjason2005-05-221-27/+91
|
* ALAW is called AudioEalaw not AudioEmulawjason2005-05-221-2/+2
|
* Use list and queue macros where applicable to make the code easier to read;miod2004-12-251-2/+2
| | | | no functional change.
* strncmp() the correct size when looking for ki2c companion.miod2004-12-251-2/+2
|
* Slightly better messages, fix a typo, and a few strlcpy() botches.miod2004-01-141-7/+7
| | | | ok drahn@
* Completely remove the device name from this print, not just the %s.drahn2004-01-121-2/+2
|
* Better defaults on snapper, fixes xmms problem reported by joshua steindrahn2004-01-121-6/+8
| | | | just hours after the driver was committed.
* $OpenBSD$ tagsdrahn2004-01-111-1/+1
|
* Audio support for some newer macppc machines, any 'snapper' based systems.drahn2004-01-111-0/+1528
Driver ported from netbsd with bus_dma addition/vtophys deletion. This driver does not work on the first generation 'Digital audio' systems those were 'tumbler' nor the latest version. ok dhartmei@