#
cc5bdd41 |
| 26-Oct-2022 |
kn <kn@openbsd.org> |
Make audio(9) get_props() optional, remove it from duplex drivers
The property bits of audio(9) are obsolete and ought to be removed completely.
sys/dev/audio.c:audio_open() currently uses get_prop
Make audio(9) get_props() optional, remove it from duplex drivers
The property bits of audio(9) are obsolete and ought to be removed completely.
sys/dev/audio.c:audio_open() currently uses get_props() to bail out if read *and* write was requested on a non-duplex driver.
Drivers that currently support playing but not recording need adjustment before the API can be cleaned up.
Drivers that advertise themselves as full duplex, i.e. those that always return AUDIO_PROP_FULLDUPLEX unconditionally in their get_props() currently always succeed this check.
As this is the only property, losen audio_open()'s DIAGNOSTIC check and only do the duplex check if the driver provides get_props().
This allows for simple removal of get_props() from full-duplex drivers without adding any other code or without changing functionality.
This includes all audio drivers under sys/dev/pci/ (maestro(4) being the only unfinished exception here).
Other drivers as well as the API change can then follow in smaller diffs.
This builds on amd64, arm64, i386, macppc and sparc64. amd64 with azalia(4) still plays, records as well as plays and records at the same time on my X230 as tested with
$ aucat -i play.wav [-o rec.wav]
alpha and hppa tests by miod OK ratchov miod
show more ...
|
#
7cb42e31 |
| 14-Sep-2016 |
ratchov <ratchov@openbsd.org> |
Remove drain(), query_encoding(), mappage() and get_default_params() methods from all audio drivers and from the audio_if structure as they are never called.
|
#
55882323 |
| 07-Jun-2011 |
mpi <mpi@openbsd.org> |
Make use of macobio_* methods to manage the i2s GPIOs, remove the customs gpio_* methods and move the remaining global variables in the softc.
ok ratchov@, krw@
|
#
041a1952 |
| 05-May-2011 |
jasper <jasper@openbsd.org> |
add support for muting the master channel on i2s based cards, this allows the "mute" key on keyboards to function too. tested by kettenis on aoa(4) and snapper(4) by me.
from Martin Pieuchot ok kett
add support for muting the master channel on i2s based cards, this allows the "mute" key on keyboards to function too. tested by kettenis on aoa(4) and snapper(4) by me.
from Martin Pieuchot ok kettenis@ ratchov@
show more ...
|
#
c78ff0c2 |
| 26-Feb-2010 |
jasper <jasper@openbsd.org> |
- remove double cvs id's
|
#
c7c3fe0b |
| 29-Oct-2008 |
jakemsr <jakemsr@openbsd.org> |
native default parameters for i2s devices instead of 8kHz mulaw mono, which few can even do.
"Please just get this in." brad@
|
#
f0d5bc97 |
| 24-Aug-2008 |
todd <todd@openbsd.org> |
o implement proper volume control table based on chipset docs o attempt to make record work (but silence for now) from drahn@, ok maja@, drahn@
|
#
224a5941 |
| 19-Nov-2005 |
kettenis <kettenis@openbsd.org> |
oops
|
#
ddfa3b0d |
| 31-Oct-2005 |
joris <joris@openbsd.org> |
- add needed bass & treble glue in i2s; - add support for bass & treble in snapper;
ok drahn@
|
#
da53b1f9 |
| 26-Oct-2005 |
joris <joris@openbsd.org> |
add an i2s framework, which can be reused in new audio drivers for macppc, as most modern Apple machines have i2s-based audio.
also let snapper use i2s.c right away;
tested by Antoine Jacoutot, dra
add an i2s framework, which can be reused in new audio drivers 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@
show more ...
|