linux-yocto/sound/hda
Cezary Rojewski d80c400f88 ALSA: hda: Transfer firmware in two chunks
As per specification, SDxLVI shall be at least 1 i.e.: two chunks to
perform a valid transfer. This is true for the PCM transfer code but
not firmware-transfer one.

Technical background:
- the LVI > 0 rule shall be obeyed in PCM transfer
- HW permits LVI == 0 when transfer is SW-controlled (SPIB)
- FW download is not a PCM transfer and is SW-controlled (SPIB)

The above is the fundament which AudioDSP firmware loading functions
have been built upon and worked since 2016. The presented changes are to
align the loading flows and avoid rising more questions in the future.

Achieve the goal by splitting snd_hdac_stream_setup_periods() into
substream-dependent and -independent part. Let snd_hdac_dsp_prepare()
utilize the latter so that both DSP-loading and PCM flows utilize same
BLDE setup loop which already takes care of cutting the buffer based on
azx_dev->period_bytes.

Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20250114184239.120002-1-cezary.rojewski@intel.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2025-01-15 08:57:18 +01:00
..
ext ALSA: hda: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:42 +02:00
array.c
hda_bus_type.c driver core: have match() callback in struct bus_type take a const * 2024-07-03 15:16:54 +02:00
hdac_bus.c
hdac_component.c ALSA: hda: Simplify with str_enable_disable() 2025-01-07 17:35:36 +01:00
hdac_controller.c ALSA: hda: hdac_controller: Implement support for use_pio_for_commands mode 2024-04-18 08:38:54 +02:00
hdac_device.c ALSA: hda/senarytech: add senarytech codec support 2024-06-18 11:59:08 +02:00
hdac_i915.c ALSA: hda: Skip i915 initialization on CNL/LKF-based platforms 2024-03-04 09:17:02 +01:00
hdac_regmap.c ALSA: hda: Use regcache_reg_cached() rather than open coding 2023-07-18 15:05:12 +01:00
hdac_stream.c ALSA: hda: Transfer firmware in two chunks 2025-01-15 08:57:18 +01:00
hdac_sysfs.c ALSA: hda: make kobj_type structure constant 2023-02-11 09:37:42 +01:00
hdmi_chmap.c ALSA: hda: Add input value sanity checks to HDMI channel map controls 2024-06-18 12:00:19 +02:00
intel-dsp-config.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
intel-nhlt.c ALSA: hda: intel-nhlt: add intel_nhlt_ssp_device_type() function 2024-03-22 12:40:46 +01:00
intel-sdw-acpi.c module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
Kconfig ALSA: hda: Allow the default preallocation for x86 again 2024-09-07 10:42:03 +02:00
local.h
Makefile ALSA: hda: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:42 +02:00
trace.c
trace.h tracing/treewide: Remove second parameter of __assign_str() 2024-05-22 20:14:47 -04:00