Received: by 2002:a25:ad19:0:0:0:0:0 with SMTP id y25csp2798277ybi; Thu, 4 Jul 2019 19:44:21 -0700 (PDT) X-Google-Smtp-Source: APXvYqy+mLmgPqMjJXVx30sAtEldPhRPh9kd8Yy0fGVRp0Yxb2WhNI8n45iQFXOyUed6qxql3Q1X X-Received: by 2002:a17:902:23:: with SMTP id 32mr1727035pla.34.1562294661513; Thu, 04 Jul 2019 19:44:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1562294661; cv=none; d=google.com; s=arc-20160816; b=CKVRJdOwamdtGqLwq+btPF3nkzDjkY3HJIby8TnqhwpRPKQVhD2CmL786RM2HSs8Ix L/iGR/KrTzZMgVDECAwJL3RFEcqelBxwcPaCmQZBjKCwhkdeuCgAofASbS9YMKN+1lIq 7CYPkhPFPM7HIpixCVr5+lSc3VHmLBk/MnyPnlspWA+Gx4xCMeZ6WYu+TGpAQDoEO8Jh vLzipHIGZt1BGWG8RYvpZK9YqzMugNVDKDZXLzQK6Wd7odbF5C7jA3xj9qbKJQ5FNckG j+rhSLH/sYHWqRx0GXj3LyJAccdGS5482mv74060gOZWlLynNQ+TMSMM99iiqh1SvvDV mfbw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:content-transfer-encoding :content-language:accept-language:in-reply-to:references:message-id :date:thread-index:thread-topic:subject:cc:to:from:authenticated-by; bh=XRoRSXZrv6ynudkV4qwITNk+3JWKUMYFVlB69Xpps+o=; b=sNC3Zp/s3tmkOSpN6dCxjqVFrlShh+o0gmm6HXaEQ5vi9ml/n88RtGSnM9zVs0bfkV 9LdZ/ZC0xcV4e7P3wjnv5x9I8LZXDwbQNcsWbZI/tPav5Ww7IdN7kZYuQrHuupvvLF5z lFs8aM1x7ULrEWzYLNWJ4/wWahazlPgdw5Acuup7jSu+WVqIEDZ1HvO5sOI/gXxYF0JA YnTB4D3vcHx+2ftUeY5LfHPzBCAViOl2eu753IA0e6D9zc416f13aUfFwQLwVISAZBIW 8uw1KtdZQd41x+6j3VrWkyq4GSabQpcRsXEYk48whIAWPVkvdv6b1mdB81PScWAm8amJ MJzg== 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 n3si6695101pgh.53.2019.07.04.19.44.06; Thu, 04 Jul 2019 19:44:21 -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 S1727506AbfGECnL convert rfc822-to-8bit (ORCPT + 99 others); Thu, 4 Jul 2019 22:43:11 -0400 Received: from rtits2.realtek.com ([211.75.126.72]:60043 "EHLO rtits2.realtek.com.tw" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726404AbfGECnL (ORCPT ); Thu, 4 Jul 2019 22:43:11 -0400 Authenticated-By: X-SpamFilter-By: BOX Solutions SpamTrap 5.62 with qID x652fP8U003667, This message is accepted by code: ctloc85258 Received: from mail.realtek.com (RTITCAS12.realtek.com.tw[172.21.6.16]) by rtits2.realtek.com.tw (8.15.2/2.57/5.78) with ESMTPS id x652fP8U003667 (version=TLSv1 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Fri, 5 Jul 2019 10:41:25 +0800 Received: from RTITMBSVM07.realtek.com.tw ([fe80::a512:a803:bf1e:b23]) by RTITCAS12.realtek.com.tw ([::1]) with mapi id 14.03.0439.000; Fri, 5 Jul 2019 10:41:25 +0800 From: Kailang To: "He, Bo" , "alsa-devel@alsa-project.org" , "linux-kernel@vger.kernel.org" CC: "perex@perex.cz" , "tiwai@suse.com" , "jian-hong@endlessm.com" , "drake@endlessm.com" , "chiu@endlessm.com" , "hui.wang@canonical.com" Subject: RE: audio lost from speaker after reboot from windows on the device ALC295 Thread-Topic: audio lost from speaker after reboot from windows on the device ALC295 Thread-Index: AdUyX8fMiuN0r83nQWCeaW0Sd+ObdQAepbxA Date: Fri, 5 Jul 2019 02:41:24 +0000 Message-ID: <6FAB7C47BCF00940BB0999A99BE3547A1D768822@RTITMBSVM07.realtek.com.tw> References: In-Reply-To: Accept-Language: zh-TW, en-US Content-Language: zh-TW X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [172.22.105.211] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 8BIT MIME-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Bo He, Could you help to dump info for us? Please use attach file to get results. ./alsa-info.sh --no-upload You will find dump file in folder /tmp/alsa-info.txt-????????. Please run one time in normal state and one time in fail state. Please send two result files to me. BR, Kailang > -----Original Message----- > From: He, Bo > Sent: Thursday, July 4, 2019 8:02 PM > To: Kailang ; alsa-devel@alsa-project.org; > linux-kernel@vger.kernel.org > Cc: perex@perex.cz; tiwai@suse.com; jian-hong@endlessm.com; > drake@endlessm.com; chiu@endlessm.com; hui.wang@canonical.com > Subject: audio lost from speaker after reboot from windows on the device > ALC295 > > Hi, patch_realtek.c maintainer: > I see one issue that reboot from windows and boot to ubuntu, the audio > lost from speaker, I suspect there are some bugs in patch_realtek.c drivers, > the device is ALC295 and the device id is 0x10ec0295. > > I have done the below experiments: > 1. reboot from windows to windows, the audio is persist . > 2. reboot from windows to ubuntu, the audio lost from speaker, but can hear if > I hotplug one earphone. > 3. if the issue reproduce after reboot from windows, reboot the ubuntu can't > restore the audio, I suspect it's warm reset. > 4. if I write the port 0xcf9 with 0xe to do cold reset, the audio can restore. > 5. if I do suspend/resume, the audio can restore, I suspect do cold boot and > suspend will trigger the platform reset to reset the ALC295. > 6. if I do double function reset (write the verb 0x7ff in alc_init), the audio is > still can't restore. > snd_hda_codec_write(codec, 0x01, 0, AC_VERB_SET_CODEC_RESET, 0); /* > Function reset */ snd_hda_codec_write(codec, 0x01, 0, > AC_VERB_SET_CODEC_RESET, 0); /* double Function reset */ 7. the issue is > first found on kernel 4.19.50, I still see the issue with the latest kernel 5.2-rc2, > is it possible windows change some default registers, but ALC295 don't > initialize the register? > > ------Please consider the environment before printing this e-mail.