[PW_SID:1140564] [v2] ASoC: spacemit: advertise only DMA-backed DAI streams - #2413
[PW_SID:1140564] [v2] ASoC: spacemit: advertise only DMA-backed DAI streams#2413linux-riscv-bot wants to merge 2 commits into
Conversation
The static DAI template initializes both playback and capture stream capabilities before dma-names is examined. As a result, snd_soc_dai_stream_valid() considers both directions valid even when the device only provides a single DMA channel. Move the playback and capture capability initialization into spacemit_i2s_init_dai(), where it is performed only for the stream directions backed by a corresponding DMA channel. This preserves the existing capabilities for devices with both "tx" and "rx" DMA channels, while preventing unsupported stream directions from being advertised. Initialize rate_min and rate_max together with the other stream capabilities to preserve the existing rate constraints. Fixes: fce2174 ("ASoC: spacemit: add i2s support for K1 SoC") Signed-off-by: bui duc phuc <phucduc.bui@gmail.com> Signed-off-by: Linux RISC-V bot <linux.riscv.bot@gmail.com>
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
|
Patch 1: "[v2] ASoC: spacemit: advertise only DMA-backed DAI streams" |
abf8962 to
9fa746d
Compare
PR for series 1140564 applied to workflow__riscv__fixes
Name: [v2] ASoC: spacemit: advertise only DMA-backed DAI streams
URL: https://patchwork.kernel.org/project/linux-riscv/list/?series=1140564
Version: 2