From mboxrd@z Thu Jan 1 00:00:00 1970 From: Takashi Iwai Subject: Re: [PATCH RFC 24/26] [media] solo6x10: Convert to copy_silence ops Date: Thu, 11 May 2017 23:21:00 +0200 Message-ID: References: <20170511210925.18208-1-tiwai@suse.de> <20170511210925.18208-25-tiwai@suse.de> 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 mx1.suse.de (mx2.suse.de [195.135.220.15]) by alsa0.perex.cz (Postfix) with ESMTP id 34482266FEE for ; Thu, 11 May 2017 23:21:00 +0200 (CEST) Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 4CC5AAEAF for ; Thu, 11 May 2017 21:21:00 +0000 (UTC) In-Reply-To: <20170511210925.18208-25-tiwai@suse.de> 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: alsa-devel@alsa-project.org List-Id: alsa-devel@alsa-project.org On Thu, 11 May 2017 23:09:23 +0200, Takashi Iwai wrote: > > @@ -242,10 +242,11 @@ static int snd_solo_pcm_copy(struct snd_pcm_substream *ss, int channel, > if (err) > return err; > > - err = copy_to_user(dst + (i * G723_PERIOD_BYTES), > + if (in_kernel) > + memcpy((void *)dst + (i * G723_PERIOD_BYTES), > + solo_pcm->g723_buf, G723_PERIOD_BYTES); > + else if (copy_to_user(dst + (i * G723_PERIOD_BYTES), > solo_pcm->g723_buf, G723_PERIOD_BYTES); Here is an obvious error, as kbuild bot spotted. I fixed in topic/kill-set_fs branch now. Takashi