diff options
author | Alan Tull <alan.tull@freescale.com> | 2011-10-28 19:14:13 -0500 |
---|---|---|
committer | Jason Liu <r64343@freescale.com> | 2012-07-20 13:17:05 +0800 |
commit | a94127f286479cf81580da8e1d036ffeb6ffc3bb (patch) | |
tree | c26c26a55fa71f36121e640896d52b4d92c574c0 /include/sound | |
parent | 573e8da5c0d26d37cd4dbc5e1b33669ed716ee53 (diff) |
ENGR00161014 ASoC: don't clobber platform DMA driver ops
Previously, only one static struct for ops existed for all
platform DMA drivers to share. Half of the ops are shared
functions which don't have stubs in the ALSA core. The
other half are initialized to point directly to ops in the
platform driver. This creates problems where each time
soc_new_pcm is called, the new platform driver's ops would
overwrite a subset of the ops.
Signed-off-by: Alan Tull <alan.tull@freescale.com>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc-dai.h | 2 | ||||
-rw-r--r-- | include/sound/soc.h | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/soc-dai.h b/include/sound/soc-dai.h index 1bafe95dcf41..dc60e5e07226 100644 --- a/include/sound/soc-dai.h +++ b/include/sound/soc-dai.h @@ -172,6 +172,8 @@ struct snd_soc_dai_ops { struct snd_soc_dai *); int (*trigger)(struct snd_pcm_substream *, int, struct snd_soc_dai *); + int (*ioctl)(struct snd_pcm_substream *, unsigned int, void *, + struct snd_soc_dai *); /* * For hardware based FIFO caused delay reporting. * Optional. diff --git a/include/sound/soc.h b/include/sound/soc.h index 3a4bd3a3c68d..0a9a21e0a199 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -496,6 +496,7 @@ struct snd_soc_ops { int (*hw_free)(struct snd_pcm_substream *); int (*prepare)(struct snd_pcm_substream *); int (*trigger)(struct snd_pcm_substream *, int); + int (*ioctl)(struct snd_pcm_substream *, unsigned int, void *); }; /* SoC cache ops */ @@ -805,6 +806,7 @@ struct snd_soc_pcm_runtime { struct snd_soc_dai *cpu_dai; struct delayed_work delayed_work; + struct snd_pcm_ops *ops; }; /* mixer control */ |