latin-1 / um5302ta

17 stars 4 forks source link

Sound driver sometime can't be activated during restart #6

Open winstonma opened 1 year ago

winstonma commented 1 year ago

Hi, I updated my BIOS to 311 and would like to see if you have the same strange behavior

Sometime when I start my device the sound driver would not be initialized so I need to reboot my laptop in order to get the sound working again. It seems to me that I would face this problem 1 out of 5 bootup.

Thanks a lot

latin-1 commented 1 year ago

This is not an issue for me. However, the speaker will occasionally stop working after being resumed from suspension. Restarting the sound service may help.

winstonma commented 1 year ago

Thanks

I tried reloading the sound service by running the command sudo alsa force-reload but the console just freeze.

$ sudo dmesg
[  116.459641] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459698] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459747] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459794] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459839] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459886] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459931] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.459979] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.460026] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.460073] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.460120] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110
[  116.460168] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Failed to sync masks in 10110

Also this is my kernel log

$cat /var/log/syslog
Mar 12 01:19:32 Zenbook-Laptop kernel: [130200.600507] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: Failed to read 256 bytes from 2800620: -121
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.298963] snd_hda_intel 0000:03:00.1: enabling device (0000 -> 0002)
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.299068] snd_hda_intel 0000:03:00.1: Handle vga_switcheroo audio client
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.300398] snd_hda_intel 0000:03:00.6: enabling device (0000 -> 0002)
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.334505] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: Cirrus Logic CS35L41 (35a40), Revision: B2
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.334758] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: Reset line busy, assuming shared reset
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.352270] snd_hda_intel 0000:03:00.1: bound 0000:03:00.0 (ops amdgpu_dm_audio_component_bind_ops [amdgpu])
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.379155] snd_hda_codec_realtek hdaudioC1D0: autoconfig for ALC294: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.379171] snd_hda_codec_realtek hdaudioC1D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.379174] snd_hda_codec_realtek hdaudioC1D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.379176] snd_hda_codec_realtek hdaudioC1D0:    mono: mono_out=0x0
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.379179] snd_hda_codec_realtek hdaudioC1D0:    inputs:
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.382643] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: Firmware version: 3
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.382646] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.828943] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.829984] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: 0: ID cd v29.78.0 XM@94 YM@e
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.829991] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: 1: ID f20b v0.1.0 XM@17c YM@0
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.829994] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.0: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.855673] snd_hda_codec_realtek hdaudioC1D0: bound i2c-CSC3551:00-cs35l41-hda.0 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.855836] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: DSP1: Firmware version: 3
Mar 12 01:19:55 Zenbook-Laptop kernel: [    5.855838] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: DSP1: cirrus/cs35l41-dsp1-spk-prot.wmfw: Fri 24 Jun 2022 14:55:56 GMT Daylight Time
Mar 12 01:19:56 Zenbook-Laptop kernel: [    6.313873] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: DSP1: Firmware: 400a4 vendor: 0x2 v0.58.0, 2 algorithms
Mar 12 01:19:56 Zenbook-Laptop kernel: [    6.315282] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: DSP1: 0: ID cd v29.78.0 XM@94 YM@e
Mar 12 01:19:56 Zenbook-Laptop kernel: [    6.315291] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: DSP1: 1: ID f20b v0.1.0 XM@17c YM@0
Mar 12 01:19:56 Zenbook-Laptop kernel: [    6.315296] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: DSP1: spk-prot: e:\workspace\workspace\tibranch_release_playback_6.76_2\ormis\staging\default_tunings\internal\CS35L53\Fixed_Attenuation_Mono_48000_29.78.0\full\Fixed_Attenuation_Mono_48000_29.78.0_full.bin
Mar 12 01:19:56 Zenbook-Laptop kernel: [    6.340735] snd_hda_codec_realtek hdaudioC1D0: bound i2c-CSC3551:00-cs35l41-hda.1 (ops cs35l41_hda_comp_ops [snd_hda_scodec_cs35l41])
Mar 12 01:19:56 Zenbook-Laptop kernel: [    6.340750] cs35l41-hda i2c-CSC3551:00-cs35l41-hda.1: Cirrus Logic CS35L41 (35a40), Revision: B2

Just wonder if this is the expected behavior

vazw commented 1 year ago

I have the same speaker issues after being resumed from suspension. but after updated to kernel 6.2.2 I've never found this issue again, it seems to be resolved.

winstonma commented 1 year ago

I don't see any resume from suspension problem at all. But I got the driver initialization at boot problem.

FYI I am using kernel v6.2.7