From: Takashi Iwai Subject: Re: Noisy USB audio stream using MPlayer Date: Mon, 22 Jun 2009 18:41:19 +0200 Message-ID: References: <786354.70664.qm@web62506.mail.re1.yahoo.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mx2.suse.de (cantor2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 952EB24500 for ; Mon, 22 Jun 2009 18:41:19 +0200 (CEST) In-Reply-To: <786354.70664.qm@web62506.mail.re1.yahoo.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: Eran Ben-Avi Cc: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org At Mon, 22 Jun 2009 01:17:25 -0700 (PDT), Eran Ben-Avi wrote: > = > = > Hi, > = > I encountered some issue with my USB audio device and couldn't find any s= imilar issue in previous mailing lists, any help will be appreciated. > When playing an audio stream using MPlayer Ver1.0rc2-4.1.2=A0(tried diffe= rent sample rates=A044K, 48K and different files WAV , MP3)=A0using my Crea= tive SB0271 USB device on ARM based system(Marvell Kirkwood SoC) and kernel= 2.6.22.18, I hear an=A0interfering constant noise additionally to the orig= inal audio stream. > At the beginning I heard this noise also when I used aplay(for WAV) but a= fter I reinstalled the ALSA-LIB and ALSA-UTILS(version 1.0.14rc4), the apla= y suddenly started to work smooth. > I tested different USB audio device(AKM) but got same noisy results. > Another piece of information I can provide is that increasing the CPU uti= lization eliminates the noise completely - maybe a timing issue ??? Could it be the cache coherency? The usb-audio driver uses vmalloc'ed buffers as intermediate buffers, and they can be exposed to user-space via mmap. Does the problem disappears when you disable mmap support by commenting out SNDRV_PCM_INFO_MMAP* in snd_usb_hardware info field? Takashi