Message ID | 87si8pvqvx.wl%kuninori.morimoto.gx@renesas.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 379febfd2e30ec8db5baccd9f9403bf650c6afa1 |
Headers | show
Return-Path: <alsa-devel-bounces@alsa-project.org> X-Original-To: patchwork-alsa-devel@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 953BC9F2E8 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:19:04 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id C06E3205E2 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:19:03 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) by mail.kernel.org (Postfix) with ESMTP id 8D57720592 for <patchwork-alsa-devel@patchwork.kernel.org>; Wed, 15 Jul 2015 07:19:02 +0000 (UTC) Received: by alsa0.perex.cz (Postfix, from userid 1000) id 81E69265998; Wed, 15 Jul 2015 09:18:40 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 Received: from alsa0.perex.cz (localhost [IPv6:::1]) by alsa0.perex.cz (Postfix) with ESMTP id 7FA1E265999; Wed, 15 Jul 2015 09:15:12 +0200 (CEST) X-Original-To: alsa-devel@alsa-project.org Delivered-To: alsa-devel@alsa-project.org Received: by alsa0.perex.cz (Postfix, from userid 1000) id ECFD8265998; Wed, 15 Jul 2015 09:15:11 +0200 (CEST) Received: from relmlie1.idc.renesas.com (relmlor2.renesas.com [210.160.252.172]) by alsa0.perex.cz (Postfix) with ESMTP id 3D44B26599E for <alsa-devel@alsa-project.org>; Wed, 15 Jul 2015 09:12:23 +0200 (CEST) Received: from unknown (HELO relmlir3.idc.renesas.com) ([10.200.68.153]) by relmlie1.idc.renesas.com with ESMTP; 15 Jul 2015 16:12:22 +0900 Received: from relmlac4.idc.renesas.com (relmlac4.idc.renesas.com [10.200.69.24]) by relmlir3.idc.renesas.com (Postfix) with ESMTP id B87834251F; Wed, 15 Jul 2015 16:12:22 +0900 (JST) Received: by relmlac4.idc.renesas.com (Postfix, from userid 0) id 717D1480A3; Wed, 15 Jul 2015 16:12:22 +0900 (JST) Received: from relmlac4.idc.renesas.com (localhost [127.0.0.1]) by relmlac4.idc.renesas.com (Postfix) with ESMTP id 59AE2480A6; Wed, 15 Jul 2015 16:12:22 +0900 (JST) Received: from relmlii1.idc.renesas.com [10.200.68.65] by relmlac4.idc.renesas.com with ESMTP id SAL12698; Wed, 15 Jul 2015 16:12:22 +0900 X-IronPort-AV: E=Sophos;i="5.15,477,1432566000"; d="scan'";a="190394699" Received: from mail-hk1lp0123.outbound.protection.outlook.com (HELO APAC01-HK1-obe.outbound.protection.outlook.com) ([207.46.51.123]) by relmlii1.idc.renesas.com with ESMTP/TLS/AES256-SHA; 15 Jul 2015 16:12:20 +0900 Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none; Received: from morimoto-PC.renesas.com (211.11.155.144) by HK2PR06MB0596.apcprd06.prod.outlook.com (10.161.187.147) with Microsoft SMTP Server (TLS) id 15.1.213.14; Wed, 15 Jul 2015 07:12:18 +0000 Message-ID: <87si8pvqvx.wl%kuninori.morimoto.gx@renesas.com> From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> User-Agent: Wanderlust/2.15.9 Emacs/24.3 Mule/6.0 To: Mark Brown <broonie@kernel.org> In-Reply-To: <87d1ztx5pb.wl%kuninori.morimoto.gx@renesas.com> References: <87d1ztx5pb.wl%kuninori.morimoto.gx@renesas.com> MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") Date: Wed, 15 Jul 2015 07:12:18 +0000 X-Originating-IP: [211.11.155.144] X-ClientProxiedBy: OS1PR01CA0002.jpnprd01.prod.outlook.com (25.161.225.140) To HK2PR06MB0596.apcprd06.prod.outlook.com (25.161.187.147) X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0596; 2:fPxgkx4uZOLMgQpaf2Dz+dvYFTUHEnwComqni/OVpfx9aNQibzXsAtwc6dyvOl4O; 3:m/Lio3wGXtaAB7MhRXxtBhSXioUCiJXbRhC8sNTA9bHruUi+Je9x/bqYs61VQWUv3RTA7cf2ZNmQkEYi7ioYkxMU6V8DBKVMxzoJnIC7bQIMpj3Gd8HqAb6p/Gh/3WoP4mAkZk69lc3NKDG3VjcPOA==; 25:bZuIcgdznQv05vYn09f5Yxcqo15hmvth0K4oCB9I2C8EaTbOfGS6AAQmidDf0vnFrXgVIJtqy3cjyGcDGNug29rkK7tRStaX2fQq2yzvZ3c8TCl7N31iy03G8C9bZyqu68F41Yq3MRN1n4dnH6RyT512cJtDVjzuKkrYHoUczaTDW4jPGHmSRsC96G5lKfoQhGdSFftme9OPfHaLK//EJgkC3eOK059xkLAdQgTlfiyEBeMgiSIo1Y+8ZuQvOv9p X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:HK2PR06MB0596; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0596; 20:2kcRuH21DfWxCADFQ7wQeGd3NHQ8s3NURRihBBFAOSERcxf6YV5qerd4X+j98TjMtpNwvsccvoFqIQUE5KR/2QjWV+z2y9ub6oA3T7uoEzOZ1ml3ZDM7FF4GaDsswNW86nxvUtc4FJbBCvUeDwKTBDZXFSMFrtUzE/z/b/XQbIfdVs9G4Qyv/LEMRJx82zej0SciEZ5wP0Zf5o2ujMN3yg+ZUTDEtrnnp9bkZSoNZd0w7Kod5wWG4FVo5E9NXA8/AFj7Uz0xXlaY8etggIDFI+72R5V8o0rYCk8e6nwowKPNtUvaXFTko28q91BzwNxPCFkXKspE6mTfnY35KVBKE9rNkq18O7rOv59TW6Lx/LRod/cQ0s3FnpXzEexkqYc/4Lj/hfi3LmE4KdazGPC1/i5blRh0PaBCm3am3bgBgM5Wg81957qxQ0zGwRdjnYF/sOmp2+YmKZ4Cm3m7jMkI09nlPawAD4J22TkTniH9DMLFCfKP2qe+9S9cCBl17wwO; 4:Tx4Mqtp6mRJdV7NtdcxDspa3dWtp35fgzw1/GKJYxQ058jxtAUx9+NU5/UT/IfYkYO0hx2bWGka8up0EAoZWzk9IFxN4sqiQ642GEYKbmkDY2p7CusKfyZQabQhz5rstDhqlyZxgSDrt80y/QB0in7xa8AtWwl5bSFUy+j2lksQbJQXS805+PVZT5WCyHRuAiCBz1XkSGYbSQNxYEiwm3rTrjidw/mAbY1Nr21b63t4+5XchO8tqPcq/PWx2D3ywLn5uj03glkk8vpIif0KNqopzUGoVU3vF5DwLJ3yM7Jk= HK2PR06MB0596: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: <HK2PR06MB059634B7C87AFCE490DD5A85D49A0@HK2PR06MB0596.apcprd06.prod.outlook.com> X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:HK2PR06MB0596; BCL:0; PCL:0; RULEID:; SRVR:HK2PR06MB0596; X-Forefront-PRVS: 0638FD5066 X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(36756003)(86362001)(53416004)(107886002)(2950100001)(5001960100002)(110136002)(46102003)(62966003)(83506001)(122386002)(40100003)(23726002)(77156002)(42186005)(87976001)(229853001)(50466002)(19580405001)(46406003)(92566002)(76176999)(19580395003)(189998001)(4001350100001)(50986999)(54356999)(33646002)(77096005)(47776003)(66066001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:HK2PR06MB0596; H:morimoto-PC.renesas.com; FPR:; SPF:None; MLV:sfv; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; HK2PR06MB0596; 23:cESP0FUlpQAs6LfQeZ4KGpo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jo4OH665CQg==; 24:uTFeRrp/101Zg21dLlBd5D8gI/2jQXxrzz6bWin+wnSzpMUlny/GkaXNkiy0Q/DXai6ai8cApZJrNxYA9XTXScSNre2MiRJCxP3uABRUAzs=; 20:hJE1sm/ArYcYhDZ1Ywhtj0nCjjKN5auNwRejw1cOOEOb9j2zfxJo2nuVgZMYl15ajs1BHZYT2zd63kXF5N70I2YBCURh66y5bTshftwvmVs//MHS2CPG4dbVtcZfqnEklIBywC4hsiE2z2pWqt6v2/4f0FgQkED5cA9kP0xVibY= SpamDiagnosticOutput: 1:23 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: renesas.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 15 Jul 2015 07:12:18.6921 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-Transport-CrossTenantHeadersStamped: HK2PR06MB0596 Cc: Linux-ALSA <alsa-devel@alsa-project.org>, shiiba <naoya.shiiba.nx@renesas.com>, Liam Girdwood <lgirdwood@gmail.com>, komatsu <toshiaki.komatsu.ud@renesas.com>, kobayashi <keita.kobayashi.ym@renesas.com>, Simon <horms@verge.net.au> Subject: [alsa-devel] [PATCH 14/35] ASoC: rsnd: src: make sure SRC soft reset X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" <alsa-devel.alsa-project.org> List-Unsubscribe: <http://mailman.alsa-project.org/mailman/options/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=unsubscribe> List-Archive: <http://mailman.alsa-project.org/pipermail/alsa-devel/> List-Post: <mailto:alsa-devel@alsa-project.org> List-Help: <mailto:alsa-devel-request@alsa-project.org?subject=help> List-Subscribe: <http://mailman.alsa-project.org/mailman/listinfo/alsa-devel>, <mailto:alsa-devel-request@alsa-project.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org X-Virus-Scanned: ClamAV using ClamSMTP |
diff --git a/sound/soc/sh/rcar/src.c b/sound/soc/sh/rcar/src.c index 0b06ac8..74ab644 100644 --- a/sound/soc/sh/rcar/src.c +++ b/sound/soc/sh/rcar/src.c @@ -118,6 +118,12 @@ struct rsnd_src { /* * Gen1/Gen2 common functions */ +static void rsnd_src_soft_reset(struct rsnd_mod *mod) +{ + rsnd_mod_write(mod, SRC_SWRSR, 0); + rsnd_mod_write(mod, SRC_SWRSR, 1); +} + static struct dma_chan *rsnd_src_dma_req(struct rsnd_dai_stream *io, struct rsnd_mod *mod) { @@ -294,10 +300,6 @@ static int rsnd_src_set_convert_rate(struct rsnd_mod *mod, if (convert_rate) fsrate = 0x0400000 / convert_rate * runtime->rate; - /* set/clear soft reset */ - rsnd_mod_write(mod, SRC_SWRSR, 0); - rsnd_mod_write(mod, SRC_SWRSR, 1); - /* Set channel number and output bit length */ rsnd_mod_write(mod, SRC_ADINR, rsnd_get_adinr(mod, io)); @@ -358,6 +360,8 @@ static int rsnd_src_init(struct rsnd_mod *mod, rsnd_mod_hw_start(mod); + rsnd_src_soft_reset(mod); + src->err = 0; /* reset sync convert_rate */