diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-12-18 20:05:39 +0100 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-12-18 20:07:43 +0100 |
commit | a032ff0e8065668e672eb2e223e265b7808f35a3 (patch) | |
tree | 90c43579c425f8789fc9cec99c8ea39ba6c26874 /sound/soc/codecs/rt5677-spi.h | |
parent | ALSA: usx2y: Adjust indentation in snd_usX2Y_hwdep_dsp_status (diff) | |
parent | ALSA: usb-audio: set the interface format after resume on Dell WD19 (diff) | |
download | linux-a032ff0e8065668e672eb2e223e265b7808f35a3.tar.xz linux-a032ff0e8065668e672eb2e223e265b7808f35a3.zip |
Merge branch 'for-linus' into for-next
Taking the 5.5 devel branch back into the main devel branch.
A USB-audio fix needs to be adjusted to adapt the changes that have
been formerly applied for stop_sync.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/soc/codecs/rt5677-spi.h')
-rw-r--r-- | sound/soc/codecs/rt5677-spi.h | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/sound/soc/codecs/rt5677-spi.h b/sound/soc/codecs/rt5677-spi.h index 3af36ec928e9..088b77931727 100644 --- a/sound/soc/codecs/rt5677-spi.h +++ b/sound/soc/codecs/rt5677-spi.h @@ -9,9 +9,25 @@ #ifndef __RT5677_SPI_H__ #define __RT5677_SPI_H__ +#if IS_ENABLED(CONFIG_SND_SOC_RT5677_SPI) int rt5677_spi_read(u32 addr, void *rxbuf, size_t len); int rt5677_spi_write(u32 addr, const void *txbuf, size_t len); int rt5677_spi_write_firmware(u32 addr, const struct firmware *fw); void rt5677_spi_hotword_detected(void); +#else +static inline int rt5677_spi_read(u32 addr, void *rxbuf, size_t len) +{ + return -EINVAL; +} +static inline int rt5677_spi_write(u32 addr, const void *txbuf, size_t len) +{ + return -EINVAL; +} +static inline int rt5677_spi_write_firmware(u32 addr, const struct firmware *fw) +{ + return -EINVAL; +} +static inline void rt5677_spi_hotword_detected(void){} +#endif #endif /* __RT5677_SPI_H__ */ |