From patchwork Fri Feb 22 12:02:44 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Charles Keepax X-Patchwork-Id: 2175721 Return-Path: X-Original-To: patchwork-linux-samsung-soc@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 3065E3FCFC for ; Fri, 22 Feb 2013 12:04:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756911Ab3BVME4 (ORCPT ); Fri, 22 Feb 2013 07:04:56 -0500 Received: from opensource.wolfsonmicro.com ([80.75.67.52]:50609 "EHLO opensource.wolfsonmicro.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756439Ab3BVME4 (ORCPT ); Fri, 22 Feb 2013 07:04:56 -0500 Received: from localhost.localdomain (unknown [87.246.78.26]) by opensource.wolfsonmicro.com (Postfix) with ESMTPSA id 93D2D1100E0; Fri, 22 Feb 2013 12:04:54 +0000 (GMT) From: Charles Keepax To: kgene.kim@samsung.com Cc: broonie@opensource.wolfsonmicro.com, ben-linux@fluff.org, patches@opensource.wolfsonmicro.com, linux-samsung-soc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, Charles Keepax Subject: [PATCH] ARM: S3C64XX: Slow down mic detection rate for wm5102 Date: Fri, 22 Feb 2013 12:02:44 +0000 Message-Id: <1361534564-2082-1-git-send-email-ckeepax@opensource.wolfsonmicro.com> X-Mailer: git-send-email 1.7.2.5 Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org A slightly slower rate provides more reliable jack detection during slower insertions. Signed-off-by: Charles Keepax Acked-by: Mark Brown --- This patch does depend on a patch which will be coming through the extcon tree but this should get merged during this merge window. switch: arizona: Support microphone detection rate configuration commit 2e033db5ddf299de2ae568919d78b0258a5a6423 Thanks, Charles arch/arm/mach-s3c64xx/mach-crag6410-module.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/arch/arm/mach-s3c64xx/mach-crag6410-module.c b/arch/arm/mach-s3c64xx/mach-crag6410-module.c index 755c0bb..4f5ace2 100644 --- a/arch/arm/mach-s3c64xx/mach-crag6410-module.c +++ b/arch/arm/mach-s3c64xx/mach-crag6410-module.c @@ -210,6 +210,7 @@ static struct arizona_pdata wm5102_reva_pdata = { .gpio_base = CODEC_GPIO_BASE, .irq_active_high = true, .micd_pol_gpio = CODEC_GPIO_BASE + 4, + .micd_rate = 6, .gpio_defaults = { [2] = 0x10000, /* AIF3TXLRCLK */ [3] = 0x4, /* OPCLK */