Skip to content

Commit

Permalink
drivers/audio: Fix naming of configurations to be compliant for vs105…
Browse files Browse the repository at this point in the history
…3 audio driver.
  • Loading branch information
gregory-nutt committed Aug 24, 2017
1 parent 5129aee commit 53ef64a
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/fulldemo/defconfig
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/src/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/src/mikroe-stm32f4.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
2 changes: 1 addition & 1 deletion configs/mikroe-stm32f4/src/stm32_boot.c
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 2 additions & 2 deletions configs/mikroe-stm32f4/src/stm32_spi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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);
Expand Down
4 changes: 2 additions & 2 deletions configs/mikroe-stm32f4/src/stm32_vs1053.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
#include "up_arch.h"
#include "mikroe-stm32f4.h"

#ifdef CONFIG_VS1053
#ifdef CONFIG_AUDIO_VS1053

/****************************************************************************
* Pre-processor Definitions
Expand Down Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion drivers/audio/Make.defs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

ifeq ($(CONFIG_AUDIO_DEVICES),y)

ifeq ($(CONFIG_VS1053),y)
ifeq ($(CONFIG_AUDIO_VS1053),y)
CSRCS += vs1053.c
endif

Expand Down
2 changes: 1 addition & 1 deletion include/nuttx/audio/vs1053.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*/

Expand Down

0 comments on commit 53ef64a

Please sign in to comment.