Received: by 10.213.65.68 with SMTP id h4csp3285852imn; Tue, 3 Apr 2018 02:06:00 -0700 (PDT) X-Google-Smtp-Source: AIpwx4+rDVT0H3DsKN/9R3NwGZobJQfN0T3rmDyds6B+SF+c2UkgRgCzKTbvn1n5kSHHbe2hFvuV X-Received: by 2002:a17:902:780d:: with SMTP id p13-v6mr13284498pll.281.1522746360040; Tue, 03 Apr 2018 02:06:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522746359; cv=none; d=google.com; s=arc-20160816; b=pjRvS4Z+s/6ob2v77dgGZaWw86xJ2kZxcYdt5NvlMmhE9Jy/uaPqinTbtcy1eB7WlE ZNaLXbUlVuDODps5016UpPfcCBLNgQTuD4EB/V+a+I9YoUEQzdp59110yw0u1PTJ/CeL +UZfa3WFbvANqj23Z0nLJudW/6EJdEs6FBM2xIkzvEsx9I9rBVLhF/8uANcbFUuvarkW 0x0eyNwUBijzpeA/U5+3IoC6EBVxXpOa8xX/K7dyPadSbch3XXGLti5CLvpFCgLpjRV/ 04hxmqiG+ALdGvQNyJwNybl2lul1p2jUivQph+oy7myyS4RRNLgkGNrn+YBzZBoHm5QQ N/oA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:subject:cc:to:from:message-id :date:arc-authentication-results; bh=+70oWbEw1ci//SpFN9iZM9A7M8qFNRiJlnlgXBrfCnY=; b=s/hncQlK6PxaZ39XKgrQLrFWmxVTbI/zRkwsLqSaS/Bkje6EEXGb8/VqZDUSWeekx9 KLhWfY5B4f8lHNeR3LYu5yqV7aBtU3IfUOswOT/U+MHLoPbnkwi1PxPjCtex4yUY754/ 0YkcMY1XzUGlYGVnNoquvz0iQIpvtbx0/4neulrhiVrTVKqj/BoP3/gHy5RX0MXP5K7y ay7qXfBR85AcEX6BAhFYq9xuMKInFB+FNReH4vUonDq5Qt65iGeAJFS5wV6mlOTQorZi YU3oUsH/iT3F8QK1XVy2IOSBhEP0BLR7BGdLvFrDjcwQEpArogqoJi557gpWbtv1dK7S vhCQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id w125si1638264pgb.190.2018.04.03.02.05.45; Tue, 03 Apr 2018 02:05:59 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754746AbeDCJEf (ORCPT + 99 others); Tue, 3 Apr 2018 05:04:35 -0400 Received: from mx2.suse.de ([195.135.220.15]:36443 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750826AbeDCJEd (ORCPT ); Tue, 3 Apr 2018 05:04:33 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 43E94AE24; Tue, 3 Apr 2018 09:04:32 +0000 (UTC) Date: Tue, 03 Apr 2018 11:04:31 +0200 Message-ID: From: Takashi Iwai To: Jian-Hong Pan Cc: alsa-devel@alsa-project.org, Hui Wang , linux@endlessm.com, Jaroslav Kysela , Kailang Yang , linux-kernel@vger.kernel.org Subject: Re: [PATCH] ALSA: hda/realtek: Enable audio line out on ASUS D640SA In-Reply-To: References: <20180402073313.13247-1-jian-hong@endlessm.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=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 Tue, 03 Apr 2018 10:43:02 +0200, Jian-Hong Pan wrote: > > 2018-04-02 19:29 GMT+08:00 Takashi Iwai : > > > > On Mon, 02 Apr 2018 09:33:13 +0200, > > Jian-Hong Pan wrote: > > > > > > This ASUS D640SA desktop whose mother board is D640MB has > > > - two jacks which are a headphone and a mic on the front panel, > > > - three jacks which are a mic, a line out and a line in on the rear panel > > > - one internal speaker. > > > > > > If I plug a headphone to the front headphone jack, there will be sound > > > through the headphone jack, and no sound through the internal speaker. > > > If I unplug the headphone from the the headphone jack, there will be > > > sound through the internal speaker. And always no sound through rear > > > line out, when I plug a headphone or an externel speaker to the rear > > > line out jack. > > > > > > Besides, I had checked and toggled the Auto-Mute Mode in alsamixer, but > > > the rear line out still was not working. Then I checked the sound > > > settings in GUI, and found there was no "Line Out" could be chosen, only > > > the "Headphones" and "HDMI/DisplayPort". > > > However, system does know that there is an "Intel PCH Line Out". > > > > > > [ 10.089082] snd_hda_codec_realtek hdaudioC0D0: autoconfig for > > > ALC887-VD: line_outs=1 (0x14/0x0/0x0/0x0/0x0) type:line > > > [ 10.089083] snd_hda_codec_realtek hdaudioC0D0: speaker_outs=1 > > > (0x1a/0x0/0x0/0x0/0x0) > > > [ 10.089084] snd_hda_codec_realtek hdaudioC0D0: hp_outs=1 > > > (0x1b/0x0/0x0/0x0/0x0) > > > [ 10.089085] snd_hda_codec_realtek hdaudioC0D0: mono: mono_out=0x0 > > > [ 10.089086] snd_hda_codec_realtek hdaudioC0D0: inputs: > > > [ 10.089087] snd_hda_codec_realtek hdaudioC0D0: Rear Mic=0x18 > > > [ 10.089088] snd_hda_codec_realtek hdaudioC0D0: Front Mic=0x19 > > > [ 10.089089] snd_hda_codec_realtek hdaudioC0D0: Line=0x15 > > > [ 10.104387] input: HDA Intel PCH Rear Mic as > > > /devices/pci0000:00/0000:00:1f.3/sound/card0/input9 > > > [ 10.104416] input: HDA Intel PCH Front Mic as > > > /devices/pci0000:00/0000:00:1f.3/sound/card0/input10 > > > [ 10.104441] input: HDA Intel PCH Line as > > > /devices/pci0000:00/0000:00:1f.3/sound/card0/input11 > > > [ 10.104467] input: HDA Intel PCH Line Out as > > > /devices/pci0000:00/0000:00:1f.3/sound/card0/input12 > > > [ 10.104494] input: HDA Intel PCH Front Headphone as > > > /devices/pci0000:00/0000:00:1f.3/sound/card0/input13 > > > > > > Consequently, I checked the pin widgets' default configuration values: > > > - Node 0x14 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out > > > Pin Default 0x01014010: [Jack] Line Out at Ext Rear > > > > > > - Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out > > > Pin Default 0x02214030: [Jack] HP Out at Ext Front > > > > > > Because the headphone jack (Node ID:0x1b) locates on the desktop's front > > > panel, not rear panel, I change the headphone jack's configuration from > > > primary chassis to separate chassis. So, the configuration value of > > > Node ID:0x1b should be 0x22214030. > > > > This is OK, but... > > > > > Additionally, I toggle the Auto-Mute Mode of Realtek codecs to “Speaker > > > Only” which makes signal outputs through line out jack when the "Line > > > Out" is chosen in the sound settings. > > > > ... this is a matter of taste, and I don't think it good to set a > > different default from others. You can change it once and save it via > > alsactl. > > The default state of Auto-Mute Mode of Realtek codec on this machine is > "Line Out + Speaker". > This disallows to output audio signal through the line out jack, even I already > choose the "Line Out" as the audio output device in the sound settings. > It means there is no way to use the line out jack in "Line Out + Speaker" state > of Auto-Mute Mode on this machine. It's a setup issue by PA, and it's not specific to this device at all. If PA wants the independent output, it can change to auto-mute off by itself. > To enhance the user experience, especially the new one who first uses Linux, > changing this machine's Auto-Mute Mode to "Speaker Only" state, which allows > to output the audio signal through the line out jack, will be the better choice. > > By the way, if the "Headphones" is chosen as the audio output device in the > sound settings, the audio signal will not output through the line out jack > automatically. > > Therefore, I think this part of the quirk is still needed on this machine. Again, this isn't about the machine configuration, but a generic PA problem. Fixing it in a device-specific fixup is no right way. thanks, Takashi