Skip to content

Commit

Permalink
ARM: OMAP2+: twl-common: Add default twl4030 audio configuration
Browse files Browse the repository at this point in the history
Select the most commonly used audio configuration on boards with twl4030
audio:
Headset, Handsfree output and Line in input

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
  • Loading branch information
Peter Ujfalusi committed Jan 22, 2013
1 parent 98b0606 commit 02553f5
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion arch/arm/mach-omap2/twl-common.c
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,12 @@ void __init omap4_pmic_get_config(struct twl4030_platform_data *pmic_data,
defined(CONFIG_SND_OMAP_SOC_OMAP_TWL4030_MODULE)
#include <linux/platform_data/omap-twl4030.h>

static struct omap_tw4030_pdata omap_twl4030_audio_data;
/* Commonly used configuration */
static struct omap_tw4030_pdata omap_twl4030_audio_data = {
.has_hs = OMAP_TWL4030_LEFT | OMAP_TWL4030_RIGHT,
.has_hf = OMAP_TWL4030_LEFT | OMAP_TWL4030_RIGHT,
.has_linein = OMAP_TWL4030_LEFT | OMAP_TWL4030_RIGHT,
};

static struct platform_device audio_device = {
.name = "omap-twl4030",
Expand Down

0 comments on commit 02553f5

Please sign in to comment.