[Touch-packages] [Bug 1958019]

2023-11-30 Thread andrewdubya
Created attachment 305523
alsa-info.txt

Thanks Cameron! Adding those files to /lib/firmware didn't work (I copied
the files directly), so I'm probably out of luck for now. I've attached my
alsa-info.txt in case it helps.

On Thu, Nov 30, 2023 at 10:45 AM  wrote:

> https://bugzilla.kernel.org/show_bug.cgi?id=208555
>
> --- Comment #788 from Cameron Berkenpas (c...@neo-zeon.de) ---
> Andrew, the verb approach doesn't work here as smart amps are being used.
>
> The tas2781 smart amp is generally supported as of kernel 6.6... but now
> it's a
> question of if firmware for your laptop is available.
>
> Without your alsa-info, I can't tell if your laptop is supported...
>
> But you can just try the firmware for yourself from here:
> https://neo-zeon.de/~hiryu/tas/firmware-6.6.tar.bz2
>
> Just copy the files into /lib/firmware/ and reboot. Hopefully you have
> sound.
>
> A number of Lenovo laptops with tas2781 are supported, but I don't think
> the
> list is anywhere near comprehensive so we'll see..?
>
> Good luck!
>
> I'm not sure if these firmware files are yet in the pipeline to be commonly
> redistributed at this time... I'll see if there's something I can do to get
> that process started.
>
> (In reply to Andrew from comment #787)
>
> > From lsmod:
> > snd_soc_tas2781_fmwlib53248  1 snd_hda_scodec_tas2781_i2c
> > snd_soc_tas2781_comlib24576  2
> > snd_soc_tas2781_fmwlib,snd_hda_scodec_tas2781_i2c
> >
> > From dmesg (1f.3 is the device, I think):
> > [0.709119] pci :00:1f.0: [8086:519f] type 00 class 0x060100
> > [0.709450] pci :00:1f.3: [8086:51cf] type 00 class 0x040100
> > [0.709492] pci :00:1f.3: reg 0x10: [mem 0x620319-0x6203193fff
> > 64bit]
> > [0.709546] pci :00:1f.3: reg 0x20: [mem 0x620300-0x62030f
> > 64bit]
> > [0.709651] pci :00:1f.3: PME# supported from D3hot D3cold
> > [0.709735] pci :00:1f.4: [8086:51a3] type 00 class 0x0c0500
> > [0.709756] pci :00:1f.4: reg 0x10: [mem 0x620319c000-0x620319c0ff
> > 64bit]
> > [0.709778] pci :00:1f.4: reg 0x20: [io  0xefa0-0xefbf]
> > [0.710013] pci :00:1f.5: [8086:51a4] type 00 class 0x0c8000
> > [0.710035] pci :00:1f.5: reg 0x10: [mem 0xfe01-0xfe010fff]
> >
> > I have a separate grub entry to boot without sound (for qemu sniffing)
> using
> > these flags: modprobe.blacklist=snd_hda_intel,snd_sof_pci_intel_tgl
> > pci-stub.ids=8086:51cf iommu=pt intel_iommu=on
> >
> > I'm not sure if that's enough. Happy to help in any way!
>
> --
> You may reply to this email to add a comment.
>
> You are receiving this mail because:
> You are on the CC list for the bug.

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1958019

Title:
  [Lenovo Legion7 16ACHg6 82N6, Realtek ALC287, Speaker, Internal] No
  sound at all

Status in sound-2.6 (alsa-kernel):
  Confirmed
Status in alsa-driver package in Ubuntu:
  Confirmed

Bug description:
  On my Lenovo Legion-7-16ACHg6 laptop I can't hear any sound by
  internal speakers, but it work by headphones connected to standard
  jack aux.

  uname -r
  5.11.0-44-generic

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu5
  ProcVersionSignature: Ubuntu 5.11.0-44.48~20.04.2-generic 5.11.22
  Uname: Linux 5.11.0-44-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC2:  i3draven   1266 F pulseaudio
   /dev/snd/controlC0:  i3draven   1266 F pulseaudio
   /dev/snd/controlC1:  i3draven   1266 F pulseaudio
   /dev/snd/pcmC1D0p:   i3draven   1266 F...m pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Jan 15 15:10:53 2022
  InstallationDate: Installed on 2021-10-11 (96 days ago)
  InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
  PackageArchitecture: all
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Generic failed
  Symptom_Card: Family 17h (Models 10h-1fh) HD Audio Controller - HD-Audio 
Generic
  Symptom_DevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC2:  i3draven   1266 F pulseaudio
   /dev/snd/controlC0:  i3draven   1266 F pulseaudio
   /dev/snd/controlC1:  i3draven   1266 F pulseaudio
   /dev/snd/pcmC1D0p:   i3draven   1266 F...m pulseaudio
  Symptom_Jack: Speaker, Internal
  Symptom_Type: No sound at all
  Title: [82N6, Realtek ALC287, Speaker, Internal] No sound at all
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 11/08/2021
  dmi.bios.release: 1.49
  dmi.bios.vendor: LENOVO
  dmi.bios.version: GKCN49WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: 

[Touch-packages] [Bug 1958019]

2023-11-30 Thread andrewdubya
Is there some way I can help to get Realtek/tas working for the Lenovo
Slim Pro 9i (named Yoga Slim 9i outside of the US)?

On my Manjaro install, the top speakers work (although I don't think
they're amplified?) and the bottom subwoofers are off.

I've managed to get qemu working for sniffing following this guide:
https://github.com/ryanprescott/realtek-verb-tools/wiki/How-to-sniff-verbs-from-a-Windows-sound-driver

At one point, Win10 in qemu had sound working similar to Linux (only
top-firing, maybe unamplified), and I saw event logs, but I don't
remember the driver. I might need to do a clean install at this point.

When I try to install the driver in qemu in win10 or win11, I get a
bluescreen. Windows is using Realtek Semi Corp ver 6.0.9553.1.

uname:
Linux andrew-slim 6.6.2-1-MANJARO #1 SMP PREEMPT_DYNAMIC Mon Nov 20 13:00:47 
UTC 2023 x86_64 GNU/Linux

lspci shows:
00:1f.3 Multimedia audio controller: Intel Corporation Device 51cf (rev 01)
Subsystem: Lenovo Device 3802
Control: I/O- Mem+ BusMaster- SpecCycle- MemWINV- VGASnoop- ParErr- 
Stepping- SERR- FastB2B- DisINTx-
Status: Cap+ 66MHz- UDF- FastB2B- ParErr- DEVSEL=fast >TAbort- SERR- 
Capabilities: [60] MSI: Enable- Count=1/1 Maskable- 64bit+
Address:   Data: 
Kernel driver in use: vfio-pci
Kernel modules: snd_hda_intel, snd_sof_pci_intel_tg

>From lsmod:
snd_soc_tas2781_fmwlib53248  1 snd_hda_scodec_tas2781_i2c
snd_soc_tas2781_comlib24576  2 
snd_soc_tas2781_fmwlib,snd_hda_scodec_tas2781_i2c

>From dmesg (1f.3 is the device, I think):
[0.709119] pci :00:1f.0: [8086:519f] type 00 class 0x060100
[0.709450] pci :00:1f.3: [8086:51cf] type 00 class 0x040100
[0.709492] pci :00:1f.3: reg 0x10: [mem 0x620319-0x6203193fff 64bit]
[0.709546] pci :00:1f.3: reg 0x20: [mem 0x620300-0x62030f 64bit]
[0.709651] pci :00:1f.3: PME# supported from D3hot D3cold
[0.709735] pci :00:1f.4: [8086:51a3] type 00 class 0x0c0500
[0.709756] pci :00:1f.4: reg 0x10: [mem 0x620319c000-0x620319c0ff 64bit]
[0.709778] pci :00:1f.4: reg 0x20: [io  0xefa0-0xefbf]
[0.710013] pci :00:1f.5: [8086:51a4] type 00 class 0x0c8000
[0.710035] pci :00:1f.5: reg 0x10: [mem 0xfe01-0xfe010fff]

I have a separate grub entry to boot without sound (for qemu sniffing)
using these flags:
modprobe.blacklist=snd_hda_intel,snd_sof_pci_intel_tgl pci-
stub.ids=8086:51cf iommu=pt intel_iommu=on

I'm not sure if that's enough. Happy to help in any way!

-- 
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to alsa-driver in Ubuntu.
https://bugs.launchpad.net/bugs/1958019

Title:
  [Lenovo Legion7 16ACHg6 82N6, Realtek ALC287, Speaker, Internal] No
  sound at all

Status in sound-2.6 (alsa-kernel):
  Confirmed
Status in alsa-driver package in Ubuntu:
  Confirmed

Bug description:
  On my Lenovo Legion-7-16ACHg6 laptop I can't hear any sound by
  internal speakers, but it work by headphones connected to standard
  jack aux.

  uname -r
  5.11.0-44-generic

  ProblemType: Bug
  DistroRelease: Ubuntu 20.04
  Package: alsa-base 1.0.25+dfsg-0ubuntu5
  ProcVersionSignature: Ubuntu 5.11.0-44.48~20.04.2-generic 5.11.22
  Uname: Linux 5.11.0-44-generic x86_64
  NonfreeKernelModules: nvidia_modeset nvidia
  ApportVersion: 2.20.11-0ubuntu27.21
  Architecture: amd64
  AudioDevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC2:  i3draven   1266 F pulseaudio
   /dev/snd/controlC0:  i3draven   1266 F pulseaudio
   /dev/snd/controlC1:  i3draven   1266 F pulseaudio
   /dev/snd/pcmC1D0p:   i3draven   1266 F...m pulseaudio
  CasperMD5CheckResult: skip
  CurrentDesktop: ubuntu:GNOME
  Date: Sat Jan 15 15:10:53 2022
  InstallationDate: Installed on 2021-10-11 (96 days ago)
  InstallationMedia: Ubuntu 20.04.3 LTS "Focal Fossa" - Release amd64 (20210819)
  PackageArchitecture: all
  SourcePackage: alsa-driver
  Symptom: audio
  Symptom_AlsaPlaybackTest: ALSA playback test through plughw:Generic failed
  Symptom_Card: Family 17h (Models 10h-1fh) HD Audio Controller - HD-Audio 
Generic
  Symptom_DevicesInUse:
   USERPID ACCESS COMMAND
   /dev/snd/controlC2:  i3draven   1266 F pulseaudio
   /dev/snd/controlC0:  i3draven   1266 F pulseaudio
   /dev/snd/controlC1:  i3draven   1266 F pulseaudio
   /dev/snd/pcmC1D0p:   i3draven   1266 F...m pulseaudio
  Symptom_Jack: Speaker, Internal
  Symptom_Type: No sound at all
  Title: [82N6, Realtek ALC287, Speaker, Internal] No sound at all
  UpgradeStatus: No upgrade log present (probably fresh install)
  dmi.bios.date: 11/08/2021
  dmi.bios.release: 1.49
  dmi.bios.vendor: LENOVO
  dmi.bios.version: GKCN49WW
  dmi.board.asset.tag: NO Asset Tag
  dmi.board.name: LNVNB161216
  dmi.board.vendor: LENOVO
  dmi.board.version: SDK0R32862 WIN
  dmi.chassis.asset.tag: NO Asset Tag
  dmi.chassis.type: 10