diff options
author | Kővágó, Zoltán <dirty.ice.hu@gmail.com> | 2015-06-03 23:03:47 +0200 |
---|---|---|
committer | Gerd Hoffmann <kraxel@redhat.com> | 2015-06-15 12:42:47 +0200 |
commit | 5706db1deb061ee9affdcea81e59c4c2cad7c41e (patch) | |
tree | 95bcad953310cc46fc8924cb52369b862cd31fb0 /audio/audio_template.h | |
parent | 307119e7d948bcdb5918fd762153deda471e695b (diff) |
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>
Diffstat (limited to 'audio/audio_template.h')
-rw-r--r-- | audio/audio_template.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/audio/audio_template.h b/audio/audio_template.h index 584e536fac..f716d97c7e 100644 --- a/audio/audio_template.h +++ b/audio/audio_template.h @@ -262,7 +262,7 @@ static HW *glue (audio_pcm_hw_add_new_, TYPE) (struct audsettings *as) #ifdef DAC QLIST_INIT (&hw->cap_head); #endif - if (glue (hw->pcm_ops->init_, TYPE) (hw, as)) { + if (glue (hw->pcm_ops->init_, TYPE) (hw, as, s->drv_opaque)) { goto err0; } |