summaryrefslogtreecommitdiffstats
path: root/audio
Commit message (Collapse)AuthorAgeFilesLines
* audio: port to vmstateJuan Quintela2009-12-031-17/+9
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* audio: fix compilation of DEBUG_PLIVEJuan Quintela2009-12-031-3/+3
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* audio: Remove conditional around sw which can not be NULLmalc2009-11-181-17/+15
| | | | | | Noticed by Steve Grubb. Signed-off-by: malc <av1474@comtv.ru>
* winwave: ADC supportmalc2009-10-151-24/+336
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: remove last remnants of _tmalc2009-10-153-5/+5
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: make error logging more consistentmalc2009-10-151-6/+7
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: follow the rules when closing the output devicemalc2009-10-151-0/+19
| | | | | | | a. call waveOutReset to drain the queue b. unprepare headers before freeing underlying memory Signed-off-by: malc <av1474@comtv.ru>
* qemu: allow pulseaudio to be the defaultMichael S. Tsirkin2009-10-131-1/+1
| | | | | | | | | | | | | | | | We're seeing various issues with the SDL audio backend and want to switch to the pulseaudio backend. See e.g. https://bugzilla.redhat.com/495964 https://bugzilla.redhat.com/519540 https://bugzilla.redhat.com/496627 The pulseaudio backend seems to work well, so we should allow it to be selected as the default. Signed-off-by: Mark McLoughlin <markmc@redhat.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Signed-off-by: malc <av1474@comtv.ru>
* winwave: pause/restore playing upon seeing VOICE_DISABLE/ENABLEmalc2009-10-111-0/+18
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: close event handle and delete wait object after closing HWAVEOUTmalc2009-10-111-2/+2
| | | | | | To avoid possibly being called back and thus racing. Signed-off-by: malc <av1474@comtv.ru>
* winwave: remove wait object when finalizing DAC voicemalc2009-10-111-13/+14
| | | | Signed-off-by: malc <av1474@comtv.ru>
* winwave: poll modemalc2009-10-101-0/+61
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Windows Waveform Audio driver (no ADC support yet)malc2009-10-105-95/+433
| | | | Signed-off-by: malc <av1474@comtv.ru>
* oss/alsa: Do not invoke UB described in 7.15.1.1 (this time for ADC)malc2009-10-032-21/+27
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa: Change default buffer/period sizemalc2009-10-021-1/+2
| | | | | | | Increase buffer size but do not rely on ALSA picking up default period size. Signed-off-by: malc <av1474@comtv.ru>
* oss/alsa: Do not invoke UB described in 7.15.1.1malc2009-10-022-33/+39
| | | | | | | Additional argument (whether to try poll mode) is only passed with VOICE_ENABLE command. Thanks to Markus Armbruster for noticing the potential breakage.
* sdlaudio: make it suck lessmalc2009-09-301-50/+30
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: use correct email addressmalc2009-09-182-2/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: internal API changemalc2009-09-1812-81/+33
| | | | | | | | | pcm_ops.run_out now takes number of live samples (which will be always greater than zero) as a second argument, every driver was calling audio_pcm_hw_get_live_out anyway with exception of fmod which used audio_pcm_hw_get_live_out2 for no good reason. Signed-off-by: malc <av1474@comtv.ru>
* sdlaudio: use correct function names in sdl_XXX callsmalc2009-09-181-3/+3
| | | | Signed-off-by: malc <av1474@comtv.ru>
* oss: use audio_pcm_hw_clip_outmalc2009-09-181-47/+46
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa: use audio_pcm_hw_clip_outmalc2009-09-181-45/+43
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: introduce audio_pcm_hw_clip_out helper functionmalc2009-09-182-0/+25
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: use muldiv64 where it makes sensemalc2009-09-184-5/+8
| | | | Signed-off-by: malc <av1474@comtv.ru>
* coreaudio: fix sloppy "posixification" by ↵malc2009-09-181-1/+1
| | | | | | 1ea879e5580f63414693655fcf0328559cdce138 Signed-off-by: malc <av1474@comtv.ru>
* alsa: Use proper value when testing returned events in alsa_poll_handlermalc2009-09-141-4/+6
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa/oss: Remove fd transfer handlers before closing oss/alsa fd/handlemalc2009-09-142-27/+32
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: Fix typo that broke QEMU_AUDIO_ADC_TRY_POLLJan Kiszka2009-09-131-1/+1
| | | | | Signed-off-by: Jan Kiszka <jan.kiszka@web.de> Signed-off-by: malc <av1474@comtv.ru>
* oss: Simplify mmap codemalc2009-09-131-22/+5
| | | | Signed-off-by: malc <av1474@comtv.ru>
* oss: OSS v4 supportmalc2009-09-131-9/+50
| | | | | | | a. Use SNDCTL_DSP_POLICY instead of SNDCTL_DSP_SETFRAGMENT b. Add ability to open device in exclusive mode, thus bypassing vmix Signed-off-by: malc <av1474@comtv.ru>
* Fix sys-queue.h conflict for goodBlue Swirl2009-09-124-43/+43
| | | | | | | | | | | | | | | Problem: Our file sys-queue.h is a copy of the BSD file, but there are some additions and it's not entirely compatible. Because of that, there have been conflicts with system headers on BSD systems. Some hacks have been introduced in the commits 15cc9235840a22c289edbe064a9b3c19c5f49896, f40d753718c72693c5f520f0d9899f6e50395e94, 96555a96d724016e13190b28cffa3bc929ac60dc and 3990d09adf4463eca200ad964cc55643c33feb50 but the fixes were fragile. Solution: Avoid the conflict entirely by renaming the functions and the file. Revert the previous hacks. Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* audio: remove lsbindex/popcount in favour of host-utils's ctz32malc2009-09-123-21/+2
| | | | Signed-off-by: malc <av1474@comtv.ru>
* alsa: poll mode handlingmalc2009-09-121-21/+204
| | | | Signed-off-by: malc <av1474@comtv.ru>
* oss: poll mode handlingmalc2009-09-121-5/+74
| | | | Signed-off-by: malc <av1474@comtv.ru>
* audio: poll mode infrastructuremalc2009-09-122-11/+87
| | | | Signed-off-by: malc <av1474@comtv.ru>
* oss: Unbreak mmaping the ability to mmap oss fd on Linuxmalc2009-09-121-1/+4
| | | | Signed-off-by: malc <av1474@comtv.ru>
* Unexport ticks_per_sec variable. Create get_ticks_per_sec() functionJuan Quintela2009-09-113-4/+4
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* Remove bit-rotten threshold handlingmalc2009-09-101-13/+2
| | | | | | | Thanks to Toshiya Takeda for bringing up an unrelated issue which led to this. Signed-off-by: malc <av1474@comtv.ru>
* Fix warning on x86_64Kirill A. Shutemov2009-09-021-2/+2
| | | | | | | | | | | | audio/esdaudio.c: In function 'qesd_thread_out': audio/esdaudio.c:136: error: format '%d' expects type 'int', but argument 3 has type 'ssize_t' audio/esdaudio.c: In function 'qesd_thread_in': audio/esdaudio.c:366: error: format '%d' expects type 'int', but argument 3 has type 'ssize_t' Signed-off-by: Kirill A. Shutemov <kirill@shutemov.name> Signed-off-by: malc <av1474@comtv.ru>
* Fix dsound typosConsul2009-08-261-3/+3
| | | | | | | | Dsound currently does not compile due to the typos in the code. This patch makes it compile again.{PATCH} Signed-off-by: Alex Ivanov <void@aleksoft.net> Signed-off-by: malc <av1474@comtv.ru>
* Fix typomalc2009-08-121-1/+1
|
* Aestheticsmalc2009-08-1110-288/+394
| | | | | | | Reformat to make item borders more visible Fix cases of stray tabs and vertical misalignments Signed-off-by: malc <av1474@comtv.ru>
* use C99 initializers for all audio/*Juan Quintela2009-08-118-53/+56
| | | | Signed-off-by: Juan Quintela <quintela@redhat.com>
* use C99 initializers for audio_pcm_opsJuan Quintela2009-08-1110-109/+92
| | | | Signed-off-by: Juan Quintela <quintela@redhat.com>
* Use C99 initializers for audio_optionJuan Quintela2009-08-1110-168/+258
| | | | Signed-off-by: Juan Quintela <quintela@redhat.com>
* Use proper struct initializers and remove INIT_FIELD() macroJuan Quintela2009-08-1111-116/+110
| | | | Signed-off-by: Juan Quintela <quintela@redhat.com>
* Fix Sparse warnings: "Using plain integer as NULL pointer"Blue Swirl2009-07-312-2/+2
| | | | Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
* alsa: add host suspend/resume supportBjørn Mork2009-07-301-2/+47
| | | | | | | | | | | | | Both input and output streams may be in SND_PCM_STATE_SUSPENDED after the host is suspended and resumed, meaning "Hardware is suspended". snd_pcm_readi() and snd_pcm_writei() will return -ESTRPIPE if called while the stream is in this state. Call snd_pcm_resume() to enable audio output and capture after host resume. Signed-off-by: Bjørn Mork <bjorn@mork.no> Signed-off-by: malc <av1474@comtv.ru>
* Generate config-host.h from config-host.makJuan Quintela2009-07-271-1/+6
| | | | | | | | Generate CONFIG_AUDIO_DRIVERS. Order is important here, because the first driver in the list is the one used by default. Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
* rename WORDS_BIGENDIAN to HOST_WORDS_BIGENDIANJuan Quintela2009-07-271-1/+1
| | | | | Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
OpenPOWER on IntegriCloud