drivers/audio: Fix naming of configurations to be compliant for vs1053 audio driver.
This commit is contained in:
parent
5129aeefd5
commit
53ef64aae6
|
@ -142,5 +142,5 @@ CONFIG_SYSTEM_NXPLAYER=y
|
|||
CONFIG_TASK_NAME_SIZE=11
|
||||
CONFIG_USBDEV=y
|
||||
CONFIG_USER_ENTRYPOINT="nxwm_main"
|
||||
CONFIG_VS1053=y
|
||||
CONFIG_AUDIO_VS1053=y
|
||||
CONFIG_WDOG_INTRESERVE=1
|
||||
|
|
|
@ -86,7 +86,7 @@ ifeq ($(CONFIG_LCD_MIO283QT9A),y)
|
|||
CSRCS += stm32_mio283qt9a.c
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_VS1053),y)
|
||||
ifeq ($(CONFIG_AUDIO_VS1053),y)
|
||||
CSRCS += stm32_vs1053.c
|
||||
endif
|
||||
|
||||
|
|
|
@ -285,7 +285,7 @@ void stm32_lcdinitialize(void);
|
|||
*
|
||||
****************************************************************************************************/
|
||||
|
||||
#ifdef CONFIG_VS1053
|
||||
#ifdef CONFIG_AUDIO_VS1053
|
||||
void up_vs1053initialize(FAR struct spi_dev_s *spi);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -72,7 +72,7 @@ void stm32_boardinitialize(void)
|
|||
{
|
||||
/* First reset the VS1053 since it tends to produce noise out of power on reset */
|
||||
|
||||
#ifdef CONFIG_VS1053
|
||||
#ifdef CONFIG_AUDIO_VS1053
|
||||
(void)stm32_configgpio(GPIO_VS1053_RST);
|
||||
#endif
|
||||
|
||||
|
|
|
@ -84,7 +84,7 @@ void weak_function stm32_spidev_initialize(void)
|
|||
(void)stm32_configgpio(GPIO_SD_CD); /* MMC/SD card detect */
|
||||
#endif
|
||||
|
||||
#ifdef CONFIG_VS1053
|
||||
#ifdef CONFIG_AUDIO_VS1053
|
||||
(void)stm32_configgpio(GPIO_CS_MP3_DATA); /* MP3 codec chip select for DATA */
|
||||
(void)stm32_configgpio(GPIO_CS_MP3_CMD); /* MP3 codec chip select for CMD */
|
||||
#endif
|
||||
|
@ -126,7 +126,7 @@ void stm32_spi3select(FAR struct spi_dev_s *dev, uint32_t devid, bool selected)
|
|||
|
||||
spiinfo("devid: %d CS: %s\n", (int)devid, selected ? "assert" : "de-assert");
|
||||
|
||||
#if defined(CONFIG_VS1053)
|
||||
#if defined(CONFIG_AUDIO_VS1053)
|
||||
if (devid == SPIDEV_AUDIO_DATA(0))
|
||||
{
|
||||
stm32_gpiowrite(GPIO_CS_MP3_DATA, !selected);
|
||||
|
|
|
@ -53,7 +53,7 @@
|
|||
#include "up_arch.h"
|
||||
#include "mikroe-stm32f4.h"
|
||||
|
||||
#ifdef CONFIG_VS1053
|
||||
#ifdef CONFIG_AUDIO_VS1053
|
||||
|
||||
/****************************************************************************
|
||||
* Pre-processor Definitions
|
||||
|
@ -209,4 +209,4 @@ void up_vs1053initialize(FAR struct spi_dev_s* spi)
|
|||
audinfo("Bound SPI port to VS1053 device %s\n", name);
|
||||
}
|
||||
|
||||
#endif /* CONFIG_VS1053 */
|
||||
#endif /* CONFIG_AUDIO_VS1053 */
|
||||
|
|
|
@ -39,7 +39,7 @@
|
|||
|
||||
ifeq ($(CONFIG_AUDIO_DEVICES),y)
|
||||
|
||||
ifeq ($(CONFIG_VS1053),y)
|
||||
ifeq ($(CONFIG_AUDIO_VS1053),y)
|
||||
CSRCS += vs1053.c
|
||||
endif
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@
|
|||
|
||||
/* VS1053 Configuration Settings:
|
||||
*
|
||||
* CONFIG_VS1053 - Enabled VS1053 support
|
||||
* CONFIG_AUDIO_VS1053 - Enabled VS1053 support
|
||||
* CONFIG_VS1053_SPIMODE - Controls the SPI mode
|
||||
*/
|
||||
|
||||
|
|
Loading…
Reference in New Issue