RE: audio lost from speaker after reboot from windows on the device ALC295
Hi, Kailiang: Thanks for your tools, here are the two enclosed alsa-info with and without sound. -Original Message- From: Kailang Sent: Friday, July 5, 2019 10:42 AM To: He, Bo ; alsa-de...@alsa-project.org; linux-kernel@vger.kernel.org Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; dr...@endlessm.com; c...@endlessm.com; hui.w...@canonical.com Subject: RE: audio lost from speaker after reboot from windows on the device ALC295 Sorry!! Forgot attach file. > -Original Message- > From: Kailang > Sent: Friday, July 5, 2019 10:41 AM > To: 'He, Bo' ; alsa-de...@alsa-project.org; > linux-kernel@vger.kernel.org > Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; > dr...@endlessm.com; c...@endlessm.com; hui.w...@canonical.com > Subject: RE: audio lost from speaker after reboot from windows on the > device > ALC295 > > 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-de...@alsa-project.org; > > linux-kernel@vger.kernel.org > > Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; > > dr...@endlessm.com; c...@endlessm.com; hui.w...@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. upload=true=true= !! !!ALSA Information Script v 0.4.63 !! !!Script ran on: Fri Jul 5 11:36:08 UTC 2019 !!Linux Distribution !!-- Ubuntu 19.04 \n \l DISTRIB_ID=Ubuntu DISTRIB_DESCRIPTION="Ubuntu 19.04" NAME="Ubuntu" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 19.04" HOME_URL="https://www.ubuntu.com/; SUPPORT_URL="https://help.ubuntu.com/; BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/; PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy; UBUNTU_CODENAME=disco !!DMI Information !!--- Manufacturer: HP Product Name: HP Pavilion x360 Convertible 14-dh0xxx Product Version: Type1ProductConfigId Firmware Version: F.02 !!Kernel Information !!-- Kernel release:5.0.0-13-generic Operating System: GNU/Linux Architecture: x86_64 Processor: x86_64 SMP Enabled: Yes !!ALSA Version !! Driver version: k5.0.0-13-generic Library version:1.1.8 Utilities version: 1.1.8 !!Loaded ALSA modules !!--- snd_hda_intel !!Sound Servers on this system !! Pulseaudio: Installed - Yes (/usr/bin/pulseaudio) Running - Yes !!Soundcards recognised by ALSA !!- 0 [PCH]: HDA-Intel - HDA Intel PCH HDA Intel PCH at 0xa1318000 irq 157 !!PCI Soundcards installed in the system !!-- 00:1f.3 Audio device: Intel Corporation Device 9dc8 (rev 30) !!Advanced
RE: audio lost from speaker after reboot from windows on the device ALC295
Sorry!! Forgot attach file. > -Original Message- > From: Kailang > Sent: Friday, July 5, 2019 10:41 AM > To: 'He, Bo' ; alsa-de...@alsa-project.org; > linux-kernel@vger.kernel.org > Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; > dr...@endlessm.com; c...@endlessm.com; hui.w...@canonical.com > Subject: RE: audio lost from speaker after reboot from windows on the device > ALC295 > > 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-de...@alsa-project.org; > > linux-kernel@vger.kernel.org > > Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; > > dr...@endlessm.com; c...@endlessm.com; hui.w...@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. alsa-info.sh Description: alsa-info.sh
RE: audio lost from speaker after reboot from windows on the device ALC295
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-de...@alsa-project.org; > linux-kernel@vger.kernel.org > Cc: pe...@perex.cz; ti...@suse.com; jian-h...@endlessm.com; > dr...@endlessm.com; c...@endlessm.com; hui.w...@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.
Re: audio lost from speaker after reboot from windows on the device ALC295
Maybe your machine has an external amplifier which needs to be set by software before it can work. On 2019/7/4 下午8:02, He, Bo wrote: 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?
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?