Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 780E0C433F5 for ; Tue, 19 Oct 2021 06:09:14 +0000 (UTC) Received: from alsa0.perex.cz (alsa0.perex.cz [77.48.224.243]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 500ED60FC3 for ; Tue, 19 Oct 2021 06:09:13 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.1 mail.kernel.org 500ED60FC3 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-project.org Received: from alsa1.perex.cz (alsa1.perex.cz [207.180.221.201]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa0.perex.cz (Postfix) with ESMTPS id 6609B16AF; Tue, 19 Oct 2021 08:08:21 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 6609B16AF DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1634623751; bh=fKCGV77Kmn+No8IJcTv3lnPNC8oGvCYcezXP9NL4RI4=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=DRyqrXHowTdtG01sQROtoLyzLlOnMrujONU01aItNg5LKv+tDOD9iwHKhASVV3UaG Bcr2V0xhGJH6ZXDIEO4RyHXMeL+9jv9CWr3GNQ22Fir6OQdUN1QuEJf/sv4u+Tiufg QsuGrPTR3mqbZvPtjxZtFB4j02VqZ7RsN2ughIIg= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 08587F80111; Tue, 19 Oct 2021 08:08:21 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 7C0DCF80256; Tue, 19 Oct 2021 08:08:19 +0200 (CEST) Received: from smtp-out2.suse.de (smtp-out2.suse.de [195.135.220.29]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id 342D4F80111 for ; Tue, 19 Oct 2021 08:08:16 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 342D4F80111 Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="G/M2HCoW"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="+MGWAXVI" Received: from relay2.suse.de (relay2.suse.de [149.44.160.134]) by smtp-out2.suse.de (Postfix) with ESMTP id 7E12A1FD8B; Tue, 19 Oct 2021 06:08:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1634623695; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=petU9OdW3RBbchNekoI6lbFcMcmmnXTP+SSuX0voJ7s=; b=G/M2HCoWLL7j6qzU6qIH8PNiGtDyq7INENIkE5X5CxEEMAFzr6nIc15QA0FMw7QQVwEpu0 p7oWy5dFhqFJLtw6O5Rb84u3mUMX8tm3XJvYii/U/GPeI8GqaFiBT6bdATsP23+WMWZL0S rG9HJqt4IhZ56dX82nkygKRoPdrOH3I= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1634623695; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=petU9OdW3RBbchNekoI6lbFcMcmmnXTP+SSuX0voJ7s=; b=+MGWAXVIabFd5HQu/hvHU91F71IQxvtXogyu/OlfvMQDAqyjHUwJ/da8S8oCCe4fjUoOgY XIsvJKePl3rJgBBA== Received: from alsa1.suse.de (alsa1.suse.de [10.160.4.42]) by relay2.suse.de (Postfix) with ESMTP id 6DA6FA3B85; Tue, 19 Oct 2021 06:08:15 +0000 (UTC) Date: Tue, 19 Oct 2021 08:08:15 +0200 Message-ID: From: Takashi Iwai To: Marco Giunta Subject: Re: [PATCH v3] ALSA: usb-audio: Fix microphone sound on Jieli webcam. In-Reply-To: <20211018162552.12082-1-giun7a@gmail.com> References: <20211018162552.12082-1-giun7a@gmail.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) SEMI/1.14.6 (Maruoka) FLIM/1.14.9 (=?UTF-8?B?R29qxY0=?=) APEL/10.8 Emacs/25.3 (x86_64-suse-linux-gnu) MULE/6.0 (HANACHIRUSATO) MIME-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII Cc: alsa-devel@alsa-project.org X-BeenThere: alsa-devel@alsa-project.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: "Alsa-devel mailing list for ALSA developers - http://www.alsa-project.org" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Mon, 18 Oct 2021 18:25:52 +0200, Marco Giunta wrote: > > When a Jieli Technology USB Webcam is connected, the video part works > well, but the mic sound is speeded up. On dmesg there are messages > about different rates from the runtime rates, warnings about volume > resolution and lastly, the log is filled, every 5 seconds, with > retire_capture_urb error messages. > > The mic works only when ep packet size is set to wMaxPacketSize (normal > sound and no more retire_capture_urb error messages). Skipping reading > sample rate, fixes the messages about different rates and forcing a volume > resolution, fixes warnings about volume range. I have arbitrarily choosed > the value (16): I read in a comment that there should be no more than 255 > levels, so 4096 (max volume) / 16 = 0-255. > > Signed-off-by: Marco Giunta Thanks, now applied. Takashi