From mboxrd@z Thu Jan 1 00:00:00 1970 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 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 smtp.lore.kernel.org (Postfix) with ESMTPS id 7748BECAAD8 for ; Tue, 30 Aug 2022 07:04:21 +0000 (UTC) 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 A22C8167B; Tue, 30 Aug 2022 09:03:28 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz A22C8167B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1661843058; bh=ktgIcLkeruJQjkFkhgK6MlR9nMrPX4drqC3o+y7y50M=; h=Date:From:To:Subject:In-Reply-To:References:Cc:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=AB4jH4cyx2O61t+QNIgyaC9/FOIWCXkuWQipF6v1wkm+k4OrZdnJP/XxSOCQL0Jc+ 3gobCwSn+NvvlUphGOO4T3+8zPaZ8w7ZKT5YAa83rJYCHPg7w/Vz9V0IjmdUyqZYW9 zU9hb9yCZ3ngNsTsdjdBEWerQ178DXjVdX4eUJJk= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 160E0F8016B; Tue, 30 Aug 2022 09:03:28 +0200 (CEST) Received: by alsa1.perex.cz (Postfix, from userid 50401) id 5EC48F8023A; Tue, 30 Aug 2022 09:03:26 +0200 (CEST) Received: from smtp-out1.suse.de (smtp-out1.suse.de [IPv6:2001:67c:2178:6::1c]) (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 458CDF8012A for ; Tue, 30 Aug 2022 09:03:00 +0200 (CEST) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz 458CDF8012A Authentication-Results: alsa1.perex.cz; dkim=pass (1024-bit key) header.d=suse.de header.i=@suse.de header.b="M4tTJI/M"; dkim=permerror (0-bit key) header.d=suse.de header.i=@suse.de header.b="RligLhLe" Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id 9E16C223CD; Tue, 30 Aug 2022 07:02:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_rsa; t=1661842979; 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=zhF59alM45bSbXfAKP9wrnAG2rWi6fdgm+QY0UDRHjA=; b=M4tTJI/Mp5h325YIPj5BWFFeuJQtTlr8PVX+bo8bNTCsVlH6M3SopC2qIq+eJp90NGOQvw cSrD20CKmsfG6xHwx3uYCf+ev9oQKxm/Jf1iWQdfDkNanX3i4Xxgc1oKur+X0vXP8aF0Tx d1dnxCzhZUEmv+KRNzg33aDRTrPFWDY= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.de; s=susede2_ed25519; t=1661842979; 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=zhF59alM45bSbXfAKP9wrnAG2rWi6fdgm+QY0UDRHjA=; b=RligLhLe/HDJSIcfZSP/gPs0bg5PVU97OSXv7zFg1NLUBcsc/0eea3nYx08AV4Q33P3E3G jqUKYA6JjzTVa6Cg== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 7E38013ACF; Tue, 30 Aug 2022 07:02:59 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id B5DxHSO2DWO7KwAAMHmgww (envelope-from ); Tue, 30 Aug 2022 07:02:59 +0000 Date: Tue, 30 Aug 2022 09:02:59 +0200 Message-ID: <87bks28b8c.wl-tiwai@suse.de> From: Takashi Iwai To: chihhao chen Subject: Re: missing sound on kernel-5.15 In-Reply-To: <0f36385ad917ac5ec1fdf4fedd8acd6bb3494bdf.camel@mediatek.com> References: <87e6d6ae69d68dc588ac9acc8c0f24d6188375c3.camel@mediatek.com> <120e52d94c00aab2cf1f3d611b06f03356e8229f.camel@mediatek.com> <87r10zxyml.wl-tiwai@suse.de> <87a67nb5yc.wl-tiwai@suse.de> <87r10y9are.wl-tiwai@suse.de> <87ilma8edo.wl-tiwai@suse.de> <0f36385ad917ac5ec1fdf4fedd8acd6bb3494bdf.camel@mediatek.com> User-Agent: Wanderlust/2.15.9 (Almost Unreal) Emacs/27.2 Mule/6.0 MIME-Version: 1.0 (generated by SEMI-EPG 1.14.7 - "Harue") 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 Tue, 30 Aug 2022 08:13:44 +0200, chihhao chen wrote: > > Hi Takashi, > > I tried the patch but this problem still happens. > > I add some logs in snd_usb_init_sample_rate() in kernel-5.10 > [ 146.260105][T1702328] writer: usb 1-1: [name:snd_usb_audio&]2:2 Set > sample rate 96000, clock 0 protocol 0 > [ 146.289892][T1002328] writer: usb 1-1: [name:snd_usb_audio&]2:2 Set > sample rate 48000, clock 0 protocol 0 > > Because TinyAlsa tends to set highest rate for initialization and real > rate for playback, it will still trigger two-times > SAMPLING_FREQ_CONTROL USB requests. Then this is a firmware problem of your device. The same problem would happen even with the old kernel if you run the application with different sample rates. Does the device work with 96kHz at all? Could you give the lsusb -v output of the device, too? > Which kernel version should I try? kernel-5.19 or? Yes, 5.19 should suffice. Takashi