Patchwork ARM: mx28: Let audio support be built by default

login
register
mail settings
Submitter Fabio Estevam
Date Dec. 29, 2011, 2:46 p.m.
Message ID <1325169961-11923-1-git-send-email-festevam@gmail.com>
Download mbox | patch
Permalink /patch/133553/
State New
Headers show

Comments

Fabio Estevam - Dec. 29, 2011, 2:46 p.m.
Let audio support be built by default.

As sgtl5000 codec is connected via I2C, let MXS I2C driver also be built
by default.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
---
 arch/arm/configs/mxs_defconfig |   19 ++++++++++++++++---
 1 files changed, 16 insertions(+), 3 deletions(-)
Marek Vasut - Dec. 29, 2011, 3:23 p.m.
> Let audio support be built by default.
> 
> As sgtl5000 codec is connected via I2C, let MXS I2C driver also be built
> by default.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  arch/arm/configs/mxs_defconfig |   19 ++++++++++++++++---
>  1 files changed, 16 insertions(+), 3 deletions(-)
> 
> diff --git a/arch/arm/configs/mxs_defconfig
> b/arch/arm/configs/mxs_defconfig index 6ee781b..4a13f93 100644
> --- a/arch/arm/configs/mxs_defconfig
> +++ b/arch/arm/configs/mxs_defconfig
> @@ -77,10 +77,10 @@ CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
>  CONFIG_SERIAL_AMBA_PL011=y
>  CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
>  # CONFIG_HW_RANDOM is not set
> -CONFIG_I2C=m
> +CONFIG_I2C=y
>  # CONFIG_I2C_COMPAT is not set
> -CONFIG_I2C_CHARDEV=m
> -CONFIG_I2C_MXS=m
> +CONFIG_I2C_CHARDEV=y
> +CONFIG_I2C_MXS=y
>  CONFIG_SPI=y
>  CONFIG_SPI_GPIO=m
>  CONFIG_DEBUG_GPIO=y
> @@ -90,6 +90,19 @@ CONFIG_GPIO_SYSFS=y
>  CONFIG_DISPLAY_SUPPORT=m
>  # CONFIG_HID_SUPPORT is not set
>  # CONFIG_USB_SUPPORT is not set
> +CONFIG_SOUND=y
> +CONFIG_SND=y
> +CONFIG_SND_TIMER=y
> +CONFIG_SND_PCM=y
> +CONFIG_SND_JACK=y
> +CONFIG_SND_DRIVERS=y
> +CONFIG_SND_ARM=y
> +CONFIG_SND_SPI=y
> +CONFIG_SND_SOC=y
> +CONFIG_SND_MXS_SOC=y
> +CONFIG_SND_SOC_MXS_SGTL5000=y
> +CONFIG_SND_SOC_I2C_AND_SPI=y
> +CONFIG_SND_SOC_SGTL5000=y
>  CONFIG_MMC=y
>  CONFIG_MMC_MXS=y
>  CONFIG_RTC_CLASS=y

Acked-by: Marek Vasut <marek.vasut@gmail.com>
Shawn Guo - Jan. 5, 2012, 12:48 p.m.
On Thu, Dec 29, 2011 at 12:46:01PM -0200, Fabio Estevam wrote:
> Let audio support be built by default.
> 
> As sgtl5000 codec is connected via I2C, let MXS I2C driver also be built
> by default.
> 
> Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
> ---
>  arch/arm/configs/mxs_defconfig |   19 ++++++++++++++++---
>  1 files changed, 16 insertions(+), 3 deletions(-)
> 
The changes are not sufficient for audio to work.
CONFIG_REGULATOR_FIXED_VOLTAGE is needed too.

Patch

diff --git a/arch/arm/configs/mxs_defconfig b/arch/arm/configs/mxs_defconfig
index 6ee781b..4a13f93 100644
--- a/arch/arm/configs/mxs_defconfig
+++ b/arch/arm/configs/mxs_defconfig
@@ -77,10 +77,10 @@  CONFIG_DEVPTS_MULTIPLE_INSTANCES=y
 CONFIG_SERIAL_AMBA_PL011=y
 CONFIG_SERIAL_AMBA_PL011_CONSOLE=y
 # CONFIG_HW_RANDOM is not set
-CONFIG_I2C=m
+CONFIG_I2C=y
 # CONFIG_I2C_COMPAT is not set
-CONFIG_I2C_CHARDEV=m
-CONFIG_I2C_MXS=m
+CONFIG_I2C_CHARDEV=y
+CONFIG_I2C_MXS=y
 CONFIG_SPI=y
 CONFIG_SPI_GPIO=m
 CONFIG_DEBUG_GPIO=y
@@ -90,6 +90,19 @@  CONFIG_GPIO_SYSFS=y
 CONFIG_DISPLAY_SUPPORT=m
 # CONFIG_HID_SUPPORT is not set
 # CONFIG_USB_SUPPORT is not set
+CONFIG_SOUND=y
+CONFIG_SND=y
+CONFIG_SND_TIMER=y
+CONFIG_SND_PCM=y
+CONFIG_SND_JACK=y
+CONFIG_SND_DRIVERS=y
+CONFIG_SND_ARM=y
+CONFIG_SND_SPI=y
+CONFIG_SND_SOC=y
+CONFIG_SND_MXS_SOC=y
+CONFIG_SND_SOC_MXS_SGTL5000=y
+CONFIG_SND_SOC_I2C_AND_SPI=y
+CONFIG_SND_SOC_SGTL5000=y
 CONFIG_MMC=y
 CONFIG_MMC_MXS=y
 CONFIG_RTC_CLASS=y