Re: [Alsa-user] Loading sofhdadsp vs. loading sofsoundwire [Dell XPS 9320, Ubuntu vs. Alpine]

2023-08-08 Thread Kai Vehmanen
Hi,

On Wed, 19 Jul 2023, Nico Schottelius via Alsa-user wrote:

> I tried to use sof-v2.5 and after adding the module parameters
> 
> options snd_sof_pci ipc_type=1
> options snd_sof_intel_hda_common sof_use_tplg_nhlt=1

thank you for the report.

SOF 2.5 (and SOF2.6 still) is opt-in for this generation of hardware and 
we only provide DSP topologies for a limited set of devices (refer to our 
readme at 
https://github.com/thesofproject/sof-bin/blob/main/v2.5.x/README.md ). In 
short, you need a laptop with a HDA (not Soundwire) codec to use this 
release of SOF.

.. for SoundWire enabled systems, we recommend sticking to the stable 
SOF2.2 release (v2.2.6 the latest). This is also guidance we have given to 
distributions.

I know this is less than ideal, but the recent SOF releases require a new 
version of the DSP topology description, and we have limited options to 
redo (and test) the descriptions for older hardware, so we've had to pick 
a subset of hardware we support in these opt-in binaries.

> and placing sof-2.5 in the avs directory [0]
> 
> The new error I get is:
[...]
> [  219.373140] sof-audio-pci-intel-tgl :00:1f.3: DSP detected with PCI 
> class/subclass/prog-if info 0x040100
> [  219.373155] sof-audio-pci-intel-tgl :00:1f.3: SoundWire enabled on 
> CannonLake+ platform, using SOF driver

This reveals your system has a SoundWire audio codec and unfortunately
not covered by SOF2.5 release.

Br, Kai


___
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Loading sofhdadsp vs. loading sofsoundwire [Dell XPS 9320, Ubuntu vs. Alpine]

2023-07-19 Thread Nico Schottelius via Alsa-user


Hello^2,

I tried to use sof-v2.5 and after adding the module parameters

options snd_sof_pci ipc_type=1
options snd_sof_intel_hda_common sof_use_tplg_nhlt=1

and placing sof-2.5 in the avs directory [0]

The new error I get is:

[  219.373140] sof-audio-pci-intel-tgl :00:1f.3: DSP detected with PCI 
class/subclass/prog-if info 0x040100
[  219.373155] sof-audio-pci-intel-tgl :00:1f.3: SoundWire enabled on 
CannonLake+ platform, using SOF driver
[  219.373316] sof-audio-pci-intel-tgl :00:1f.3: overriding default IPC 0 
to requested 1
[  219.373451] sof-audio-pci-intel-tgl :00:1f.3: DSP detected with PCI 
class/subclass/prog-if 0x040100
[  219.373504] sof-audio-pci-intel-tgl :00:1f.3: bound :00:02.0 (ops 
i915_exit [i915])
[  219.379266] sof-audio-pci-intel-tgl :00:1f.3: use msi interrupt mode
[  219.390516] sof-audio-pci-intel-tgl :00:1f.3: hda codecs found, mask 4
[  219.399758] sof-audio-pci-intel-tgl :00:1f.3: Loaded firmware library: 
ADSPFW, version: 2.5.0.1
[  219.541654] sof-audio-pci-intel-tgl :00:1f.3: Booted firmware version: 
2.5.0.1
[  222.641005] soundwire sdw-master-0: clock stop prep/de-prep failed slave:15
[  222.641042] soundwire_intel soundwire_intel.link.0: prepare clock stop 
failed -110
[  222.641052] soundwire_intel soundwire_intel.link.0: intel_stop_bus: cannot 
stop clock: -110

With the typical aplay error:

sun:/lib/firmware/intel/avs# aplay -l
aplay: device_list:277: no soundcards found...

Digging deeper...

Nico


[0]
sun:/lib/firmware/intel/avs# ls -l . ../avs-tplg
lrwxrwxrwx 1 root root   14 Jul 19 22:42 ../avs-tplg -> sof-tplg-v2.5/

.:
total 12
lrwxrwxrwx 1 root root   15 Jul 19 22:47 adl -> ../sof-v2.5/adl
lrwxrwxrwx 1 root root   17 Jul 19 22:47 adl-n -> ../sof-v2.5/adl-n
drwxr-xr-x 2 root root 4096 Jul 13 18:30 apl
drwxr-xr-x 2 root root 4096 Jul 13 18:30 cnl
lrwxrwxrwx 1 root root   15 Jul 19 22:47 rpl -> ../sof-v2.5/rpl
drwxr-xr-x 2 root root 4096 Jul 13 18:30 skl
lrwxrwxrwx 1 root root   15 Jul 19 22:47 tgl -> ../sof-v2.5/tgl
sun:/lib/firmware/intel/avs#



Nico Schottelius  writes:

> Hello again,
>
> I have just upgrade to linux 6.4.3-1-edge and now the error is
> different, no soundcard is detected anymore by aplay -l.
>
> I have attached the alsainfo output and if anyone has a pointer on what
> is wrong, I'd appreciate a hint in the right direction.
>
> Best regards,
>
> Nico
>
> [2. application/octet-stream; alsainfo-alpine-6.4.3-1-edge]...
>
>
>
>
> Nico Schottelius via Alsa-user  writes:
>
>> Hello,
>>
>> I have a curious problem on a Dell XPS 9320:
>>
>> When loading Ubuntu with kernel 5.19.0-32 on it, it selects the
>> sof-soundwire subsystem and sound works.
>>
>> When I load Alpine Linux with kernel 6.1.38 on it, it selects the
>> sof-hda-dsp subsystem using snd_soc_skl_hda_dsp and no speaker output is
>> visible (alsainfo, config at [1]). This is using sof 2:0:0-b678a.
>>
>> Both systems have alseucm installed, I tried to blacklist
>> snd_soc_skl_hda_dsp on Alpine linux, but that would lead to no
>> soundscards been seen at all (info at [0]).
>> This is using sof 2:2:0-57864.
>>
>> On Alpine Linux there is also the line in dmesg saying:
>> "No SoundWire machine driver found", I have a feeling that might be a
>> hint on what is wrong.
>>
>> Does anyone have a hint on what might be wrong on the Alpine Linux
>> system?
>>
>> Dmesg, lspci and friends are also available at [2].
>>
>> Best regards,
>>
>> Nico
>>
>>
>>
>> [0]
>> https://www.nico.schottelius.org/temp/xps-9320/alsa-info.txt.FyT0oV3eoH
>> https://www.nico.schottelius.org/temp/xps-9320/config-alpine-6.1.38-5-lts
>> https://www.nico.schottelius.org/temp/xps-9320/aplay-l-alpine-lts
>>
>> [1]
>> https://www.nico.schottelius.org/temp/xps-9320/alsainfo-ubuntu
>> https://www.nico.schottelius.org/temp/xps-9320/config-5.19.0-32-generic
>> https://www.nico.schottelius.org/temp/xps-9320/aplay-l-ubuntu
>>
>> [2]
>> https://www.nico.schottelius.org/temp/xps-9320/


--
Sustainable and modern Infrastructures by ungleich.ch


___
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user


Re: [Alsa-user] Loading sofhdadsp vs. loading sofsoundwire [Dell XPS 9320, Ubuntu vs. Alpine]

2023-07-19 Thread Nico Schottelius via Alsa-user

Hello again,

I have just upgrade to linux 6.4.3-1-edge and now the error is
different, no soundcard is detected anymore by aplay -l.

I have attached the alsainfo output and if anyone has a pointer on what
is wrong, I'd appreciate a hint in the right direction.

Best regards,

Nico



alsainfo-alpine-6.4.3-1-edge
Description: Binary data



Nico Schottelius via Alsa-user  writes:

> Hello,
>
> I have a curious problem on a Dell XPS 9320:
>
> When loading Ubuntu with kernel 5.19.0-32 on it, it selects the
> sof-soundwire subsystem and sound works.
>
> When I load Alpine Linux with kernel 6.1.38 on it, it selects the
> sof-hda-dsp subsystem using snd_soc_skl_hda_dsp and no speaker output is
> visible (alsainfo, config at [1]). This is using sof 2:0:0-b678a.
>
> Both systems have alseucm installed, I tried to blacklist
> snd_soc_skl_hda_dsp on Alpine linux, but that would lead to no
> soundscards been seen at all (info at [0]).
> This is using sof 2:2:0-57864.
>
> On Alpine Linux there is also the line in dmesg saying:
> "No SoundWire machine driver found", I have a feeling that might be a
> hint on what is wrong.
>
> Does anyone have a hint on what might be wrong on the Alpine Linux
> system?
>
> Dmesg, lspci and friends are also available at [2].
>
> Best regards,
>
> Nico
>
>
>
> [0]
> https://www.nico.schottelius.org/temp/xps-9320/alsa-info.txt.FyT0oV3eoH
> https://www.nico.schottelius.org/temp/xps-9320/config-alpine-6.1.38-5-lts
> https://www.nico.schottelius.org/temp/xps-9320/aplay-l-alpine-lts
>
> [1]
> https://www.nico.schottelius.org/temp/xps-9320/alsainfo-ubuntu
> https://www.nico.schottelius.org/temp/xps-9320/config-5.19.0-32-generic
> https://www.nico.schottelius.org/temp/xps-9320/aplay-l-ubuntu
>
> [2]
> https://www.nico.schottelius.org/temp/xps-9320/


--
Sustainable and modern Infrastructures by ungleich.ch
___
Alsa-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/alsa-user