[alsa-devel] [PATCH v2] ASoC: rt5677: Support DSP function for VAD application

Anatol Pomozov anatol.pomozov at gmail.com
Wed Oct 15 23:04:10 CEST 2014


Hi

On Mon, Oct 6, 2014 at 1:30 AM, Oder Chiou <oder_chiou at realtek.com> wrote:
> The ALC5677 has a programmable DSP, and there is a SPI that is dadicated for DSP
> firmware loading. Therefore, the patch includes a SPI driver for writing the DSP
> firmware. The VAD(Voice Activaty Detection) has be implemented and use the DSP to
> recognize the key phase.
>
> Signed-off-by: Oder Chiou <oder_chiou at realtek.com>
> ---
>  sound/soc/codecs/Makefile     |   2 +-
>  sound/soc/codecs/rt5677-spi.c | 129 +++++++++++++++++++
>  sound/soc/codecs/rt5677-spi.h |  21 +++
>  sound/soc/codecs/rt5677.c     | 288 +++++++++++++++++++++++++++++++++++++++++-
>  sound/soc/codecs/rt5677.h     |   6 +
>  5 files changed, 441 insertions(+), 5 deletions(-)
>  create mode 100644 sound/soc/codecs/rt5677-spi.c
>  create mode 100644 sound/soc/codecs/rt5677-spi.h

I am trying to compile rt5677 topic branch from Mark's repo and I get
following linking problem

  LD [M]  sound/soc/codecs/snd-soc-rt5670.o
  LD [M]  sound/soc/codecs/snd-soc-rt5677.o
sound/soc/codecs/rt5677-spi.o: In function `init_module':
rt5677-spi.c:(.init.text+0x0): multiple definition of `init_module'
sound/soc/codecs/rt5677.o:rt5677.c:(.init.text+0x0): first defined here
sound/soc/codecs/rt5677-spi.o: In function `cleanup_module':
rt5677-spi.c:(.exit.text+0x0): multiple definition of `cleanup_module'
sound/soc/codecs/rt5677.o:rt5677.c:(.exit.text+0x0): first defined here
make[3]: *** [sound/soc/codecs/snd-soc-rt5677.o] Error 1
make[2]: *** [sound/soc/codecs] Error 2
make[1]: *** [sound/soc] Error 2
make[1]: *** Waiting for unfinished jobs....

I use CONFIG_SND_SOC_ALL_CODEC.


More information about the Alsa-devel mailing list