From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarkko Nikula Subject: Re: [PATCHv4 0/2] McBSP: OMAP3: Add sidetone feature Date: Fri, 19 Feb 2010 15:39:16 +0200 Message-ID: <20100219153916.a3dc4a77.jhnikula@gmail.com> References: <1266518549-23809-1-git-send-email-ilkka.koskinen@nokia.com> <20100218222229.0f0eb3a9.jhnikula@gmail.com> <201002191034.32391.peter.ujfalusi@nokia.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail-ew0-f223.google.com (mail-ew0-f223.google.com [209.85.219.223]) by alsa0.perex.cz (Postfix) with ESMTP id 10CEB10393B for ; Fri, 19 Feb 2010 14:33:53 +0100 (CET) Received: by ewy23 with SMTP id 23so96736ewy.4 for ; Fri, 19 Feb 2010 05:33:52 -0800 (PST) In-Reply-To: <201002191034.32391.peter.ujfalusi@nokia.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: alsa-devel-bounces@alsa-project.org Errors-To: alsa-devel-bounces@alsa-project.org To: Peter Ujfalusi Cc: "alsa-devel@alsa-project.org" , "linux-omap@vger.kernel.org" , "tony@atomide.com" , "broonie@opensource.wolfsonmicro.com" , "Valentin Eduardo (Nokia-D/Helsinki)" , "Nurkkala Eero.An (EXT-Offcode/Oulu)" , "Koskinen Ilkka (Nokia-D/Tampere)" List-Id: alsa-devel@alsa-project.org On Fri, 19 Feb 2010 10:34:32 +0200 Peter Ujfalusi wrote: > I'm not sure, but you might need to configure the taps as well to have the > correct sidetone. > Also I have a recollection, that the McBSP sidetone requires DSP mode (TDM) in > order to operate correctly, so on Beagle you might need to set up 4 channel > mode. And how the channel mapping in 4 channel mode works in McBSP sidetone is > another matter... > It seems to work with I2S too. I think I forgot to enable control 'McBSP2 Sidetone' when I last time tried this set (v1 or v2). But now my null test below works and I can hear that the level is changing when I adjust the volumes with amixer. echo 32767 >/sys/devices/platform/omap-mcbsp.2/st_taps arecord -f dat >/dev/null |aplay -f dat /dev/zero amixer set -D hw:0 'McBSP2 Sidetone Channel 0' 32700 amixer set -D hw:0 'McBSP2 Sidetone Channel 0' 327 amixer set -D hw:0 'McBSP2 Sidetone Channel 0' -- -32700 -- Jarkko