From: Takashi Iwai Subject: Re: [PATCH 3/6] pcm:file: Enable file writing for capture path Date: Fri, 17 Feb 2017 18:45:42 +0100 Message-ID: References: <1487315837-9034-1-git-send-email-sutar.mounesh@gmail.com> Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id EA5F1267224 for ; Fri, 17 Feb 2017 18:45:42 +0100 (CET) In-Reply-To: <1487315837-9034-1-git-send-email-sutar.mounesh@gmail.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: sutar.mounesh@gmail.com Cc: Timo Wischer , alsa-devel@alsa-project.org, mounesh_sutar@mentor.com List-Id: alsa-devel@alsa-project.org On Fri, 17 Feb 2017 08:17:17 +0100, sutar.mounesh@gmail.com wrote: > > From: Timo Wischer > > This commit reverts parts of commit 4081be0b87ab9fa53a8906e66bc240f18a7a9a54, > because it is realy useful to use the file plugin in a capture path for > debugging. Also it fixes the truncate issue mentioned in above commit. > > Additionally following MMAP access issue is considered: > $ arecord -D teeraw -M -d5 arecord.wav > Recording WAVE 'arecord.wav' : Unsigned 8 bit, Rate 8000 Hz, Mono > ALSA lib pcm/pcm_file.c:358:(snd_pcm_file_write_bytes) > write failed: Bad file descriptor > ALSA lib pcm/pcm_file.c:358:(snd_pcm_file_write_bytes) > write failed: Bad file descriptor > arecord: pcm/pcm_file.c:397: snd_pcm_file_add_frames: > Assertion `file->wbuf_used_bytes < file->wbuf_size_bytes' failed. > Aborted by signal Aborted... > > Signed-off-by: Timo Wischer > Signed-off-by: Mounesh Sutar Applied, thanks. Takashi