diff options
author | Takashi Iwai <tiwai@suse.de> | 2017-04-24 08:54:41 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2017-04-24 19:47:10 +0200 |
commit | 1f5a4535db41bd2bb8d1a15f098cb2921d6c1317 (patch) | |
tree | 36bfc83628adfee77dd7d9c60f8c1ecc5b35b452 /include/sound | |
parent | ASoC: Intel: Skylake: Fix a couple user after free bugs (diff) | |
download | linux-1f5a4535db41bd2bb8d1a15f098cb2921d6c1317.tar.xz linux-1f5a4535db41bd2bb8d1a15f098cb2921d6c1317.zip |
ASoC: Provide a dummy wrapper of snd_soc_set_dmi_name()
For systems without DMI, it makes no sense to have the code.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Acked-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/soc.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/sound/soc.h b/include/sound/soc.h index cdfb55f7aede..915c06cb2b32 100644 --- a/include/sound/soc.h +++ b/include/sound/soc.h @@ -497,7 +497,15 @@ void snd_soc_runtime_deactivate(struct snd_soc_pcm_runtime *rtd, int stream); int snd_soc_runtime_set_dai_fmt(struct snd_soc_pcm_runtime *rtd, unsigned int dai_fmt); +#ifdef CONFIG_DMI int snd_soc_set_dmi_name(struct snd_soc_card *card, const char *flavour); +#else +static inline int snd_soc_set_dmi_name(struct snd_soc_card *card, + const char *flavour) +{ + return 0; +} +#endif /* Utility functions to get clock rates from various things */ int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots); |