From patchwork Wed Oct 29 01:33:38 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Kuninori Morimoto X-Patchwork-Id: 5183181 Return-Path: X-Original-To: patchwork-linux-sh@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id EB37C9F318 for ; Wed, 29 Oct 2014 01:33:42 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id DEE742017D for ; Wed, 29 Oct 2014 01:33:41 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C18DA2017A for ; Wed, 29 Oct 2014 01:33:40 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751536AbaJ2Bdk (ORCPT ); Tue, 28 Oct 2014 21:33:40 -0400 Received: from mail-pd0-f182.google.com ([209.85.192.182]:62126 "EHLO mail-pd0-f182.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751189AbaJ2Bdj (ORCPT ); Tue, 28 Oct 2014 21:33:39 -0400 Received: by mail-pd0-f182.google.com with SMTP id fp1so1870436pdb.41 for ; Tue, 28 Oct 2014 18:33:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:message-id:from:to:cc:subject:in-reply-to:references :user-agent:mime-version:content-type; bh=4AEWFzR4p4e6syh8SjV8+WMBgrcd6uygdv5gRHXnpbM=; b=VPrT2eUdKjh2Xd8DOZoa9TOYblba/VNT78U3YQJGcaMiLk3aA9ZMSpVAko7mmzjUvh jm4nHc9jIinaL1OpLznPZux+SOnnPkJenSgRLVKffkO2E/ht33amO+cdXL0tFqTHKK3w jBZamq2by4/A4ktOC6Fdtj6atbBOAwFjS67c/ozS6zGmfI1sVi7eWdWtv0PMSai5IDgw hzxEEhPb/XQO3lveYDJlOU3yF8ODrjIFMj0mbn8sPMv0kXUUAefxeGBzXymip3d6lTEO aZRUlt1lVMFDLs6MYM/FIuQltFEI28siA7qIhGAW40CMKDO9oXOQU0PQTKT3oSRr2bSc goEw== X-Received: by 10.68.206.98 with SMTP id ln2mr7059731pbc.83.1414546419261; Tue, 28 Oct 2014 18:33:39 -0700 (PDT) Received: from remon.gmail.com (49.14.32.202.bf.2iij.net. [202.32.14.49]) by mx.google.com with ESMTPSA id td4sm2745015pbc.36.2014.10.28.18.33.37 for (version=TLSv1.2 cipher=RC4-SHA bits=128/128); Tue, 28 Oct 2014 18:33:38 -0700 (PDT) Date: Tue, 28 Oct 2014 18:33:38 -0700 (PDT) Message-ID: <87ioj3irrg.wl%kuninori.morimoto.gx@gmail.com> From: Kuninori Morimoto To: Laurent Pinchart Cc: Simon , Morimoto , Magnus , Linux-SH Subject: Re: [PATCH 0/11][RFC] sound DMA support patches In-Reply-To: <87ppdbivow.wl%kuninori.morimoto.gx@gmail.com> References: <874my8vlqq.wl%kuninori.morimoto.gx@gmail.com> <4038261.I2upKqcgeP@avalon> <87wq7lqcaf.wl%kuninori.morimoto.gx@gmail.com> <1602179.i7BzQ7tAco@avalon> <87ppdbivow.wl%kuninori.morimoto.gx@gmail.com> User-Agent: Wanderlust/2.14.0 Emacs/23.3 Mule/6.0 MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Sender: linux-sh-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-sh@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Hi Laurent again Thank you for your DMA cyclic work > > I've pushed my test branch to > > > > git://linuxtv.org/pinchartl/fbdev.git dma/audio > > > > It doesn't include support for DMA hardware descriptors yet, as I wanted to > > rule out any issue with them. Unfortunately, it was patch applying magic. ak4643 is needed under iic2, not iic1. Can you add attached patch on your dma/audio branch ? It works for me. When you use sound on Lager board, you need amixer setting. And you can use bottom jack of CN17 for sound output. / # amixer set "LINEOUT Mixer DACL" on /* start sound playback and check DMA interrupt */ / # aplay /home/xxx.wav & / # grep dma /proc/interrupts ... 352: 103 0 0 0 GIC 352 ec700000.dma-contorller:0 / # grep dma /proc/interrupts ... 352: 124 0 0 0 GIC 352 ec700000.dma-contorller:0 / # grep dma /proc/interrupts ... 352: 146 0 0 0 GIC 352 ec700000.dma-contorller:0 / # grep dma /proc/interrupts ... 352: 195 0 0 0 GIC 352 ec700000.dma-contorller:0 / # grep dma /proc/interrupts ... 352: 216 0 0 0 GIC 352 ec700000.dma-contorller:0 / # grep dma /proc/interrupts ... 352: 239 0 0 0 GIC 352 ec700000.dma-contorller:0 /* stop sound playback and check DMA interrupt */ / # fg aplay /home/Calm_16bit_48k.wav ^CAborted by signal Interrupt... / # grep dma /proc/interrupts ... 352: 280 0 0 0 GIC 352 ec700000.dma-contorller:0 / # grep dma /proc/interrupts ... 352: 280 0 0 0 GIC 352 ec700000.dma-contorller:0 ---------------------- ---------------------- Best regards --- Kuninori Morimoto -- To unsubscribe from this list: send the line "unsubscribe linux-sh" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/boot/dts/r8a7790-lager.dts b/arch/arm/boot/dts/r8a7790-lager.dts index f891a00..03fe43a 100644 --- a/arch/arm/boot/dts/r8a7790-lager.dts +++ b/arch/arm/boot/dts/r8a7790-lager.dts @@ -409,12 +409,6 @@ status = "ok"; pinctrl-0 = <&iic1_pins>; pinctrl-names = "default"; - - ak4643: sound_codec { - compatible = "asahi-kasei,ak4643"; - #sound-dai-cells = <0>; - reg = <0x12>; - }; }; &iic2 { @@ -434,6 +428,12 @@ }; }; }; + + ak4643: sound_codec { + compatible = "asahi-kasei,ak4643"; + #sound-dai-cells = <0>; + reg = <0x12>; + }; }; &iic3 {