summaryrefslogtreecommitdiffstats
path: root/sys/dev/audio.c
AgeCommit message (Expand)AuthorFilesLines
2020-05-19Implement kqueue(2) support.mpi1-2/+179
2020-05-16Use softintr to call selwakeup() in the mixer code code-pathratchov1-6/+26
2020-04-18Remove support for unused /dev/mixer device nodes.ratchov1-17/+1
2020-03-08Wake up processes reading the mixer when the device is detached.ratchov1-1/+5
2020-02-13Fix missing locking during calls to selwakeup().ratchov1-12/+40
2020-01-29Add support for notifications about audio(4) controls changes.ratchov1-3/+158
2020-01-24Rename audio_mixer_{read,write} to audio_mixer_{get,set}.ratchov1-5/+5
2019-12-18audio(4): msleep(9) -> msleep_nsec(9)cheloha1-7/+7
2019-10-07Convert infinite tsleep(9) to tsleep_nsec(9).mpi1-5/+5
2019-09-10If the requensted block size is too large, then use half theratchov1-1/+16
2019-09-05Add the set_blksz() and set_nblks() audio driver functions.ratchov1-5/+50
2019-08-17Move play blocks count from the audio_softc to the audio_buf structure.ratchov1-20/+22
2019-08-17Move block size and block count calculations in their own routines.ratchov1-80/+108
2019-04-05Try to start playback after play buffer pointers are advanced.ratchov1-4/+6
2019-03-31Don't try to recover when DMA pointers wrap if the driver isratchov1-3/+3
2019-03-12Add new copy_output() and underrun() methods to support driversratchov1-4/+12
2018-12-31Use the return value of task_add(9) to determine whether the task waskettenis1-20/+7
2018-12-27must remember to unref device if setting the task isn't done.tedu1-1/+5
2018-10-31sc argument of start_output, start_input, trigger_output and trigger_inputmiko1-7/+7
2018-06-24Save all mixer elements in the suspend/resume array instead of onlyratchov1-10/+3
2018-05-26In addition to "on" and "off", allow the audio "record.enable" mixerratchov1-4/+17
2018-05-26Add a "record.enable" mixer knob to control recording. When recordingratchov1-12/+106
2018-04-11Add mixer save/restore capability to the audio(4) driver andratchov1-1/+64
2018-03-21Fix the way we detect xrun on the recording end, which may prevent theratchov1-2/+2
2018-01-10Remove assignement of sc->round to itself that makes no sense. Fromratchov1-2/+1
2017-11-23No need to grab the audio lock to call audio_canstart() as it checksratchov1-4/+3
2017-06-26Factor a variable assignment in audiopoll().ratchov1-3/+2
2017-05-16Remove references to /dev/soundN, which was removed last year.ratchov1-10/+2
2017-05-03style improvement from Michael W. Bombardieri <mb at ii.net>ratchov1-5/+4
2017-03-28Simplify rate/channels/bits bounds checking code. Fromratchov1-8/+8
2017-03-11AUDIO_ENCODING_{S,U}LINEAR constants are neither used by low levelratchov1-20/+1
2017-01-03If gain is above MAX, no need to check whether it's below MIN.ratchov1-2/+2
2016-12-20Fix many typos. From Michael W. Bombardieri <mb at ii.net>. Thanksratchov1-8/+8
2016-12-12Remove few useless #ifdef AUDIO_DEBUG, spotted byratchov1-14/+4
2016-11-08Log start/stop of DMA if AUDIO_DEBUG is defined and be less verboseratchov1-11/+3
2016-10-09Don't allocate struct mixer_devinfo instances on the stack. It is a fairlykettenis1-25/+37
2016-10-06Fix the condition used to decide whether to automatically start theratchov1-4/+15
2016-10-04At acpithinkpad attach time determine the value of the mute, and deferderaadt1-4/+36
2016-09-19Remove unused getdev() audio driver functions.ratchov1-2/+1
2016-09-14Remove drain(), query_encoding(), mappage() and get_default_params()ratchov1-2/+1
2016-08-31Delete unused ioctls and associated macros. Move macros that are stillratchov1-226/+2
2016-06-21fix typos in comments and spacingratchov1-4/+4
2016-06-18Add a new AUDIO_GETSTATUS ioctl to get various audio driver variables.ratchov1-1/+13
2016-06-01New USB device driver for Audio/Video capture devices based on themglocker1-2/+10
2016-05-11Use round_blocksize() to determine the maximum hardware block size (inratchov1-4/+12
2016-05-11Dont reuse "mult" local variable. Use separate variable for hardwareratchov1-8/+9
2016-03-16Expose new audio ioctls that do one thing only: start and stop DMA,ratchov1-1/+148
2016-01-29Move the AUDIO_GETDEV ioctl in its own routine.ratchov1-6/+12
2016-01-20make AUDIO_GETDEV ioctl return the device name (ex "azalia0") ratherratchov1-2/+6
2016-01-20Set byte order the default encoding in the attach method toratchov1-2/+6