Bug#986822: BUG#986822 Broadwell SST CATPT Sound module

2021-06-21 Thread Dekks Herton
problem resolved, i think.

new sof firmware update came out, not sure its arrival was more than a
coincidence

1 - disabling all intel vitrualisation options in the helix bios was enough
to allow the fw to load thus  pavucontrol was now seeing input bars moving
but no sound output.

2 - ran alsactl -U init after i noticed ucm errors when running alsactl
init.

3 - aplay -l now sees all 3 cards when docked and 2 when tablet only.

4 - alsamixer still showed the correct hw but a lot of outputs were muted,
by enabling and disabling them all in sequence enabling the front dac
enabled sount from the rt256 card and headphone socket.

I'm doing basic checks like detaching and reattaching to see if that
affects the sound, so far ok Only noticeable thing is the fw gets reloaded
3 or 4 times a session, but doesn't seem to affect anything . If i have not
commented more  in a week feel free to close the bug.

On Tue, 15 Jun 2021 at 11:43, Dekks Herton  wrote:

> Hi Vincent
>
> I'll kill the pipewire server, i would uninstall the packages but they are
> hard deps for gnome now.
>
> Is the fw file catpt is trying to load the correct one? Is there new fw
> files that come with catpt that have been forgotten?
> Is there a listiing for the error codes -110 and -2, are they missing
> files or read permission issues?
>
> Regards.
>
>
>
>
> On Sun, 13 Jun 2021 at 18:08, Vincent Blut  wrote:
>
>> Hi,
>>
>> Le 2021-06-05 08:31, Dekks Herton a écrit :
>> > Hi
>> >
>> > Additional alsa-info script output
>>
>> From a quick look, alsa-info reports that you're running both PipeWire and
>> PulseAudio sound servers. While it may not be the root cause of your
>> issue,
>> if you want to stick with the former, please disable the latter:
>> $ sudo systemctl --user disable --now pulseaudio.service pulseaudio.socket
>>
>> Note though that using PipeWire as a substitute to PulseAudio/JACK/ALSA in
>> Debian 11 is considered experimental.
>>
>> Cheers,
>> Vincent
>>
>


Bug#986822: BUG#986822 Broadwell SST CATPT Sound module

2021-06-15 Thread Dekks Herton
Hi Vincent

I'll kill the pipewire server, i would uninstall the packages but they are
hard deps for gnome now.

Is the fw file catpt is trying to load the correct one? Is there new fw
files that come with catpt that have been forgotten?
Is there a listiing for the error codes -110 and -2, are they missing files
or read permission issues?

Regards.




On Sun, 13 Jun 2021 at 18:08, Vincent Blut  wrote:

> Hi,
>
> Le 2021-06-05 08:31, Dekks Herton a écrit :
> > Hi
> >
> > Additional alsa-info script output
>
> From a quick look, alsa-info reports that you're running both PipeWire and
> PulseAudio sound servers. While it may not be the root cause of your issue,
> if you want to stick with the former, please disable the latter:
> $ sudo systemctl --user disable --now pulseaudio.service pulseaudio.socket
>
> Note though that using PipeWire as a substitute to PulseAudio/JACK/ALSA in
> Debian 11 is considered experimental.
>
> Cheers,
> Vincent
>


Bug#986822: BUG#986822 Broadwell SST CATPT Sound module

2021-06-05 Thread Dekks Herton
Hi

Additional alsa-info script output

On Sat, 5 Jun 2021 at 00:19, Dekks Herton  wrote:

> Hi,
>
> Files as requested. I've included a full journal output if there is
> anything else you notice
>
> Regards..
>
> On Fri, 4 Jun 2021 at 21:27, Vincent Blut  wrote:
>
>> Hi Salvatore,
>>
>> Le 2021-06-04 21:39, Salvatore Bonaccorso a écrit :
>> > Hi,
>> >
>> > On Fri, Jun 04, 2021 at 05:56:03PM +0200, Vincent Blut wrote:
>> > > Hi Dekks,
>> > >
>> > > Le 2021-06-04 15:34, Dekks Herton a écrit :
>> > > > Hi Everyone,
>> > > >
>> > > > As 5.10.7 was still in unstable 1 added it to my bullseye system
>> via adding
>> > > > SId to sources.list and pulling the image and relevant headers
>> packages. If
>> > > > there is a better or more correct way please advise.
>> > > >
>> > > > Running 5.10.7 AFAIK installs the catpt modules correctly and all
>> the hw
>> > > > associated correctly
>> > > >
>> > > > 1) See aplayL txt file enc 2) GNOME shows a different slider layout
>> > > >
>> > > > However there is still no sound on play back, parsing journalctl it
>> seems
>> > > > the firmware IntcSST2.bin errors out and thus no firmware is loaded.
>> > > >
>> > > > Jun 04 00:49:06 HELIX2NDGEN kernel: intel_catpt INT3438:00:
>> firmware:
>> > > > direct-loading firmware intel/IntcSST2.bin
>> > > > Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00:
>> firmware:
>> > > > direct-loading firmware intel/IntcSST2.bin
>> > > > Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00:
>> firmware ready
>> > > > timeout
>> > > > Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: boot
>> firmware
>> > > > failed: -110
>> > > >
>> > > > I enclose a listing of the intel firmware folder showing
>> IntcSST2.bin is
>> > > > there, Is it the correct firmware?
>> > > >
>> > > > I've googled and cant find any info on this. Does intel have a
>> github for
>> > > > this re-written driver?
>> > > >
>> > > > Can the bug reopened or can you advise any possible solutions?
>> > >
>> > > Do you have firmware-sof-signed installed? It may be needed on your
>> system.
>> >
>> > Reopened the bug for now (at least until the above question is
>> > clarified).
>>
>> Dekks replied to me privately. Those SOF audio firmware aren't going to
>> help in
>> this case since we don't provide support for SOF on Broadwell based
>> platforms.
>> I already mentioned this in [1] but I had totally forgotten that.
>>
>> Dekks, out of curiosity, could you please post the output of 'pacmd
>> list-sinks'?
>>
>> > Regards,
>> > Salvatore
>>
>> Cheers,
>> Vincent
>>
>> [1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=986822#10
>>
>
upload=true=true=
!!
!!ALSA Information Script v 0.5.0
!!

!!Script ran on: Sat Jun  5 08:17:42 UTC 2021


!!Linux Distribution
!!--

Debian GNU/Linux 11 \n \l PRETTY_NAME="Debian GNU/Linux 11 (bullseye)" 
NAME="Debian GNU/Linux" ID=debian HOME_URL="https://www.debian.org/; 
SUPPORT_URL="https://www.debian.org/support; 
BUG_REPORT_URL="https://bugs.debian.org/;


!!DMI Information
!!---

Manufacturer:  LENOVO
Product Name:  20CHS1V908
Product Version:   ThinkPad Helix 2nd
Firmware Version:  N17ETB2W (2.12 )
System SKU:LENOVO_MT_20CH_BU_Think_FM_ThinkPad Helix 2nd
Board Vendor:  LENOVO
Board Name:20CHS1V908


!!ACPI Device Status Information
!!---

/sys/bus/acpi/devices/ACPI0003:00/status 15
/sys/bus/acpi/devices/INT33A1:00/status  15
/sys/bus/acpi/devices/INT33D2:00/status  11
/sys/bus/acpi/devices/INT33D3:00/status  15
/sys/bus/acpi/devices/INT33D4:00/status  15
/sys/bus/acpi/devices/INT33D6:00/status  15
/sys/bus/acpi/devices/INT3400:00/status  15
/sys/bus/acpi/devices/INT3402:00/status  15
/sys/bus/acpi/devices/INT3403:00/status  15
/sys/bus/acpi/devices/INT3403:01/status  15
/sys/bus/acpi/devices/INT3403:02/status  15
/sys/bus/acpi/devices/INT3403:03/status  15
/sys/bus/acpi/devices/INT340F:00/status  15
/sys/bus/acpi/devices/INT3432:00/status  15
/sys/bus/acpi/

Bug#986822: BUG#986822 Broadwell SST CATPT Sound module

2021-06-04 Thread Dekks Herton
Hi Everyone,

As 5.10.7 was still in unstable 1 added it to my bullseye system via adding
SId to sources.list and pulling the image and relevant headers packages. If
there is a better or more correct way please advise.

Running 5.10.7 AFAIK installs the catpt modules correctly and all the hw
associated correctly

1) See aplayL txt file enc 2) GNOME shows a different slider layout

However there is still no sound on play back, parsing journalctl it seems
the firmware IntcSST2.bin errors out and thus no firmware is loaded.

Jun 04 00:49:06 HELIX2NDGEN kernel: intel_catpt INT3438:00: firmware:
direct-loading firmware intel/IntcSST2.bin
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: firmware:
direct-loading firmware intel/IntcSST2.bin
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: firmware ready
timeout
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: boot firmware
failed: -110

I enclose a listing of the intel firmware folder showing IntcSST2.bin is
there, Is it the correct firmware?

I've googled and cant find any info on this. Does intel have a github for
this re-written driver?

Can the bug reopened or can you advise any possible solutions?

Regards
 List of PLAYBACK Hardware Devices 
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 0: System Playback/Capture (*) 
[]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 1: Offload0 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: broadwellrt286 [broadwell-rt286], device 2: Offload1 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
Jun 04 00:49:06 HELIX2NDGEN kernel: intel_catpt INT3438:00: DesignWare DMA 
Controller, 8 channels
Jun 04 00:49:06 HELIX2NDGEN kernel: intel_catpt INT3438:00: firmware: 
direct-loading firmware intel/IntcSST2.bin
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: firmware: 
direct-loading firmware intel/IntcSST2.bin
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: firmware ready 
timeout
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: boot firmware 
failed: -110
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: ASoC: error at 
snd_soc_pcm_component_pm_runtime_get on catpt-platform: -110
Jun 04 00:49:10 HELIX2NDGEN kernel: intel_catpt INT3438:00: ASoC: error at 
snd_soc_pcm_component_pm_runtime_get on catpt-platform: -22
Jun 04 00:49:33 HELIX2NDGEN kernel: intel_catpt INT3438:00: ASoC: error at 
snd_soc_pcm_component_pm_runtime_get on catpt-platform: -22
Jun 04 00:49:34 HELIX2NDGEN kernel: intel_catpt INT3438:00: ASoC: error at 
snd_soc_pcm_component_pm_runtime_get on catpt-platform: -22
Jun 04 00:49:34 HELIX2NDGEN kernel: intel_catpt INT3438:00: ASoC: error at 
snd_soc_pcm_component_pm_runtime_get on catpt-platform: -22
Jun 04 05:00:11 HELIX2NDGEN kernel: Modules linked in: ufs qnx4 hfsplus hfs 
cdrom minix msdos jfs xfs ctr ccm rfcomm snd_seq_dummy snd_hrtimer snd_seq 
snd_usb_audio snd_usbmidi_lib snd_rawmidi snd_seq_device cmac algif_hash 
algif_skcipher af_alg bnep cdc_mbim uvcvideo btusb btrtl videobuf2_vmalloc 
videobuf2_memops btbcm videobuf2_v4l2 videobuf2_common btintel videodev 
bluetooth cdc_ncm cdc_ether usbnet mii cdc_wdm cdc_acm mc jitterentropy_rng 
drbg ansi_cprng ecdh_generic ecc x86_pkg_temp_thermal intel_powerclamp 
kvm_intel kvm irqbypass ghash_clmulni_intel nls_ascii snd_soc_sst_broadwell 
nls_cp437 vfat fat aesni_intel mei_wdt mei_hdcp intel_rapl_msr libaes 
snd_hda_codec_hdmi crypto_simd iwlmvm cryptd glue_helper snd_hda_intel 
snd_intel_dspcfg rapl soundwire_intel mac80211 intel_cstate 
soundwire_generic_allocation soundwire_cadence libarc4 intel_uncore 
snd_soc_catpt snd_soc_acpi_intel_match snd_hda_codec snd_soc_acpi serio_raw 
efi_pstore snd_soc_rt286 wmi_bmof pcspkr snd_soc_rl6347a iwlwifi 
hid_sensor_rotation
/usr/lib/firmware/intel/dsp_fw_bxtn.bin
/usr/lib/firmware/intel/dsp_fw_bxtn_v3366.bin
/usr/lib/firmware/intel/dsp_fw_cnl.bin
/usr/lib/firmware/intel/dsp_fw_cnl_v1191.bin
/usr/lib/firmware/intel/dsp_fw_cnl_v1858.bin
/usr/lib/firmware/intel/dsp_fw_glk.bin
/usr/lib/firmware/intel/dsp_fw_glk_v3366.bin
/usr/lib/firmware/intel/dsp_fw_kbl.bin
/usr/lib/firmware/intel/dsp_fw_kbl_v3402.bin
/usr/lib/firmware/intel/dsp_fw_kbl_v3420.bin
/usr/lib/firmware/intel/dsp_fw_release.bin
/usr/lib/firmware/intel/dsp_fw_release_v3402.bin

Bug#986822: installation-reports: Debian 11 Breaks Analague sound on Thinkpad Helix 2nd Gen

2021-04-12 Thread dekks herton
Package: installation-reports
Severity: important
X-Debbugs-Cc: dekkz...@gmail.com

(Please provide enough information to help the Debian
maintainers evaluate the report efficiently - e.g., by filling
in the sections below.)

Boot method: usb key
Image version: https://cdimage.debian.org/cdimage/unofficial/non-free/cd-
including-firmware/weekly-builds/amd64/iso-dvd/firmware-testing-amd64-DVD-1.iso
Date: <31/03/2021>

Machine: Thinkpad Helix 2nd Gen
Partitions: 

Filesystem   Type 1K-blocks Used Available Use%
Mounted on
udev devtmpfs   39808240   3980824   0%
/dev
tmpfstmpfs   804352 2176802176   1%
/run
/dev/mapper/HELIX2NDGEN--vg-root ext4  28703652 11950108  15272432  44% /
tmpfstmpfs  4021748   132976   3888772   4%
/dev/shm
tmpfstmpfs 51204  5116   1%
/run/lock
/dev/sda2ext2483946   253033205928  56%
/boot
/dev/sda1vfat52324813344509904   3%
/boot/efi
/dev/mapper/HELIX2NDGEN--vg-home ext4 177483612  2645548 165752728   2%
/home
tmpfstmpfs   804348  164804184   1%
/run/user/1000

Base System Installation Checklist:
[O] = OK, [E] = Error (please elaborate below), [ ] = didn't try it

Initial boot:   [O]
Detect network card:[O]
Configure network:  [O]
Detect media:   [O]
Load installer modules: [O]
Clock/timezone setup:   [O]
User/password setup:[O]
Detect hard drives: [O]
Partition hard drives:  [O]
Install base system:[O]
Install tasks:  [O]
Install boot loader:[O]
Overall install:[E]

Comments/Problems:

No analogue sound on Tablet from Broadwell-U from intel smart sound chipset -
hw works on Buster but breaks on Bullseye
Card0 on Buster no longer detected on Bullseye

Tried installing Intel SOF drivers/firmware to no effect, forcing snd_hda_intel
via modprobe conf doesn't work either
Broadwell-U works eith with HDA or SOF drivers theoretically.
There is record of a kernel compilation flag to enable SOF functionality
SND_SOC_SOF_BROADWELL_SUPPORT=Y breaking legacy and snd_hda_intel too.

inxi Audio output

Device-1: Intel Broadwell-U Audio vendor: Lenovo driver: snd_hda_intel
  v: kernel bus ID: 00:03.0
  Device-2: Realtek USB Audio type: USB driver: snd-usb-audio
  bus ID: 1-3.3:5
  Sound Server: ALSA v: k5.10.0-5-amd64

Buster aplay log

linux-image-4.19.0-14-amd644.19.171-2

 List of PLAYBACK Hardware Devices 
card 0: broadwellrt286 [broadwell-rt286], device 0: System Playback/Capture (*)
[]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: broadwellrt286 [broadwell-rt286], device 1: Offload0 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: broadwellrt286 [broadwell-rt286], device 2: Offload1 Playback (*) []
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 2: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

Bullseye aplay log

linux-image-5.10.0-4-amd64 5.10.19-1

 List of PLAYBACK Hardware Devices 
card 0: HDMI [HDA Intel HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 7: HDMI 1 [HDMI 1]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 8: HDMI 2 [HDMI 2]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 9: HDMI 3 [HDMI 3]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 0: HDMI [HDA Intel HDMI], device 10: HDMI 4 [HDMI 4]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: Audio [USB Audio], device 0: USB Audio [USB Audio]
  Subdevices: 1/1
  Subdevice #0: subdevice #0