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 X-Spam-Level: X-Spam-Status: No, score=-3.8 required=3.0 tests=DKIM_SIGNED,DKIM_VALID, HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4E723C33CB1 for ; Thu, 16 Jan 2020 13:48:20 +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 CBC802077B for ; Thu, 16 Jan 2020 13:48:19 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=alsa-project.org header.i=@alsa-project.org header.b="Jbv8OLPx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org CBC802077B Authentication-Results: mail.kernel.org; dmarc=none (p=none dis=none) header.from=suse.de Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=alsa-devel-bounces@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 1A5F085D; Thu, 16 Jan 2020 14:47:28 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa0.perex.cz 1A5F085D DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=alsa-project.org; s=default; t=1579182498; bh=1/VFJ1gAW8nE2Qqa5/LjbocW52rRT6LXGPnA5ZzH5so=; h=Date:From:To:In-Reply-To:References:Cc:Subject:List-Id: List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe: From; b=Jbv8OLPxczLKU3+EgLUy0KdORc7aoyE5oEan5w+HOqBI0mBLZGdcHgTe2sh0SdhaE 5exKdtDvPb0GU5xzsGvw/H7EbE5ZKWladkzk7F6Keos1m6XSfQ4CHxDM8KAusFCA82 ruMB+0QxdV6QHKc8j6VXdDEAdQEs1eZP5DljYIGY= Received: from alsa1.perex.cz (localhost.localdomain [127.0.0.1]) by alsa1.perex.cz (Postfix) with ESMTP id 84D05F8014D; Thu, 16 Jan 2020 14:47:27 +0100 (CET) Received: by alsa1.perex.cz (Postfix, from userid 50401) id A4AFCF8014E; Thu, 16 Jan 2020 14:47:24 +0100 (CET) Received: from mx2.suse.de (mx2.suse.de [195.135.220.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by alsa1.perex.cz (Postfix) with ESMTPS id C2967F80086 for ; Thu, 16 Jan 2020 14:47:21 +0100 (CET) DKIM-Filter: OpenDKIM Filter v2.11.0 alsa1.perex.cz C2967F80086 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 9A29ABB42; Thu, 16 Jan 2020 13:47:20 +0000 (UTC) Date: Thu, 16 Jan 2020 14:47:20 +0100 Message-ID: From: Takashi Iwai To: Tobias In-Reply-To: References: <9457db14-4084-c0dd-5c89-821b35c3db66@yahoo.de> <8653a13c-ef08-4e0f-8375-baa6a3b4faa8@yahoo.de> 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") Cc: alsa-devel@alsa-project.org Subject: Re: [alsa-devel] USB Audio Interface / Denon MC7000 and MC8000 controller 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: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: alsa-devel-bounces@alsa-project.org Sender: "Alsa-devel" On Thu, 16 Jan 2020 12:58:00 +0100, Tobias wrote: > > Thank you for taking care of this... > > I have tried with the latest Kernel 5.4.11 in Ubuntu 16.04 and > $ dmesg > still shows > "clock source 65 is not valid, cannot use" > > My current running stable system is > > $ uname -a > $ Linux tobias-V130 4.15.0-23-generic #25~16.04.1 SMP Fri Dec 20 > 20:16:19 CET 2019 x86_64 x86_64 x86_64 GNU/Linux > > in where I applied the chane described in here: > https://alsa-user.narkive.com/2tDAO87f/troubleshooting-new-usb-audio-device#post11 > > Just for my understanding what you now need me to do... > deleting the line in /sound/usb/clock.c that states "return -ENXIO;" > and compile the kernel again. Yes, and with that, the error message still remains. That's not wrong. The question is to identify who calls this function. So... > Clemes mentioned in his last post to add logging but I have no idea > what he means by that. Can you briefly guide me what I would need to > do? ... try the patch below instead. This should work for the recent kernels. It'll give Oops-like kernel WARNING with stack traces, so show them. There can be multiple occurrences. Takashi diff --git a/sound/usb/clock.c b/sound/usb/clock.c index 018b1ecb5404..8d92a946f978 100644 --- a/sound/usb/clock.c +++ b/sound/usb/clock.c @@ -219,10 +219,10 @@ static int __uac_clock_find_source(struct snd_usb_audio *chip, int entity_id, entity_id = source->bClockID; if (validate && !uac_clock_source_is_valid(chip, UAC_VERSION_2, entity_id)) { - usb_audio_err(chip, + WARN(1, "clock source %d is not valid, cannot use\n", entity_id); - return -ENXIO; + /* return -ENXIO; */ } return entity_id; } _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org https://mailman.alsa-project.org/mailman/listinfo/alsa-devel