diff options
author | Cezary Rojewski <cezary.rojewski@intel.com> | 2025-01-14 21:42:39 +0300 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2025-01-15 10:57:18 +0300 |
commit | d80c400f888fd14533c5ecda45340b0179f894d5 (patch) | |
tree | cbbd00838763df18c82fc4db3778efaac39466d0 /scripts/gdb/linux/utils.py | |
parent | 384669921779806105c56751abff41fa0127f93a (diff) | |
download | linux-d80c400f888fd14533c5ecda45340b0179f894d5.tar.xz |
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>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions