diff options
author | Vinod Koul <vinod.koul@intel.com> | 2014-05-02 01:28:11 -0400 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-05-02 16:44:24 -0400 |
commit | d98812082c87732b45c71d63afc6a9ba3cca3f03 (patch) | |
tree | cd2c24fb6c54c1814c3b98e25b6c7b9c83887bbb /sound/soc/soc-core.c | |
parent | 3dcba280f739772a4156fbcdae39229d6bb5e02b (diff) |
ASoC: add SND_SOC_BYTES_EXT
we need _EXT version for SND_SOC_BYTES so that DSPs can use this to pass data
for DSP modules
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/soc-core.c')
-rw-r--r-- | sound/soc/soc-core.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/sound/soc/soc-core.c b/sound/soc/soc-core.c index 799cbe81fe39..7fa3b4a04bd3 100644 --- a/sound/soc/soc-core.c +++ b/sound/soc/soc-core.c | |||
@@ -3107,6 +3107,18 @@ out: | |||
3107 | } | 3107 | } |
3108 | EXPORT_SYMBOL_GPL(snd_soc_bytes_put); | 3108 | EXPORT_SYMBOL_GPL(snd_soc_bytes_put); |
3109 | 3109 | ||
3110 | int snd_soc_bytes_info_ext(struct snd_kcontrol *kcontrol, | ||
3111 | struct snd_ctl_elem_info *ucontrol) | ||
3112 | { | ||
3113 | struct soc_bytes_ext *params = (void *)kcontrol->private_value; | ||
3114 | |||
3115 | ucontrol->type = SNDRV_CTL_ELEM_TYPE_BYTES; | ||
3116 | ucontrol->count = params->max; | ||
3117 | |||
3118 | return 0; | ||
3119 | } | ||
3120 | EXPORT_SYMBOL_GPL(snd_soc_bytes_info_ext); | ||
3121 | |||
3110 | /** | 3122 | /** |
3111 | * snd_soc_info_xr_sx - signed multi register info callback | 3123 | * snd_soc_info_xr_sx - signed multi register info callback |
3112 | * @kcontrol: mreg control | 3124 | * @kcontrol: mreg control |