Lenovo Yoga s740 no sound from speakers

Questions about codecs, DVD playback, web plugins...
Forum rules
Before you post please read how to get help
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Hi all,

I just bought a Lenovo Ideapad Yoga s740. I'm not getting any sound through the speakers. I also tried Debian testing to see if I would fare better because that's what I used on my old laptop without even running into a hardware issue, but sound still didn't work. On Debian pulse audio showed the sound device as "dummy output". Mint however gives me this:
Screenshot_2020-07-21_00-37-21.png

Here's some of what I've tried:
*updated kernel to 5.7.9 (as per the last suggestion in viewtopic.php?p=1847834)
*Disable fast start up in Windows
*reinstall of LM
* updated grub with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash snd_hda_intel.dmic_detect=0" (as suggested in viewtopic.php?p=1778315#p1778315)
*purge and reinstall pulseaudio
*downgraded pulseaudio to earlier version


I'd really appreciate it if someone could give me some suggestions of what to try next. I really don't want to have to use Windows if I can avoid it, and other than this sound issue things seem to mostly work well.

output of aplay -l

Code: Select all

card 0: sofhdadsp [sof-hda-dsp], device 0: HDA Analog (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 1: HDA Digital (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 3: HDMI1 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 4: HDMI2 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: sofhdadsp [sof-hda-dsp], device 5: HDMI3 (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
output of inxi -Fxz

Code: Select all

System:
  Kernel: 5.7.9-050709-generic x86_64 bits: 64 compiler: gcc v: 9.3.0 
  Desktop: Xfce 4.14.2 Distro: Linux Mint 20 Ulyana base: Ubuntu 20.04 focal 
Machine:
  Type: Convertible System: LENOVO product: 81NX v: Lenovo Yoga S740-15IRH 
  serial: <filter> 
  Mobo: LENOVO model: LNVNB161216 v: SDK0J40697 WIN serial: <filter> 
  UEFI: LENOVO v: BKCN21WW(V1.03) date: 12/18/2019 
Battery:
  ID-1: BAT1 charge: 71.0 Wh condition: 71.0/69.1 Wh (103%) 
  model: 0x53 0x4D 0x50 0x00 0x32 0x30 0x PABAS0241231 status: Full 
  Device-1: hidpp_battery_0 model: Logitech M350 Wireless Mouse 
  charge: 10% (should be ignored) status: Discharging 
CPU:
  Topology: 6-Core model: Intel Core i7-9750H bits: 64 type: MT MCP 
  arch: Kaby Lake rev: A L2 cache: 12.0 MiB 
  flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 ssse3 vmx 
  bogomips: 62399 
  Speed: 802 MHz min/max: 800/4500 MHz Core speeds (MHz): 1: 900 2: 898 
  3: 900 4: 900 5: 900 6: 900 7: 900 8: 900 9: 900 10: 898 11: 900 12: 900 
Graphics:
  Device-1: Intel UHD Graphics 630 vendor: Lenovo driver: i915 v: kernel 
  bus ID: 00:02.0 
  Device-2: NVIDIA TU117M [GeForce GTX 1650 Mobile / Max-Q] vendor: Lenovo 
  driver: nouveau v: kernel bus ID: 01:00.0 
  Display: x11 server: X.Org 1.20.8 driver: modesetting unloaded: fbdev,vesa 
  resolution: 1920x1080~60Hz 
  OpenGL: renderer: Mesa Intel UHD Graphics 630 (CFL GT2) v: 4.6 Mesa 20.0.8 
  direct render: Yes 
Audio:
  Device-1: Intel Cannon Lake PCH cAVS vendor: Lenovo driver: sof-audio-pci 
  bus ID: 00:1f.3 
  Sound Server: ALSA v: k5.7.9-050709-generic 
Network:
  Device-1: Intel Wireless-AC 9560 [Jefferson Peak] driver: iwlwifi 
  v: kernel port: 4000 bus ID: 00:14.3 
  IF: wlp0s20f3 state: up mac: <filter> 
Drives:
  Local Storage: total: 476.94 GiB used: 9.62 GiB (2.0%) 
  ID-1: /dev/nvme0n1 vendor: Samsung model: MZVLB512HBJQ-000L2 
  size: 476.94 GiB 
Partition:
  ID-1: / size: 341.09 GiB used: 9.58 GiB (2.8%) fs: ext4 
  dev: /dev/nvme0n1p6 
Sensors:
  System Temperatures: cpu: 45.0 C mobo: N/A 
  Fan Speeds (RPM): N/A 
Info:
  Processes: 270 Uptime: 41m Memory: 15.48 GiB used: 1.32 GiB (8.5%) 
  Init: systemd runlevel: 5 Compilers: gcc: 9.3.0 Shell: bash v: 5.0.17 
  inxi: 3.0.38 
output of pacmd list-cards

Code: Select all

1 card(s) available.
    index: 0
	name: <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	driver: <module-alsa-card.c>
	owner module: 7
	properties:
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "0"
		device.description = "Cannon Lake PCH cAVS"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	profiles:
		HiFi: Play HiFi quality Music (priority 8000, available: unknown)
		off: Off (priority 0, available: unknown)
	active profile: <HiFi>
	sinks:
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink/#0: Cannon Lake PCH cAVS HDMI3/DP3 Output
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink/#1: Cannon Lake PCH cAVS HDMI2/DP2 Output
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink/#2: Cannon Lake PCH cAVS HDMI1/DP1 Output
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink/#3: Cannon Lake PCH cAVS Speaker + Headphones
	sources:
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink.monitor/#0: Monitor of Cannon Lake PCH cAVS HDMI3/DP3 Output
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink.monitor/#1: Monitor of Cannon Lake PCH cAVS HDMI2/DP2 Output
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink.monitor/#2: Monitor of Cannon Lake PCH cAVS HDMI1/DP1 Output
		alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink.monitor/#3: Monitor of Cannon Lake PCH cAVS Speaker + Headphones
		alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__source/#4: Cannon Lake PCH cAVS Headphones Stereo Microphone
		alsa_input.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_6__source/#5: Cannon Lake PCH cAVS Digital Microphone
	ports:
		[Out] HDMI3: HDMI3/DP3 Output (priority 700, latency offset 0 usec, available: no)
			properties:
				
		[Out] HDMI2: HDMI2/DP2 Output (priority 600, latency offset 0 usec, available: no)
			properties:
				
		[Out] HDMI1: HDMI1/DP1 Output (priority 500, latency offset 0 usec, available: no)
			properties:
				
		[Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
			properties:
				
		[Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
			properties:
				
		[In] Mic2: Headphones Stereo Microphone (priority 200, latency offset 0 usec, available: no)
			properties:
				
		[In] Mic1: Digital Microphone (priority 100, latency offset 0 usec, available: unknown)
			properties:

output of: dmesg | grep snd

Code: Select all

[    7.257214] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    7.259513] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    7.353239] snd_soc_skl 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    7.359700] snd_soc_skl 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    7.664446] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    7.664448] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    7.664448] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    7.664449] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    7.664449] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    7.664450] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    7.712044] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[    7.712047] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
[    7.712087] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> DMIC48kHz 6 mapping ok
[    7.712090] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> DMIC16kHz 7 mapping ok
[    7.712095] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDA Analog 0 mapping ok
[    7.712100] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDA Digital 1 mapping ok
[    7.712103] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI1 3 mapping ok
[    7.712106] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI2 4 mapping ok
[    7.712109] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI3 5 mapping ok
[   15.661581] Modules linked in: rfcomm ccm cmac algif_hash algif_skcipher af_alg snd_soc_skl_hda_dsp snd_soc_hdac_hdmi snd_soc_dmic bnep snd_hda_codec_hdmi snd_hda_codec_realtek snd_hda_codec_generic snd_sof_pci snd_sof_intel_byt snd_sof_intel_ipc snd_sof_intel_hda_common snd_soc_hdac_hda snd_sof_xtensa_dsp snd_sof_intel_hda snd_sof ledtrig_audio snd_soc_skl snd_soc_sst_ipc snd_soc_sst_dsp snd_hda_ext_core snd_soc_acpi_intel_match snd_soc_acpi snd_soc_core snd_compress ac97_bus x86_pkg_temp_thermal intel_powerclamp snd_pcm_dmaengine snd_hda_intel snd_intel_dspcfg mei_hdcp snd_hda_codec intel_rapl_msr snd_hda_core snd_hwdep snd_pcm snd_seq_midi snd_seq_midi_event snd_rawmidi snd_seq uvcvideo snd_seq_device snd_timer videobuf2_vmalloc videobuf2_memops videobuf2_v4l2 iwlmvm btusb joydev coretemp snd videobuf2_common mac80211 btrtl input_leds nls_iso8859_1 kvm_intel libarc4 wmi_bmof btbcm serio_raw kvm efi_pstore intel_wmi_thunderbolt soundcore btintel videodev rapl bluetooth intel_cstate mc 
output of pacmd list-sinks while playing a song

Code: Select all

4 sink(s) available.
    index: 0
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_5__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 0
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDMI3 (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "5"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp,5"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp,5: sink"
		device.profile.description = "HDMI3/DP3 Output"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS HDMI3/DP3 Output"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] HDMI3: HDMI3/DP3 Output (priority 700, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] HDMI3>
    index: 1
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_4__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 1
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDMI2 (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "4"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp,4"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp,4: sink"
		device.profile.description = "HDMI2/DP2 Output"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS HDMI2/DP2 Output"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] HDMI2: HDMI2/DP2 Output (priority 600, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] HDMI2>
    index: 2
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp_3__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: SUSPENDED
	suspend cause: IDLE
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 0.00 ms
	max request: 0 KiB
	max rewind: 0 KiB
	monitor source: 2
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 0
	linked by: 0
	configured latency: 0.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDMI1 (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "3"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp,3"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp,3: sink"
		device.profile.description = "HDMI1/DP1 Output"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS HDMI1/DP1 Output"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] HDMI1: HDMI1/DP1 Output (priority 500, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] HDMI1>
  * index: 3
	name: <alsa_output.pci-0000_00_1f.3-platform-skl_hda_dsp_generic.HiFi__hw_sofhdadsp__sink>
	driver: <module-alsa-card.c>
	flags: HARDWARE HW_MUTE_CTRL HW_VOLUME_CTRL DECIBEL_VOLUME LATENCY DYNAMIC_LATENCY
	state: RUNNING
	suspend cause: (none)
	priority: 9030
	volume: front-left: 65536 / 100% / 0.00 dB,   front-right: 65536 / 100% / 0.00 dB
	        balance 0.00
	base volume: 65536 / 100% / 0.00 dB
	volume steps: 65537
	muted: no
	current latency: 75.23 ms
	max request: 14 KiB
	max rewind: 14 KiB
	monitor source: 3
	sample spec: s16le 2ch 48000Hz
	channel map: front-left,front-right
	             Stereo
	used by: 1
	linked by: 1
	configured latency: 75.00 ms; range is 0.50 .. 341.00 ms
	card: 0 <alsa_card.pci-0000_00_1f.3-platform-skl_hda_dsp_generic>
	module: 7
	properties:
		alsa.resolution_bits = "16"
		device.api = "alsa"
		device.class = "sound"
		alsa.class = "generic"
		alsa.subclass = "generic-mix"
		alsa.name = ""
		alsa.id = "HDA Analog (*)"
		alsa.subdevice = "0"
		alsa.subdevice_name = "subdevice #0"
		alsa.device = "0"
		alsa.card = "0"
		alsa.card_name = "sof-hda-dsp"
		alsa.long_card_name = "LENOVO-81NX-LenovoYogaS740_15IRH-LNVNB161216"
		alsa.driver_name = "snd_soc_skl_hda_dsp"
		device.bus_path = "pci-0000:00:1f.3-platform-skl_hda_dsp_generic"
		sysfs.path = "/devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0"
		device.bus = "pci"
		device.vendor.id = "8086"
		device.vendor.name = "Intel Corporation"
		device.product.id = "a348"
		device.product.name = "Cannon Lake PCH cAVS"
		device.string = "hw:sofhdadsp"
		device.buffering.buffer_size = "65472"
		device.buffering.fragment_size = "16320"
		device.access_mode = "mmap+timer"
		device.profile.name = "HiFi: hw:sofhdadsp: sink"
		device.profile.description = "Speaker + Headphones"
		alsa.mixer_device = "hw:sofhdadsp"
		device.description = "Cannon Lake PCH cAVS Speaker + Headphones"
		module-udev-detect.discovered = "1"
		device.icon_name = "audio-card-pci"
	ports:
		[Out] Speaker: Speaker (priority 100, latency offset 0 usec, available: unknown)
			properties:
				
		[Out] Headphones: Headphones (priority 200, latency offset 0 usec, available: no)
			properties:
				
	active port: <[Out] Speaker>
output of amixer

Code: Select all

Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined
  Playback channels: Mono
  Limits: Playback 0 - 87
  Mono: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Headphone',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [off]
  Front Right: Playback 87 [100%] [0.00dB] [off]
Simple mixer control 'Speaker',0
  Capabilities: pvolume pswitch
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 87
  Mono:
  Front Left: Playback 87 [100%] [0.00dB] [on]
  Front Right: Playback 87 [100%] [0.00dB] [on]
Simple mixer control 'Mic Boost',0
  Capabilities: volume
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: 0 - 3
  Front Left: 3 [100%] [30.00dB]
  Front Right: 3 [100%] [30.00dB]
Simple mixer control 'IEC958',0
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',1
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'IEC958',2
  Capabilities: pswitch pswitch-joined
  Playback channels: Mono
  Mono: Playback [on]
Simple mixer control 'Capture',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 63
  Front Left: Capture 39 [62%] [12.00dB] [on]
  Front Right: Capture 39 [62%] [12.00dB] [on]
Simple mixer control 'Auto-Mute Mode',0
  Capabilities: enum
  Items: 'Disabled' 'Enabled'
  Item0: 'Disabled'
Simple mixer control 'Dmic0',0
  Capabilities: cvolume cswitch
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB] [on]
  Front Right: Capture 50 [71%] [0.00dB] [on]
Simple mixer control 'Dmic1',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 70
  Front Left: Capture 50 [71%] [0.00dB]
  Front Right: Capture 50 [71%] [0.00dB]
Simple mixer control 'PGA1.0 1 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA2.0 2 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA3.0 3 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA4.0 4 Master',0
  Capabilities: cvolume
  Capture channels: Front Left - Front Right
  Limits: Capture 0 - 80
  Front Left: Capture 50 [62%] [0.00dB]
  Front Right: Capture 50 [62%] [0.00dB]
Simple mixer control 'PGA7.0 7 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA8.0 8 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Simple mixer control 'PGA9.0 9 Master',0
  Capabilities: pvolume
  Playback channels: Front Left - Front Right
  Limits: Playback 0 - 32
  Mono:
  Front Left: Playback 32 [100%] [0.00dB]
  Front Right: Playback 32 [100%] [0.00dB]
Please let me know if I can provide any more info which might help!
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Hi LovelyShaun, and welcome to the forum

Thanks for all the outputs, that really helps! :D

First, I don't expect this to help but I'd like you to try it. In the terminal run alsamixer and raise PGA2 and PGA4 to 100%, then test the sound. I'm not sure what all the PGA stuff is, that's why I want you to try it.

Assuming that doesn't work, delete the change you made here:
* updated grub with GRUB_CMDLINE_LINUX_DEFAULT="quiet splash snd_hda_intel.dmic_detect=0" (as suggested in viewtopic.php?p=1778315#p1778315)
That command is now outdated on anything newer than the 5.3 kernel. If you can live without the Internal Mic for now, this should get the sound working on the old audio driver:

Code: Select all

sudo tee /etc/modprobe.d/alsa-fix.conf <<<'options snd-intel-dspcfg dsp_driver=1
Finish with a reboot, then test.

The below is probably preferable, as this might simply be an error on Ubuntu's implementation of the new driver that we could possibly fix ourselves.

EDIT: If you want the internal mic to work as well, we might have a chance of getting it to work. Before trying the above, post of the output of this command:

Code: Select all

dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel'
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Thanks for the suggestions!

Unfortunately the sound is still not working even after

Code: Select all

sudo tee /etc/modprobe.d/alsa-fix.conf <<<'options snd-intel-dspcfg dsp_driver=1
after running the above, pulseaudio now only has output device of "build in audio speaker" with options for speaker and headphones, and in configuration the options have changed with most of them saying unavailable and/or unplugged except for "analogue stereo output"

I tried raising all the PGA to 100%, still no sound. After doing the above tee command the PGA have all disappeared.

Before doing the above tee command, output of dmesg | grep -C1 -E 'ALSA|HDA|sof|HDMI|snd[_-]|sound|hda.codec|hda.intel' was:

Code: Select all

 [_-]|sound|hda.codec|hda.intel'
[    0.168239] ACPI: Added _OSI(Linux-Dell-Video)
[    0.168240] ACPI: Added _OSI(Linux-Lenovo-NV-HDMI-Audio)
[    0.168240] ACPI: Added _OSI(Linux-HPI-Hybrid-Graphics)
--
[    1.973922] Freeing initrd memory: 83328K
[    2.024160] PCI-DMA: Using software bounce buffering for IO (SWIOTLB)
[    2.024164] software IO TLB: mapped [mem 0x45cb8000-0x49cb8000] (64MB)
[    2.024527] check: Scanning for low memory corruption every 60 seconds
--
[    2.180675] integrity: Loading X.509 certificate: UEFI:db
[    2.180707] integrity: Loaded X.509 cert 'Microsoft Windows Production PCA 2011: a92902398e16c49778cd90f99e4f9ae17c55af53'
[    2.180707] integrity: Loading X.509 certificate: UEFI:db
[    2.180719] integrity: Loaded X.509 cert 'Microsoft Corporation UEFI CA 2011: 13adbf4309bd82709c8cd54f316ed522988a1bd4'
[    2.180720] integrity: Loading X.509 certificate: UEFI:db
--
[    5.660711] USB Video Class driver (1.1.1)
[    5.663220] snd_hda_intel 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    5.664778] snd_hda_intel 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    5.664804] intel_rapl_common: Found RAPL domain package
--
[    5.756499] ieee80211 phy0: Selected rate control algorithm 'iwl-mvm-rs'
[    5.759953] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if info 0x040100
[    5.761572] sof-audio-pci 0000:00:1f.3: Digital mics found on Skylake+ platform, using SOF driver
[    5.761587] sof-audio-pci 0000:00:1f.3: enabling device (0000 -> 0002)
[    5.761718] sof-audio-pci 0000:00:1f.3: warning: No matching ASoC machine driver found
[    5.761722] sof-audio-pci 0000:00:1f.3: DSP detected with PCI class/subclass/prog-if 0x040100
[    5.761963] sof-audio-pci 0000:00:1f.3: use msi interrupt mode
[    5.762539] sof-audio-pci 0000:00:1f.3: bound 0000:00:02.0 (ops i915_audio_component_bind_ops [i915])
[    5.771442] sof-audio-pci 0000:00:1f.3: hda codecs found, mask 5
[    5.771444] sof-audio-pci 0000:00:1f.3: using HDA machine driver skl_hda_dsp_generic now
[    5.820172] sof-audio-pci 0000:00:1f.3: unexpected ipc interrupt raised!
[    5.820174] sof-audio-pci 0000:00:1f.3: error: no reply expected, received 0x0
[    5.872918] thermal thermal_zone9: failed to read out thermal zone (-61)
--
[    5.919269] NET: Registered protocol family 38
[    5.934196] sof-audio-pci 0000:00:1f.3: Firmware info: version 1:4:2-66a5a
[    5.934199] sof-audio-pci 0000:00:1f.3: Firmware: ABI 3:11:0 Kernel ABI 3:10:0
[    5.934200] sof-audio-pci 0000:00:1f.3: warn: FW ABI is more recent than kernel
[    5.934452] sof-audio-pci 0000:00:1f.3: firmware boot complete
[    5.981264] iwlwifi 0000:00:14.3 wlp0s20f3: renamed from wlan0
--
[    6.006746] skl_hda_dsp_generic skl_hda_dsp_generic: info: override FE DAI link dmic16k
[    6.007839] sof-audio-pci 0000:00:1f.3: Topology: ABI 3:11:0 Kernel ABI 3:10:0
[    6.007840] sof-audio-pci 0000:00:1f.3: warn: topology ABI is more recent than kernel
[    6.007845] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp3 Tx not handled
[    6.010601] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec0_in not handled
[    6.010603] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp2 Tx not handled
[    6.011607] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec1_in not handled
[    6.011609] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name iDisp1 Tx not handled
[    6.013203] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec0_out not handled
[    6.013205] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Analog CPU Playback not handled
[    6.014473] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec1_out not handled
[    6.014475] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Digital CPU Playback not handled
[    6.014476] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name codec2_in not handled
[    6.014478] sof-audio-pci 0000:00:1f.3: warning: widget type 7 name Alt Analog CPU Playback not handled
[    6.014479] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name codec2_out not handled
[    6.014481] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Analog CPU Capture not handled
[    6.015482] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp1_out not handled
[    6.015484] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Digital CPU Capture not handled
[    6.016694] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp2_out not handled
[    6.016696] sof-audio-pci 0000:00:1f.3: warning: widget type 0 name Alt Analog CPU Capture not handled
[    6.017773] sof-audio-pci 0000:00:1f.3: warning: widget type 1 name iDisp3_out not handled
[    6.029591] sof-audio-pci 0000:00:1f.3: ASoC: Parent card not yet available, widget card binding deferred
[    6.044194] snd_hda_codec_realtek ehdaudio0D0: autoconfig for ALC285: line_outs=1 (0x17/0x0/0x0/0x0/0x0) type:speaker
[    6.044196] snd_hda_codec_realtek ehdaudio0D0:    speaker_outs=0 (0x0/0x0/0x0/0x0/0x0)
[    6.044197] snd_hda_codec_realtek ehdaudio0D0:    hp_outs=1 (0x21/0x0/0x0/0x0/0x0)
[    6.044197] snd_hda_codec_realtek ehdaudio0D0:    mono: mono_out=0x0
[    6.044197] snd_hda_codec_realtek ehdaudio0D0:    inputs:
[    6.044198] snd_hda_codec_realtek ehdaudio0D0:      Mic=0x19
[    6.088344] snd_hda_codec_realtek ehdaudio0D0: ASoC: sink widget AIF1TX overwritten
[    6.088347] snd_hda_codec_realtek ehdaudio0D0: ASoC: source widget AIF1RX overwritten
[    6.088375] skl_hda_dsp_generic skl_hda_dsp_generic: intel-hdmi-hifi1 <-> iDisp1 Pin mapping ok
--
[    6.088405] skl_hda_dsp_generic skl_hda_dsp_generic: dmic-hifi <-> DMIC16k Pin mapping ok
[    6.088424] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> DMIC48kHz 6 mapping ok
[    6.088437] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> DMIC16kHz 7 mapping ok
[    6.088458] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDA Analog 0 mapping ok
[    6.088475] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDA Digital 1 mapping ok
[    6.088486] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI1 3 mapping ok
[    6.088498] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI2 4 mapping ok
[    6.088509] skl_hda_dsp_generic skl_hda_dsp_generic: snd-soc-dummy-dai <-> HDMI3 5 mapping ok
[    6.088549] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: sink widget hifi3 overwritten
--
[    6.088578] skl_hda_dsp_generic skl_hda_dsp_generic: ASoC: source widget Alt Analog Codec Capture overwritten
[    6.100601] input: sof-hda-dsp Mic as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input26
[    6.100638] input: sof-hda-dsp Headphone as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input27
[    6.100670] input: sof-hda-dsp HDMI/DP,pcm=3 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input28
[    6.100700] input: sof-hda-dsp HDMI/DP,pcm=4 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input29
[    6.100731] input: sof-hda-dsp HDMI/DP,pcm=5 as /devices/pci0000:00/0000:00:1f.3/skl_hda_dsp_generic/sound/card0/input30
[    6.367142] iwlwifi 0000:00:14.3: Applying debug destination EXTERNAL_DRAM
 
I'm not bothered at all if the internal mic doesn't work.
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay. You're the first person I've seen with a "good" dmesg output but sound not working, so we'll focus on the legacy driver for now.

Assuming the dsp_driver=1 config is still in place, and you've rebooted since running it, run this command:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
The last line of output will have a URL pointing to your sound setup, that will hopefully show why the sound isn't working.

The one thing that might be hiding in that output though is if Timidity is running. To check for that also paste the output of sudo fuser -v /dev/snd/*
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Here's the link generated by the curl command: https://termbin.com/kqix

output of fuser -v /dev/snd/* :

Code: Select all

                      USER        PID ACCESS COMMAND
/dev/snd/controlC0:  shaun      1234 F.... pulseaudio
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

I'm suspecting the newer pulseaudio doesn't like your hardware. Let's see the output of apt policy pulseaudio
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Result is:

Code: Select all

   Installed: 1:13.99.1-1ubuntu3.4
  Candidate: 1:13.99.1-1ubuntu3.4
  Version table:
 *** 1:13.99.1-1ubuntu3.4 500
        500 http://archive.ubuntu.com/ubuntu focal-updates/main amd64 Packages
        100 /var/lib/dpkg/status
     1:13.99.1-1ubuntu3.2 500
        500 http://security.ubuntu.com/ubuntu focal-security/main amd64 Packages
     1:13.99.1-1ubuntu3 500
        500 http://archive.ubuntu.com/ubuntu focal/main amd64 Packages
 
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay, let's see if downgrading PulseAudio fixes this. Run this in the terminal:

Code: Select all

apt update && apt install libpulse-mainloop-glib0=1:13.99.1-1ubuntu3.2 libpulse0=1:13.99.1-1ubuntu3.2 libpulsedsp=1:13.99.1-1ubuntu3.2 pulseaudio=1:13.99.1-1ubuntu3.2 pulseaudio-module-bluetooth=1:13.99.1-1ubuntu3.2 pulseaudio-utils=1:13.99.1-1ubuntu3.2
If the terminal says anything is going to be REMOVED, paste the output but don't continue with it. Assuming it goes fine, which it probably will, reboot when done then test the sound.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Unfortunately still no sound.
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay, did you do a full shut down from within Windows? Most of your outputs have always looked pretty good, except for this:

Code: Select all

	Profiles:
		input:analog-stereo: Analogue Stereo Input (sinks: 0, sources: 1, priority: 65, available: no)
		output:analog-stereo: Analogue Stereo Output (sinks: 1, sources: 0, priority: 6500, available: yes)
		output:analog-stereo+input:analog-stereo: Analogue Stereo Duplex (sinks: 1, sources: 1, priority: 6565, available: no)
But even there, output should be working. Looks like we might need to get our hands dirty and try some advanced stuff. First, run these in the terminal one line at a time:

Code: Select all

sudo su
echo 1 > /sys/module/snd_hda_codec/parameters/dump_coef
exit
cat /proc/asound/card0/codec#0
Paste that output, then go here and download and run the zip file in Windows. Upload that output to pastebin.com or some other file hosting site and share the link here.

That stuff will show some differences between how Windows had things configured vs how Linux has done it. We'll then try matching up to the Windows output to see if that gets the sound working.
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

MrEen wrote:
Thu Jul 23, 2020 3:58 pm
Okay, did you do a full shut down from within Windows?
As far as I can tell. I disabled hibernate/suspend/fast boot and used shift key on shutdown button, although Windows still seems to boot very quickly every time despite this, so its possible there's still some process which is keeping it from fully shutting down that I'm not aware of, or it might just be the speed of the ssd.

Here's the requested dump from Windows: https://pastebin.com/r2UK9Qg2

and here's the result from the requested commands:

Code: Select all

Codec: Realtek ALC285
Address: 0
AFG Function Id: 0x1 (unsol 1)
Vendor Id: 0x10ec0285
Subsystem Id: 0x17aa3803
Revision Id: 0x100002
No Modem Function Group found
Default PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
Default Amp-In caps: N/A
Default Amp-Out caps: N/A
State of AFG node 0x01:
  Power states:  D0 D1 D2 D3 D3cold CLKSTOP EPSS
  Power: setting=D0, actual=D0
GPIO: io=3, o=0, i=0, unsolicited=1, wake=0
  IO[0]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[1]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
  IO[2]: enable=0, dir=0, wake=0, sticky=0, data=0, unsol=0
Node 0x02 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Headphone Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Device: name="ALC285 Analog", type="Audio", device=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x00 0x00]
  Converter: stream=0, channel=0
  PCM:
    rates [0x40]: 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x03 [Audio Output] wcaps 0x41d: Stereo Amp-Out
  Control: name="Speaker Playback Volume", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x57, nsteps=0x57, stepsize=0x02, mute=0
  Amp-Out vals:  [0x3c 0x3c]
  Converter: stream=0, channel=0
  PCM:
    rates [0x40]: 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x04 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x05 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x06 [Audio Output] wcaps 0x411: Stereo
  Converter: stream=0, channel=0
  PCM:
    rates [0x40]: 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x07 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x40]: 48000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x24
Node 0x08 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Control: name="Capture Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Control: name="Capture Switch", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Device: name="ALC285 Analog", type="Audio", device=0
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x27 0x27]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x23
Node 0x09 [Audio Input] wcaps 0x10051b: Stereo Amp-In
  Amp-In caps: ofs=0x17, nsteps=0x3f, stepsize=0x02, mute=1
  Amp-In vals:  [0x97 0x97]
  Converter: stream=0, channel=0
  SDI-Select: 0
  PCM:
    rates [0x560]: 44100 48000 96000 192000
    bits [0xe]: 16 20 24
    formats [0x1]: PCM
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x22
Node 0x0a [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0b [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0d [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0e [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x0f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x10 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x11 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x12 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x40000000: [N/A] Line Out at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x0
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x13 [Pin Complex] wcaps 0x40040b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000020: IN
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x14 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00010014: OUT EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x02
Node 0x15 [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x16 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x17 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Speaker Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x00 0x00]
  Pincap 0x0000001c: OUT HP Detect
  Pin Default 0x90170110: [Fixed] Speaker at Int N/A
    Conn = Analog, Color = Unknown
    DefAssociation = 0x1, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 3
     0x02 0x03* 0x06
Node 0x18 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00000024: IN Detect
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00:
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x19 [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Control: name="Mic Boost Volume", index=0, device=0
    ControlAmp: chs=3, dir=In, idx=0, ofs=0
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x04a11040: [Jack] Mic at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x4, Sequence = 0x0
  Pin-ctls: 0x24: IN VREF_80
  Unsolicited: tag=02, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1a [Pin Complex] wcaps 0x40048b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Pincap 0x00003724: IN Detect
    Vref caps: HIZ 50 GRD 80 100
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1b [Pin Complex] wcaps 0x40058f: Stereo Amp-In Amp-Out
  Amp-In caps: ofs=0x00, nsteps=0x03, stepsize=0x27, mute=0
  Amp-In vals:  [0x00 0x00]
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x00013734: IN OUT EAPD Detect
    Vref caps: HIZ 50 GRD 80 100
  EAPD 0x2: EAPD
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x00: VREF_HIZ
  Unsolicited: tag=00, enabled=0
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x1c [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x1d [Pin Complex] wcaps 0x400400: Mono
  Pincap 0x00000020: IN
  Pin Default 0x40600001: [N/A] Modem Line at Ext N/A
    Conn = Unknown, Color = Unknown
    DefAssociation = 0x0, Sequence = 0x1
  Pin-ctls: 0x20: IN
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
Node 0x1e [Pin Complex] wcaps 0x400501: Stereo
  Pincap 0x00000010: OUT
  Pin Default 0x411111f0: [N/A] Speaker at Ext Rear
    Conn = 1/8, Color = Black
    DefAssociation = 0xf, Sequence = 0x0
    Misc = NO_PRESENCE
  Pin-ctls: 0x40: OUT
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 1
     0x06
Node 0x1f [Vendor Defined Widget] wcaps 0xf00000: Mono
Node 0x20 [Vendor Defined Widget] wcaps 0xf00040: Mono
  Processing caps: benign=0, ncoeff=142
    Coeff 0x00: 0x0002
    Coeff 0x01: 0xaaaa
    Coeff 0x02: 0x8aaa
    Coeff 0x03: 0x0002
    Coeff 0x04: 0xaa09
    Coeff 0x05: 0x0700
    Coeff 0x06: 0x6115
    Coeff 0x07: 0x0200
    Coeff 0x08: 0x6a8c
    Coeff 0x09: 0x8003
    Coeff 0x0a: 0x777a
    Coeff 0x0b: 0x7770
    Coeff 0x0c: 0x01ef
    Coeff 0x0d: 0xa023
    Coeff 0x0e: 0x65c0
    Coeff 0x0f: 0x0000
    Coeff 0x10: 0x0020
    Coeff 0x11: 0x0000
    Coeff 0x12: 0x0000
    Coeff 0x13: 0x0000
    Coeff 0x14: 0x0000
    Coeff 0x15: 0x0000
    Coeff 0x16: 0x0000
    Coeff 0x17: 0x0000
    Coeff 0x18: 0x0000
    Coeff 0x19: 0x0e11
    Coeff 0x1a: 0x8003
    Coeff 0x1b: 0x8a4b
    Coeff 0x1c: 0x0000
    Coeff 0x1d: 0x0000
    Coeff 0x1e: 0x0000
    Coeff 0x1f: 0x0000
    Coeff 0x20: 0x1000
    Coeff 0x21: 0x0000
    Coeff 0x22: 0x0000
    Coeff 0x23: 0x8804
    Coeff 0x24: 0x0000
    Coeff 0x25: 0x0000
    Coeff 0x26: 0x0000
    Coeff 0x27: 0x0000
    Coeff 0x28: 0x0000
    Coeff 0x29: 0x3000
    Coeff 0x2a: 0x0000
    Coeff 0x2b: 0x0000
    Coeff 0x2c: 0x0f00
    Coeff 0x2d: 0x1f4f
    Coeff 0x2e: 0x290e
    Coeff 0x2f: 0xef57
    Coeff 0x30: 0x9007
    Coeff 0x31: 0xd2c0
    Coeff 0x32: 0x54a8
    Coeff 0x33: 0x8580
    Coeff 0x34: 0xa281
    Coeff 0x35: 0x0daa
    Coeff 0x36: 0x57d7
    Coeff 0x37: 0xfe05
    Coeff 0x38: 0x7909
    Coeff 0x39: 0x110a
    Coeff 0x3a: 0x0010
    Coeff 0x3b: 0x60d9
    Coeff 0x3c: 0xf214
    Coeff 0x3d: 0xc2ba
    Coeff 0x3e: 0xa928
    Coeff 0x3f: 0x0001
    Coeff 0x40: 0x8800
    Coeff 0x41: 0x0000
    Coeff 0x42: 0x2000
    Coeff 0x43: 0x3d90
    Coeff 0x44: 0x4900
    Coeff 0x45: 0x5289
    Coeff 0x46: 0x0004
    Coeff 0x47: 0xa47a
    Coeff 0x48: 0xd049
    Coeff 0x49: 0x0049
    Coeff 0x4a: 0x2010
    Coeff 0x4b: 0x0000
    Coeff 0x4c: 0x065c
    Coeff 0x4d: 0x7fff
    Coeff 0x4e: 0x7fff
    Coeff 0x4f: 0x0000
    Coeff 0x50: 0x0000
    Coeff 0x51: 0x6f6f
    Coeff 0x52: 0x0100
    Coeff 0x53: 0x3320
    Coeff 0x54: 0xcc00
    Coeff 0x55: 0x0000
    Coeff 0x56: 0x3f00
    Coeff 0x57: 0x0000
    Coeff 0x58: 0x0000
    Coeff 0x59: 0x0000
    Coeff 0x5a: 0x1300
    Coeff 0x5b: 0x0777
    Coeff 0x5c: 0x0000
    Coeff 0x5d: 0x6000
    Coeff 0x5e: 0x4000
    Coeff 0x5f: 0x6200
    Coeff 0x60: 0x00af
    Coeff 0x61: 0x13a8
    Coeff 0x62: 0x0000
    Coeff 0x63: 0xc000
    Coeff 0x64: 0x0000
    Coeff 0x65: 0x0000
    Coeff 0x66: 0x0000
    Coeff 0x67: 0xf000
    Coeff 0x68: 0x0001
    Coeff 0x69: 0x0000
    Coeff 0x6a: 0x0000
    Coeff 0x6b: 0xa314
    Coeff 0x6c: 0x7fff
    Coeff 0x6d: 0x7000
    Coeff 0x6e: 0x3005
    Coeff 0x6f: 0xfa00
    Coeff 0x70: 0x8063
    Coeff 0x71: 0x0000
    Coeff 0x72: 0x0000
    Coeff 0x73: 0xa000
    Coeff 0x74: 0xa000
    Coeff 0x75: 0x70c0
    Coeff 0x76: 0xf000
    Coeff 0x77: 0x0000
    Coeff 0x78: 0x0000
    Coeff 0x79: 0x0000
    Coeff 0x7a: 0x0000
    Coeff 0x7b: 0x0000
    Coeff 0x7c: 0x0000
    Coeff 0x7d: 0x0000
    Coeff 0x7e: 0x0000
    Coeff 0x7f: 0x0000
    Coeff 0x80: 0x0000
    Coeff 0x81: 0x0000
    Coeff 0x82: 0x0000
    Coeff 0x83: 0x0000
    Coeff 0x84: 0x0000
    Coeff 0x85: 0x0000
    Coeff 0x86: 0x0000
    Coeff 0x87: 0x0000
    Coeff 0x88: 0x1fbc
    Coeff 0x89: 0x0000
    Coeff 0x8a: 0x0000
    Coeff 0x8b: 0x0000
    Coeff 0x8c: 0xff80
    Coeff 0x8d: 0x0000
Node 0x21 [Pin Complex] wcaps 0x40058d: Stereo Amp-Out
  Control: name="Headphone Playback Switch", index=0, device=0
    ControlAmp: chs=3, dir=Out, idx=0, ofs=0
  Amp-Out caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-Out vals:  [0x80 0x80]
  Pincap 0x0001001c: OUT HP EAPD Detect
  EAPD 0x2: EAPD
  Pin Default 0x0421101f: [Jack] HP Out at Ext Right
    Conn = 1/8, Color = Black
    DefAssociation = 0x1, Sequence = 0xf
  Pin-ctls: 0xc0: OUT HP
  Unsolicited: tag=01, enabled=1
  Power states:  D0 D1 D2 D3 EPSS
  Power: setting=D0, actual=D0
  Connection: 2
     0x02* 0x03
Node 0x22 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x19 0x1a 0x1b 0x1d 0x13
Node 0x23 [Audio Mixer] wcaps 0x20010b: Stereo Amp-In
  Amp-In caps: ofs=0x00, nsteps=0x00, stepsize=0x00, mute=1
  Amp-In vals:  [0x00 0x00] [0x80 0x80] [0x80 0x80] [0x80 0x80] [0x80 0x80]
  Connection: 5
     0x19 0x1a 0x1b 0x1d 0x12
Node 0x24 [Audio Selector] wcaps 0x300101: Stereo
  Connection: 3
     0x12* 0x13 0x18
At this stage should I be using the snd-hda-intel or the sof ?
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

LovelyShaun wrote:
Fri Jul 24, 2020 10:47 am
At this stage should I be using the snd-hda-intel or the sof ?
I don't think it's going to matter much. Let's stick with snd-hda-intel for now. When we've tried making the Linux COEF's match Windows and it still doesn't work, then we'll try the same with the sof-audio-pci driver.

It's going to be a few hours until I post the commands to run. Still have some things to do here, then need to parse the 2 outputs.
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

About to have dinner and a little family time. Did get the files parsed and I'll post the outputs here, but it'll still be a bit before I give you the commands.

Linux shows:

Code: Select all

0x00 0x0002
0x01 0xaaaa
0x02 0x8aaa
0x03 0x0002
0x04 0xaa09
0x05 0x0700
0x06 0x6115
0x07 0x0200
0x08 0x6a8c
0x09 0x8003
0x0a 0x777a
0x0b 0x7770
0x0c 0x01ef
0x0d 0xa023
0x0e 0x65c0
0x0f 0x0000
0x10 0x0020
0x11 0x0000
0x12 0x0000
0x13 0x0000
0x14 0x0000
0x15 0x0000
0x16 0x0000
0x17 0x0000
0x18 0x0000
0x19 0x0e11
0x1a 0x8003
0x1b 0x8a4b
0x1c 0x0000
0x1d 0x0000
0x1e 0x0000
0x1f 0x0000
0x20 0x1000
0x21 0x0000
0x22 0x0000
0x23 0x8804
0x24 0x0000
0x25 0x0000
0x26 0x0000
0x27 0x0000
0x28 0x0000
0x29 0x3000
0x2a 0x0000
0x2b 0x0000
0x2c 0x0f00
0x2d 0x1f4f
0x2e 0x290e
0x2f 0xef57
0x30 0x9007
0x31 0xd2c0
0x32 0x54a8
0x33 0x8580
0x34 0xa281
0x35 0x0daa
0x36 0x57d7
0x37 0xfe05
0x38 0x7909
0x39 0x110a
0x3a 0x0010
0x3b 0x60d9
0x3c 0xf214
0x3d 0xc2ba
0x3e 0xa928
0x3f 0x0001
0x40 0x8800
0x41 0x0000
0x42 0x2000
0x43 0x3d90
0x44 0x4900
0x45 0x5289
0x46 0x0004
0x47 0xa47a
0x48 0xd049
0x49 0x0049
0x4a 0x2010
0x4b 0x0000
0x4c 0x065c
0x4d 0x7fff
0x4e 0x7fff
0x4f 0x0000
0x50 0x0000
0x51 0x6f6f
0x52 0x0100
0x53 0x3320
0x54 0xcc00
0x55 0x0000
0x56 0x3f00
0x57 0x0000
0x58 0x0000
0x59 0x0000
0x5a 0x1300
0x5b 0x0777
0x5c 0x0000
0x5d 0x6000
0x5e 0x4000
0x5f 0x6200
0x60 0x00af
0x61 0x13a8
0x62 0x0000
0x63 0xc000
0x64 0x0000
0x65 0x0000
0x66 0x0000
0x67 0xf000
0x68 0x0001
0x69 0x0000
0x6a 0x0000
0x6b 0xa314
0x6c 0x7fff
0x6d 0x7000
0x6e 0x3005
0x6f 0xfa00
0x70 0x8063
0x71 0x0000
0x72 0x0000
0x73 0xa000
0x74 0xa000
0x75 0x70c0
0x76 0xf000
0x77 0x0000
0x78 0x0000
0x79 0x0000
0x7a 0x0000
0x7b 0x0000
0x7c 0x0000
0x7d 0x0000
0x7e 0x0000
0x7f 0x0000
0x80 0x0000
0x81 0x0000
0x82 0x0000
0x83 0x0000
0x84 0x0000
0x85 0x0000
0x86 0x0000
0x87 0x0000
0x88 0x1fbc
0x89 0x0000
0x8a 0x0000
0x8b 0x0000
0x8c 0xff80
0x8d 0x0000
Windows shows:

Code: Select all

0x00 0x0002
0x01 0xaaaa
0x02 0x8aaa
0x03 0x0002
0x04 0xaa09
0x05 0x0700
0x06 0x6115
0x07 0x0200
0x08 0x6a0c
0x09 0x8003
0x0a 0x777a
0x0b 0x7770
0x0c 0x01ef
0x0d 0xa023
0x0e 0x65c0
0x0f 0x0000
0x10 0x0220
0x11 0x0000
0x12 0x0000
0x13 0x0000
0x14 0x0000
0x15 0x0000
0x16 0x0000
0x17 0x0000
0x18 0x0000
0x19 0x0e11
0x1a 0x8c03
0x1b 0x8a4b
0x1c 0x0000
0x1d 0x0000
0x1e 0x0000
0x1f 0x0000
0x20 0x1000
0x21 0x0000
0x22 0x0000
0x23 0x8804
0x24 0x0042
0x25 0x0000
0x26 0x0002
0x27 0x0000
0x28 0x0002
0x29 0xb000
0x2a 0x0000
0x2b 0x0000
0x2c 0x0f00
0x2d 0x1f4f
0x2e 0x290e
0x2f 0xef57
0x30 0x9007
0x31 0xd2c0
0x32 0x54a8
0x33 0x8d80
0x34 0xa281
0x35 0x0d6a
0x36 0x57d7
0x37 0xfe05
0x38 0x7909
0x39 0x110a
0x3a 0x0010
0x3b 0x60d9
0x3c 0xf214
0x3d 0xc2ba
0x3e 0xa928
0x3f 0x0001
0x40 0x8800
0x41 0x0000
0x42 0x2000
0x43 0x3d90
0x44 0x4900
0x45 0x5289
0x46 0x0004
0x47 0xa47a
0x48 0xd049
0x49 0x0049
0x4a 0x2010
0x4b 0x0000
0x4c 0x065c
0x4d 0x7fff
0x4e 0x7fff
0x4f 0x0000
0x50 0x0000
0x51 0x6f6f
0x52 0x0100
0x53 0x3320
0x54 0xcc00
0x55 0x0000
0x56 0x3f00
0x57 0x0000
0x58 0x0000
0x59 0x0000
0x5a 0x1300
0x5b 0x0777
0x5c 0x0000
0x5d 0x6000
0x5e 0x4000
0x5f 0x6200
0x60 0x00af
0x61 0x13a8
0x62 0x0000
0x63 0xc000
0x64 0x0000
0x65 0x0000
0x66 0x03f0
0x67 0x1000
0x68 0x0001
0x69 0x0000
0x6a 0x0000
0x6b 0xa314
0x6c 0x7fff
0x6d 0x7000
0x6e 0x1005
0x6f 0xfa00
0x70 0x8063
0x71 0x0000
0x72 0x0000
0x73 0xa000
0x74 0xa000
0x75 0x70c0
0x76 0xf000
0x77 0x0000
0x78 0x0000
0x79 0x0000
0x7a 0x0000
0x7b 0x0000
0x7c 0x0000
0x7d 0x0000
0x7e 0x0000
0x7f 0x0000
0x80 0x0000
0x81 0x0000
0x82 0x0000
0x83 0x0000
0x84 0x0000
0x85 0x0000
0x86 0x0000
0x87 0x0000
0x88 0x1fbc
0x89 0x0000
0x8a 0x0000
0x8b 0x0000
0x8c 0xff80
0x8d 0x0000
Haven't diff'ed them yet.
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay, here's what we're going to try. Install alsa-tools to be able to run the following commands. I'll be posting them in pairs, but run them one line at a time. Then test the sound output after each pair. If the sound starts working, we can stop there, then try to reduce the number of commands that were necessary. Just mention which pair was the last run when sound started working.

So, here we go:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x08
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x6a0c

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x10
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x0220

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x1a
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x8c03

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x24
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x0042

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x26
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x0002

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x28
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0x0002

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x20 SET_COEF_INDEX 0x29
sudo hda-verb /dev/snd/hwC0D0 0x20 SET_PROC_COEF 0xb000

And mercifully, your list of differences wasn't too long. Those are the only changes to try. If we get lucky, that'll get the sound working, then we can make those changes happen automatically on each boot.

All of these will be undone by rebooting, so if you think you might've messed up something, just reboot and start over.

Good luck!
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Thanks for putting so much work into this. Unfortunately I'm still not getting anything from the speakers even after trying the alsa-tools commands you gave.

How would I go about trying the same thing for the sof driver?
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

You're welcome.

Before we try anything with the sof driver, if you haven't rebooted since running those, try these one line at a time:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x01
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x01
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x01
Then test the sound. I forgot to mention, also check that the sound isn't muted. It may start off muted if/when we find the magic key.

If that still didn't help, then try this:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x02
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x02
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x02
Test again, and if no luck try this:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x04
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x04
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x04
And I'll throw in just one more:

Code: Select all

sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_MASK 0x08
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DIR 0x08
sudo hda-verb /dev/snd/hwC0D0 0x01 SET_GPIO_DATA 0x08
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

Tried them all again in order and tested sound each time, making sure alsamixer wasn't muted. Still no sound.
User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Dammit!

I'm suspecting there's something still necessary that's beyond my knowledge, but let's try now to work with the sof driver to see if we can find the magic necessary.

First, we need to run sudo rm /etc/modprobe.d/alsa-fix.conf then reboot so the new driver loads again.

Then, let's get a fresh look at the sound setup, as last time we got this, you were using the snd-hda-intel driver:

Code: Select all

curl https://gitlab.freedesktop.org/pulseaudio/pulseaudio/raw/master/src/utils/pa-info?inline=false | bash | nc termbin.com 9999
LovelyShaun
Level 1
Level 1
Posts: 15
Joined: Mon Jul 20, 2020 9:48 am

Re: Lenovo Yoga s740 no sound from speakers

Post by LovelyShaun »

User avatar
MrEen
Level 22
Level 22
Posts: 16673
Joined: Mon Jun 12, 2017 8:39 pm

Re: Lenovo Yoga s740 no sound from speakers

Post by MrEen »

Okay, now the output of pacmd list-sinks please.
Post Reply

Return to “Sound, Multimedia, & Codecs”