Linux-ARM-Kernel Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: peter.ujfalusi@ti.com (Peter Ujfalusi)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH v2 3/8] ARM: OMAP2+: twl-common: Add default twl4030 audio configuration
Date: Fri, 18 Jan 2013 15:31:51 +0100	[thread overview]
Message-ID: <1358519516-13165-4-git-send-email-peter.ujfalusi@ti.com> (raw)
In-Reply-To: <1358519516-13165-1-git-send-email-peter.ujfalusi@ti.com>

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>
---
 arch/arm/mach-omap2/twl-common.c | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/arch/arm/mach-omap2/twl-common.c b/arch/arm/mach-omap2/twl-common.c
index e49b40b..cd1cba8 100644
--- a/arch/arm/mach-omap2/twl-common.c
+++ b/arch/arm/mach-omap2/twl-common.c
@@ -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",
-- 
1.8.1

  parent reply	other threads:[~2013-01-18 14:31 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-01-18 14:31 [PATCH v2 0/8] ARM: OMAP: Audio support via omap-twl4030 and pwm support Peter Ujfalusi
2013-01-18 14:31 ` [PATCH v2 1/8] ARM: OMAP: 3430sdp: Enable extmute functionality for audio Peter Ujfalusi
2013-01-18 14:31 ` [PATCH v2 2/8] ARM: OMAP: zoom: Zoom2 does not have extmute functionality Peter Ujfalusi
2013-01-18 14:31 ` Peter Ujfalusi [this message]
2013-01-18 14:31 ` [PATCH v2 4/8] ARM: OMAP2+: twl-common: Allow boards to customize the twl4030 audio setup Peter Ujfalusi
2013-01-18 14:31 ` [PATCH v2 5/8] ARM: OMAP: zoom: Audio support via the common omap-twl4030 machine driver Peter Ujfalusi
2013-01-18 14:31 ` [PATCH v2 6/8] ARM: OMAP: sdp3430: " Peter Ujfalusi
2013-01-18 14:31 ` [PATCH v2 7/8] ARM: OMAP: board-4430sdp: Proper support for TWL6030 PWM LED/Backlight Peter Ujfalusi
2013-01-18 14:31 ` [PATCH v2 8/8] ARM: OMAP: omap3beagle: Use the pwm_leds driver to control the PMU_STAT led Peter Ujfalusi

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1358519516-13165-4-git-send-email-peter.ujfalusi@ti.com \
    --to=peter.ujfalusi@ti.com \
    --cc=linux-arm-kernel@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox