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=-1.0 required=3.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_PASS autolearn=ham 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 CA97BC43381 for ; Mon, 18 Feb 2019 15:38:38 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id A1F28217F9 for ; Mon, 18 Feb 2019 15:38:38 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1732682AbfBRPih (ORCPT ); Mon, 18 Feb 2019 10:38:37 -0500 Received: from mx2.suse.de ([195.135.220.15]:41900 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726875AbfBRPig (ORCPT ); Mon, 18 Feb 2019 10:38:36 -0500 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id AD81AAFF5; Mon, 18 Feb 2019 15:38:35 +0000 (UTC) Date: Mon, 18 Feb 2019 16:38:34 +0100 Message-ID: From: Takashi Iwai To: Paul Menzel Cc: alsa-devel@alsa-project.org, linux-kernel@vger.kernel.org Subject: Re: snd_hda_codec_hdmi: `hdaudio hdaudioC0D2: Unable to bind the codec` In-Reply-To: References: <533a0e85-0d03-740d-9f7e-8c29b5cca59f@molgen.mpg.de> <1d3b00d7-cf62-621c-e972-d732177a4471@molgen.mpg.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") Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 18 Feb 2019 16:17:30 +0100, Paul Menzel wrote: > > >> Then, I built the HDA subsystem as a module, but that also did not help. > >> The DRM subsystem is started after the HD-audio subsystem. > >> > >> ``` > >> $ grep -e SND_HDA= -e SND_HDA_INTEL /boot/config-4.20.8.mx64.245 > >> CONFIG_SND_HDA=m > >> CONFIG_SND_HDA_INTEL=m > > > > That's odd. In sound/hda/hdac_i915.c there is an explicit > > request_module("i915"), and at that point, it has a 10 second > > timeout. If this isn't enough, try to raise the number, e.g. 60 > > seconds. > > I tried as you suggested, and increased it to 60 seconds. > > sed -i 's/msecs_to_jiffies(10 * 1000))/msecs_to_jiffies(60 * 1000))/' sound/hda/hdac_i915.c > > That seems to have fixed it. > > ``` > $ grep _hda_ 20190218–linux_4.20.10–dmesg.txt > [ 15.568061] snd_hda_intel 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915]) > [ 15.706898] snd_hda_codec_realtek hdaudioC0D0: autoconfig for ALC671: line_outs=1 (0x21/0x0/0x0/0x0/0x0) type:line > [ 15.708754] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=1 (0x17/0x0/0x0/0x0/0x0) > [ 15.710249] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 (0x14/0x0/0x0/0x0/0x0) > [ 15.712031] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0 > [ 15.712348] snd_hda_codec_realtek hdaudioC0D0: inputs: > [ 15.712619] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19 > [ 15.712929] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18 > [ 15.713234] snd_hda_codec_realtek hdaudioC0D0: Line=0x1a > ``` > > So the time-out, needs to be increased. OK, I'm going to extend the value. I thought a minute would be too long, and I naively assumed that the recent machines were fast enough. Maybe 60 isn't too bad after all. thanks, Takashi