]> git.proxmox.com Git - mirror_qemu.git/commit - audio/dsound_template.h
audio: expose drv_opaque to init_out and init_in
authorKővágó, Zoltán <dirty.ice.hu@gmail.com>
Wed, 3 Jun 2015 21:03:47 +0000 (23:03 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Mon, 15 Jun 2015 10:42:47 +0000 (12:42 +0200)
commit5706db1deb061ee9affdcea81e59c4c2cad7c41e
tree95bcad953310cc46fc8924cb52369b862cd31fb0
parent307119e7d948bcdb5918fd762153deda471e695b
audio: expose drv_opaque to init_out and init_in

Currently the opaque pointer returned by audio_driver's init is only
exposed to the driver's fini, but not to audio_pcm_ops. This way if
someone wants to share a variable with the driver and the pcm, he must
use global variables. This patch fixes it by adding a third parameter to
audio_pcm_op's init_out and init_in.

Signed-off-by: Kővágó, Zoltán <DirtY.iCE.hu@gmail.com>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/alsaaudio.c
audio/audio_int.h
audio/audio_template.h
audio/coreaudio.c
audio/dsound_template.h
audio/noaudio.c
audio/ossaudio.c
audio/paaudio.c
audio/sdlaudio.c
audio/spiceaudio.c
audio/wavaudio.c