[PATCH 1/1] ASoC: Fix compilation error with davinci-sffsdr module

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The SFFSDR audio codec sampling frequency clock is generated by
a FPGA, and set by the FPGA driver. The FPGA driver is not yet
in the mainline kernel, so that is why an extern declaration is
used in the meantime.

Signed-off-by: Hugo Villeneuve <hugo@xxxxxxxxxxx>
---
 sound/soc/davinci/davinci-sffsdr.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/sound/soc/davinci/davinci-sffsdr.c b/sound/soc/davinci/davinci-sffsdr.c
index 1bbde3e..0a03b41 100644
--- a/sound/soc/davinci/davinci-sffsdr.c
+++ b/sound/soc/davinci/davinci-sffsdr.c
@@ -25,7 +25,6 @@
 #include <asm/gpio.h>
 #include <asm/dma.h>
 #include <asm/mach-types.h>
-#include <asm/plat-sffsdr/sffsdr-fpga.h>
 
 #include <mach/asp.h>
 #include <mach/edma.h>
@@ -34,6 +33,11 @@
 #include "davinci-pcm.h"
 #include "davinci-i2s.h"
 
+/* The SFFSDR audio codec sampling frequency clock is generated by a FPGA.
+ * The FPGA driver is not yet in the mainline kernel, so that is
+ * why an extern declaration is used in the meantime. */
+extern int sffsdr_fpga_set_codec_fs(int fs);
+
 static int sffsdr_hw_params(struct snd_pcm_substream *substream,
 			    struct snd_pcm_hw_params *params)
 {
-- 
1.5.4.5

_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux