From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-wg0-x22b.google.com (mail-wg0-x22b.google.com [IPv6:2a00:1450:400c:c00::22b]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 8CFBA1A06C7 for ; Fri, 30 May 2014 16:04:14 +1000 (EST) Received: by mail-wg0-f43.google.com with SMTP id l18so1409861wgh.26 for ; Thu, 29 May 2014 23:04:09 -0700 (PDT) Date: Fri, 30 May 2014 14:03:53 +0800 From: eshe168 To: timur Subject: P1022 audio driver help! Mime-Version: 1.0 Message-ID: <2014053014034907812079@gmail.com> Content-Type: multipart/alternative; boundary="----=_001_NextPart276325370688_=----" Cc: linuxppc-dev , zhphsearch Reply-To: eshe168 List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_001_NextPart276325370688_=---- Content-Type: text/plain; charset="gb2312" Content-Transfer-Encoding: base64 QHRpbXVyDQoNCmhpLA0KDQpBdWRpbyBjYXJkICh3bTg3NzYpIGNhbm5vdCB3b3JrIGluIGZ1bGwg ZHVwbGV4LCBDUFUgaXMgRlNMIFAxMDIyLg0KVGhlIFBDQiBkZXNpZ24gYWJvdXQgYXVkaW8gY2Fy ZCByZWZlcmVuY2UgRlNMIFAxMDIyIGRldmVsb3BtZW50IGJvYXJkLCBhbmQgcGFseWluZyBvciBy ZWNvcmRpbmcgaXMgT0sgc2VwYXJhdGVseS4NCg0KTXkgcXVlc3Rpb24gaXMgd2hldGhlciBQMTAy MiBhdWRpbyBkcml2ZXIgY2Fubm90IHN1cHBvcnQgZnVsbCBkdXBsZXg/DQoNClRoZSBmb2xsb3dp bmcgaXMgbXkgdGVzdCBtZXRob2QuDQp0ZXN0IHNjcmlwdDoNCiMhL2Jpbi9zaA0KZWNobyAic3Rh cnQgcGxhcnlpbmciICANCmFwbGF5IC9ub3ItZGlzay9hdWRpb3Nydi9TdWNjZXNzLndhdiAmIA0K c2xlZXAgMQ0KZWNobyAic3RhcnQgcmVjb3JkaW5nIiANCmFyZWNvcmQgLWQgNSAtdCB3YXYgLUQg InBsdWc6U0xBVkU9J2h3OjAsMSciIC1yIDE5ODg2IHRlc3Qud2F2DQoNCndoZW4gc3RhcnQgInJl Y29yZCIsICJhcGxheSIganVzdCBzdXNwZW5kLCBhbmQgSSBjYW5ub3QgbGlzdGVuIHZvaWNlLiB3 aGVuIHJlY29yZCBpcyBvdmVyLCBJIGZvdW5kIGFwbGF5IHN0aWxsIHN1c3BlbmQuDQphY2NvcmRp bmcgdG8gInBzIC1hdXgiOg0Kcm9vdCAxNDk5IDAuMiAwLjEgNDAxMiAxNTAwIHB0cy8wIFMgMDg6 MjUgMDowMCBhcGxheSAvbm9yLWRpc2svYXVkaW9zcnYvU3VjY2Vzcy53YXYNCg0KQnV0LCBJIHJ1 biB0aGlzIHNjcmlwdCBpbiBhIFBDIGxpbnV4LCBJIGNhbiBsaXN0ZW4gdGhlIHZvaWNlLCB0aGUg YXVkaW8gY2FyZCBjYW4gcmVjb3JkIG15IHZvaWNlIHNpbXVsdGFuZW91cy4NCg0KTG9va2luZyBm b3J3YXJkIHlvdXIgcmVzcG9uc2UhDQoNClRoYW5rcyEgDQoNCg0KDQoNCkIuUi4NCllYUw== ------=_001_NextPart276325370688_=---- Content-Type: text/html; charset="gb2312" Content-Transfer-Encoding: quoted-printable
@timur
 
hi,
 
Audio card (wm8776) cannot work in full duplex, CPU is FSL=20 P1022.
The PCB design about audio card reference FSL P1022 development board= , and=20 palying or recording is OK separately.
 
My question is whether P1022 audio driver cannot support full duplex?=
 
The following is my test method.
test script:

#!/bin/sh

echo=20 "start plarying"  
aplay /nor-disk/audiosrv/Success.wa= v=20 &
sleep 1

echo=20 "start recording" 
arecord -d 5 -t wav -D "plug:SLAVE=3D'hw:0,1'" = -r 19886=20 test.wav

 
when start "record", "aplay" just suspend, and I cannot listen voice.= when=20 record is over, I found aplay still suspend.
according to "ps -aux":

root=20 1499 0.2 0.1 4012 1500 pts/0 S 08:25 0:00 aplay=20 /nor-disk/audiosrv/Success.wav

 
But, I run this script in a PC linux, I can listen the voice, th= e=20 audio card can record my voice simultaneous.
 
Looking forward your response!
 
Thanks! 
 

B.R= .
YXS=
------=_001_NextPart276325370688_=------ From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from muin.pair.com (muin.pair.com [209.68.1.55]) by lists.ozlabs.org (Postfix) with ESMTP id 6E3761A06D2 for ; Sat, 31 May 2014 01:54:48 +1000 (EST) Message-ID: <5388A851.2010508@tabi.org> Date: Fri, 30 May 2014 10:48:33 -0500 From: Timur Tabi MIME-Version: 1.0 To: eshe168 Subject: Re: P1022 audio driver help! References: <2014053014034907812079@gmail.com> In-Reply-To: <2014053014034907812079@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Cc: linuxppc-dev , zhphsearch List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On 05/30/2014 01:03 AM, eshe168 wrote: > @timur > hi, > Audio card (wm8776) cannot work in full duplex, CPU is FSL P1022. > The PCB design about audio card reference FSL P1022 development board, > and palying or recording is OK separately. > My question is whether P1022 audio driver cannot support full duplex? I was never able to get the P1022ds audio to work in full duplex. After trying for a few weeks, I just gave up. If you look inside fsl_ssi.c (the main driver) you'll see this comment I wrote: /* * FIXME: The documentation says that SxCCR[WL] should not be * modified while the SSI is enabled. The only time this can * happen is if we're trying to do simultaneous playback and * capture in asynchronous mode. Unfortunately, I have been enable * to get that to work at all on the P1022DS. Therefore, we don't * bother to disable/enable the SSI when setting SxCCR[WL], because * the SSI will stop anyway. Maybe one day, this will get fixed. */ (it should say "I have been unable" instead of "I have been enable") Full duplex works fine on the MPC8610, which has the same audio controller as the P1022, so I know the controller is physically capable of it. I just don't know why it doesn't work on the P1022DS. I also don't know if it's a problem with the P1022DS board or with the P1022 SOC itself. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from muin.pair.com (muin.pair.com [209.68.1.55]) by lists.ozlabs.org (Postfix) with ESMTP id 44B6D1A0BFD for ; Tue, 3 Jun 2014 01:52:29 +1000 (EST) Message-ID: <538C9DB9.80007@tabi.org> Date: Mon, 02 Jun 2014 10:52:25 -0500 From: Timur Tabi MIME-Version: 1.0 To: "eshe168@gmail.com" Subject: Re: P1022 audio driver help! References: <2014053014034907812079@gmail.com>, <5388A851.2010508@tabi.org> <201406022205351271662@gmail.com> In-Reply-To: <201406022205351271662@gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Cc: linuxppc-dev , zhphsearch List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , eshe168@gmail.com wrote: > > I have another question. Did you test full duplex in P1022 RDK board? > Our design is same with P1022 RDK. No, I don't think I did. The P1022RDK was not a board that my team was responsible for, so I only did minimal work on it. I added support for it in the upstream kernel. It was so long ago that I don't really remember much about it. I still have the board, though. From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-pa0-x22f.google.com (mail-pa0-x22f.google.com [IPv6:2607:f8b0:400e:c03::22f]) (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 0A17B1A06D4 for ; Tue, 3 Jun 2014 00:05:42 +1000 (EST) Received: by mail-pa0-f47.google.com with SMTP id ld10so4243932pab.34 for ; Mon, 02 Jun 2014 07:05:40 -0700 (PDT) Date: Mon, 2 Jun 2014 22:05:36 +0800 From: "eshe168@gmail.com" To: timur Subject: Re: Re: P1022 audio driver help! References: <2014053014034907812079@gmail.com>, <5388A851.2010508@tabi.org> Mime-Version: 1.0 Message-ID: <201406022205351271662@gmail.com> Content-Type: multipart/alternative; boundary="----=_001_NextPart823126003353_=----" Cc: linuxppc-dev , zhphsearch List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , This is a multi-part message in MIME format. ------=_001_NextPart823126003353_=---- Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 CgoKCgoKSGkgVGltdXIKdGhhbmtzIGZvciB5b3VyIHJlcG9ucy4KSSBoYXZlIGFub3RoZXIgcXVl c3Rpb24uIERpZCB5b3UgdGVzdCBmdWxsIGR1cGxleCBpbiBQMTAyMiBSREsgYm9hcmQ/T3VyIGRl c2lnbiBpcyBzYW1lIHdpdGggUDEwMjIgUkRLLgpCLlIu5p2o5bCP5biFCsKgRnJvbTrCoFRpbXVy IFRhYmlEYXRlOsKgMjAxNC0wNS0zMMKgMjM6NDhUbzrCoGVzaGUxNjhDQzrCoGxpbnV4cHBjLWRl djsgemhwaHNlYXJjaFN1YmplY3Q6wqBSZTogUDEwMjIgYXVkaW8gZHJpdmVyIGhlbHAhT24gMDUv MzAvMjAxNCAwMTowMyBBTSwgZXNoZTE2OCB3cm90ZToKPiBAdGltdXIKPiBoaSwKPiBBdWRpbyBj YXJkICh3bTg3NzYpIGNhbm5vdCB3b3JrIGluIGZ1bGwgZHVwbGV4LCBDUFUgaXMgRlNMIFAxMDIy Lgo+IFRoZSBQQ0IgZGVzaWduIGFib3V0IGF1ZGlvIGNhcmQgcmVmZXJlbmNlIEZTTCBQMTAyMiBk ZXZlbG9wbWVudCBib2FyZCwKPiBhbmQgcGFseWluZyBvciByZWNvcmRpbmcgaXMgT0sgc2VwYXJh dGVseS4KPiBNeSBxdWVzdGlvbiBpcyB3aGV0aGVyIFAxMDIyIGF1ZGlvIGRyaXZlciBjYW5ub3Qg c3VwcG9ydCBmdWxsIGR1cGxleD8KwqAKSSB3YXMgbmV2ZXIgYWJsZSB0byBnZXQgdGhlIFAxMDIy ZHMgYXVkaW8gdG8gd29yayBpbiBmdWxsIGR1cGxleC7CoCBBZnRlciAKdHJ5aW5nIGZvciBhIGZl dyB3ZWVrcywgSSBqdXN0IGdhdmUgdXAuCsKgCklmIHlvdSBs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25vdyB3aHkgaXQgZG9lc24ndCB3b3JrIG9u IHRoZSBQMTAyMkRTLsKgIEkgYWxzbyAKZG9uJ3Qga25vdyBpZiBpdCdzIGEgcHJvYmxlbSB3aXRo IHRoZSBQMTAyMkRTIGJvYXJkIG9yIHdpdGggdGhlIFAxMDIyIApTT0MgaXRzZWxmLgrCoAoK ------=_001_NextPart823126003353_=---- Content-Type: text/html; charset="utf-8" Content-Transfer-Encoding: quoted-printable =0A
Hi Timur=

thanks for your repons.

I have another question. Did you test full duplex in P1022 RDK board?
Our design is same with P1022 RDK.

B.R.
=E6=9D=A8=E5=B0=8F=E5=B8=85
=0A
&= nbsp;
From: Timur Tabi
Date: 2014-05-30&n= bsp;23:48
Subject: Re: P1022 audio driver help!
=
On 05/30/2014 01:03 AM, eshe168 wrote:
=0A
= > @timur
=0A
> hi,
=0A
> Audio card (wm8776) ca= nnot work in full duplex, CPU is FSL P1022.
=0A
> The PCB desi= gn about audio card reference FSL P1022 development board,
=0A
&g= t; and palying or recording is OK separately.
=0A
> My questio= n is whether P1022 audio driver cannot support full duplex?
=0A
&= nbsp;
=0A
I was never able to get the P1022ds audio to work in fu= ll duplex.  After
=0A
trying for a few weeks, I just gave u= p.
=0A
 
=0A
If you look inside fsl_ssi.c (the main= driver) you'll see this comment I
=0A
wrote:
=0A
 = ;
=0A
/*
=0A
  * FIXME: The documentation says that= SxCCR[WL] should not be
=0A
  * modified while the SSI is e= nabled.  The only time this can
=0A
  * happen is if we= 're trying to do simultaneous playback and
=0A
  * capture i= n asynchronous mode.  Unfortunately, I have been enable
=0A
=   * to get that to work at all on the P1022DS.  Therefore, we do= n't
=0A
  * bother to disable/enable the SSI when setting Sx= CCR[WL], because
=0A
  * the SSI will stop anyway.  May= be one day, this will get fixed.
=0A
  */
=0A
 = ;
=0A
(it should say "I have been unable" instead of "I have been= enable")
=0A
 
=0A
Full duplex works fine on the M= PC8610, which has the same audio
=0A
controller as the P1022, so= I know the controller is physically capable
=0A
of it.  I = just don't know why it doesn't work on the P1022DS.  I also
=0A=
don't know if it's a problem with the P1022DS board or with the P1022=
=0A
SOC itself.
=0A
 
=0A
= =0A ------=_001_NextPart823126003353_=------