[PATCH] ASoC: fsl_xcvr: update platform driver name

2025-05-16 Thread Shengjiu Wang
XCVR driver is not only used for i.MX8MP platform, so update driver name to make it more generic. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index 83aea341c1b6

[PATCH 0/4] ASoC: fsl_sai: add several improvements

2025-03-28 Thread Shengjiu Wang
Add several improvements for the sai interface. 1.allow to set mclk rate with zero clk_id for master mode 2.add xlate_tdm_slot_mask() callback to avoid channel constrain 3.separate 'is_dsp_mode' for tx and rx 4.separate set_tdm_slot() for tx and rx Shengjiu Wang (4): ASoC: fsl_sai

[PATCH 4/4] ASoC: fsl_sai: separate set_tdm_slot() for tx and rx

2025-03-28 Thread Shengjiu Wang
The transmitter and receiver of SAI can be used for different slot number and slot width configuration, so refine fsl_sai_set_dai_tdm_slot(), add fsl_sai_set_dai_tdm_slot_tx() for tx and fsl_sai_set_dai_tdm_slot_rx() for rx. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 45

[PATCH 3/4] ASoC: fsl_sai: separate 'is_dsp_mode' for tx and rx

2025-03-28 Thread Shengjiu Wang
The transmitter and receiver of SAI can be used for different dsp modes, then 'is_dsp_mode' needs to be separated. Expand 'is_dsp_mode' to array 'is_dsp_mode[]' to support different configuration of tx and rx. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai

[PATCH 2/4] ASoC: fsl_sai: add xlate_tdm_slot_mask() callback

2025-03-28 Thread Shengjiu Wang
so add an empty xlate_tdm_slot_mask() callback to avoid the channel constraint in __soc_pcm_hw_params(). Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 9 + 1 file changed, 9 insertions(+) diff --git a/sound/soc/fsl/fsl_sai.c b/sound/soc/fsl/fsl_sai.c index bcb46a0b5e68..9a450f

[PATCH 1/4] ASoC: fsl_sai: allow to set mclk rate with zero clk_id

2025-03-28 Thread Shengjiu Wang
n to be if clk_id is zero, then set the FSL_SAI_CLK_MAST1's rate. This would not change the original function for master mode. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 28 ++-- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/sound/so

[PATCH] ASoC: fsl_asrc_dma: get codec or cpu dai from backend

2025-03-18 Thread Shengjiu Wang
With audio graph card, original cpu dai is changed to codec device in backend, so if cpu dai is dummy device in backend, get the codec dai device, which is the real hardware device connected. The specific case is ASRC->SAI->AMIX->CODEC. Signed-off-by: Shengjiu Wang --- soun

[PATCH 4/4] ASoC: fsl_audmix: register card device depends on 'dais' property

2025-02-26 Thread Shengjiu Wang
In order to make the audmix device linked by audio graph card, make 'dais' property to be optional. If 'dais' property exists, then register the imx-audmix card driver. otherwise, it should be linked by audio graph card. Signed-off-by: Shengjiu Wang --- sound/soc/f

[PATCH 3/4] ASoC: dt-bindings: fsl,audmix: make 'dais' property to be optional

2025-02-26 Thread Shengjiu Wang
Make 'dais' property to be optional. When there is no 'dais' property, driver won't register the card, dts should have audio graph card node for linking this device. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,audmix.yaml | 1 - 1

[PATCH 2/4] ASoC: dt-bindings: fsl,audmix: Document audio graph port

2025-02-26 Thread Shengjiu Wang
This device can be used in conjunction with audio-graph-card to provide an endpoint for binding with the other side of the audio link. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,audmix.yaml | 60 +++ 1 file changed, 60 insertions(+) diff --git a

[PATCH 1/4] ASoC: dt-bindings: fsl,sai: Document audio graph port

2025-02-26 Thread Shengjiu Wang
This device can be used in conjunction with audio-graph-card to provide an endpoint for binding with the other side of the audio link. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,sai.yaml| 51 +++ 1 file changed, 51 insertions(+) diff --git a

[PATCH 0/4] ASoC: fsl_audmix: support audio graph card for audmix

2025-02-26 Thread Shengjiu Wang
Change 'dais' property to be optional, that fsl_audmix device can be linked with SAI device by audio graph card. Shengjiu Wang (4): ASoC: dt-bindings: fsl,sai: Document audio graph port ASoC: dt-bindings: fsl,audmix: Document audio graph port ASoC: dt-bindings: fsl,audmix:

Re: [PATCH v3] ASoC: fsl: Rename stream name of SAI DAI driver

2025-02-20 Thread Shengjiu Wang
> receiver") > Signed-off-by: Chancel Liu Acked-by: Shengjiu Wang Best regards Shengjiu Wang > --- > - changes in v3 > Squash two fix patches in one commit > > sound/soc/fsl/fsl_sai.c| 6 +++--- > sound/soc/fsl/imx-audmix.c | 4 ++-- > 2 files changed, 5 inser

[PATCH v3 2/2] ASoC: imx-card: Add playback_only or capture_only support

2025-02-16 Thread Shengjiu Wang
With the DPCM case, the backend only support capture or playback, then the linked frontend can only support capture or playback, but frontend can't automatically enable only capture or playback, it needs the input from dt-binding. Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Rev

[PATCH v3 1/2] ASoC: dt-bindings: imx-card: Add playback-only and capture-only property

2025-02-16 Thread Shengjiu Wang
Refer to audio graph card, add playback-only and capture-only property for imx-audio-card.yaml for the case that only playback or capture is supported. Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta Reviewed-by: Iuliana Prodan --- .../devicetree/bindings/sound/imx-audio-card.yaml

[PATCH v3 0/2] ASoC: imx-card: support playback or capture only

2025-02-16 Thread Shengjiu Wang
changes in v2: - wrap at 75 chars for commit messages Shengjiu Wang (2): ASoC: dt-bindings: imx-card: Add playback-only and capture-only property ASoC: imx-card: Add playback_only or capture_only support .../devicetree/bindings/sound/imx-audio-card.yaml | 14 ++ sound/soc

Re: [PATCH] ASoC: fsl_sai: Rename stream name of dai driver

2025-02-13 Thread Shengjiu Wang
t; [8.839917] fsl-asoc-card sound-wm8960: ASoC: source widget CPU-Capture > overwritten > > Use different stream names to avoid such warnings. Only this change should cause issue for imx-audmix driver. Best regards Shengjiu Wang > > Fixes: 15c958390460 ("ASoC: fsl_sai: Ad

[PATCH v2 1/2] ASoC: dt-bindings: imx-card: Add playback-only and capture-only property

2025-02-13 Thread Shengjiu Wang
Refer to audio graph card, add playback-only and capture-only property for imx-audio-card.yaml for the case that only playback or capture is supported. Signed-off-by: Shengjiu Wang Reviewed-by: Daniel Baluta --- .../devicetree/bindings/sound/imx-audio-card.yaml | 8 1 file

[PATCH v2 2/2] ASoC: imx-card: Add playback_only or capture_only support

2025-02-13 Thread Shengjiu Wang
With the DPCM case, the backend only support capture or playback, then the linked frontend can only support capture or playback, but frontend can't automatically enable only capture or playback, it needs the input from dt-binding. Signed-off-by: Shengjiu Wang Reviewed-by: Daniel B

[PATCH v2 0/2] ASoC: imx-card: support playback or capture only

2025-02-13 Thread Shengjiu Wang
Be similar to audio graph card, support playback or capture only for imx-audio-card. imx-card can't directly refer to audio-graph-port.yaml, because it is not based on 'ports'. Add playback-only and capture-only property directly changes in v2: - wrap at 75 chars for commit mes

[PATCH v2] ASoC: imx-audmix: remove cpu_mclk which is from cpu dai device

2025-02-12 Thread Shengjiu Wang
, rate constraint may be specific for each platform, which is not necessary for machine driver, so remove it. Fixes: b86ef5367761 ("ASoC: fsl: Add Audio Mixer machine driver") Signed-off-by: Shengjiu Wang --- changes in v2: - remove cpu_mclk and related constraint setting sound/soc/fsl/im

[PATCH] ASoC: imx-audmix: release cpu_mclk clock at failure

2025-02-12 Thread Shengjiu Wang
chine driver") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-audmix.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sound/soc/fsl/imx-audmix.c b/sound/soc/fsl/imx-audmix.c index 231400661c90..1b16470b2f7c 100644 --- a/sound/soc/fsl/imx-audmix.c +++ b/sound/soc/fsl/imx-audmix.c

Re: [PATCH 1/2] ASoC: dt-bindings: imx-card: Add playback-only and capture-only property

2025-02-11 Thread Shengjiu Wang
On Tue, Feb 11, 2025 at 11:32 PM Frank Li wrote: > > On Tue, Feb 11, 2025 at 11:57:36AM +0800, Shengjiu Wang wrote: > > Refer to audio graph card, add playback-only and capture-only property > > for imx-audio-card.yaml for the case that only playback or capture > > is s

Re: [PATCH 2/2] ASoC: imx-card: Add playback_only or capture_only support

2025-02-11 Thread Shengjiu Wang
On Tue, Feb 11, 2025 at 11:34 PM Frank Li wrote: > > On Tue, Feb 11, 2025 at 11:57:37AM +0800, Shengjiu Wang wrote: > > With the DPCM case, the backend only support capture or > > playback, then the linked frontend can only support > > capture or playback, but fron

[PATCH 0/2] ASoC: imx-card: support playback or capture only

2025-02-10 Thread Shengjiu Wang
Be similar to audio graph card, support playback or capture only for imx-audio-card. Shengjiu Wang (2): ASoC: dt-bindings: imx-card: Add playback-only and capture-only property ASoC: imx-card: Add playback_only or capture_only support .../devicetree/bindings/sound/imx-audio-card.yaml

[PATCH 2/2] ASoC: imx-card: Add playback_only or capture_only support

2025-02-10 Thread Shengjiu Wang
With the DPCM case, the backend only support capture or playback, then the linked frontend can only support capture or playback, but frontend can't automatically enable only capture or playback, it needs the input from dt-binding. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-card.

[PATCH 1/2] ASoC: dt-bindings: imx-card: Add playback-only and capture-only property

2025-02-10 Thread Shengjiu Wang
Refer to audio graph card, add playback-only and capture-only property for imx-audio-card.yaml for the case that only playback or capture is supported. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/imx-audio-card.yaml | 8 1 file changed, 8 insertions(+) diff

[PATCH] ASoC: fsl_micfil: Add decimation filter bypass mode support

2025-02-05 Thread Shengjiu Wang
: Shengjiu Wang --- sound/soc/fsl/fsl_micfil.c | 49 ++ sound/soc/fsl/fsl_micfil.h | 1 + 2 files changed, 45 insertions(+), 5 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index fa4136683392..73d8910a6188 100644 --- a/sound/soc

[PATCH 1/2] ASoC: fsl_asrc_m2m: only handle pairs for m2m in the suspend

2025-01-20 Thread Shengjiu Wang
"pair->dma_buffer" as a flag for memory to memory case, when it is allocated, handle the suspend operation for the related pairs. Fixes: 24a01710f627 ("ASoC: fsl_asrc_m2m: Add memory to memory function") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_asrc_m2m.c | 2 +- 1 fil

[PATCH 2/2] ASoC: fsl_asrc_m2m: return error value in asrc_m2m_device_run()

2025-01-20 Thread Shengjiu Wang
The asrc_m2m_device_run() function is the main process function of converting, the error need to be returned to user, that user can handle error case properly. Fixes: 24a01710f627 ("ASoC: fsl_asrc_m2m: Add memory to memory function") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_

[PATCH 0/2] ASoC: fsl: two fixes for asrc memory to memory

2025-01-20 Thread Shengjiu Wang
1. Fix the suspend failure for memory to peripheral function. 2. Return error value for processing function. Shengjiu Wang (2): ASoC: fsl_asrc_m2m: only handle pairs for m2m in the suspend ASoC: fsl_asrc_m2m: return error value in asrc_m2m_device_run() sound/soc/fsl/fsl_asrc_m2m.c | 16

[PATCH 2/2] ASoC: dt-bindings: fsl,micfil: Add compatible string for i.MX943 platform

2025-01-14 Thread Shengjiu Wang
Add compatible string "fsl,imx943-micfil" for i.MX943 platform. The definition of register map and some register bit map is different on the i.MX943 platform. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,micfil.yaml | 1 + 1 file changed, 1 insertio

[PATCH 1/2] ASoC: fsl_micfil: Add i.MX943 platform support

2025-01-14 Thread Shengjiu Wang
. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_micfil.c | 98 ++ sound/soc/fsl/fsl_micfil.h | 2 +- 2 files changed, 78 insertions(+), 22 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index e908cfb594ab..1075598a6647

[PATCH 0/2] ASoC: fsl: Support micfil on i.MX943

2025-01-14 Thread Shengjiu Wang
On i.MX943, the FIFO data address is changed and the bit width of CICOSR is changed. Add a new compatible string and update driver for these changes. Shengjiu Wang (2): ASoC: fsl_micfil: Add i.MX943 platform support ASoC: dt-bindings: fsl,micfil: Add compatible string for i.MX943 platform

[PATCH 1/2] ASoC: fsl_mqs: Add i.MX943 platform support

2025-01-13 Thread Shengjiu Wang
-by: Shengjiu Wang --- sound/soc/fsl/fsl_mqs.c | 28 1 file changed, 28 insertions(+) diff --git a/sound/soc/fsl/fsl_mqs.c b/sound/soc/fsl/fsl_mqs.c index 0513e9e8402e..e34e5ea98de5 100644 --- a/sound/soc/fsl/fsl_mqs.c +++ b/sound/soc/fsl/fsl_mqs.c @@ -410,12 +410,40

[PATCH 2/2] ASoC: dt-bindings: fsl,mqs: Add compatible string for i.MX943 platform

2025-01-13 Thread Shengjiu Wang
compatible strings are "fsl,imx943-aonmix-mqs", "fsl,imx943-wakeupmix-mqs". Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,mqs.yaml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Documentation/devicetree/bindings/sound/fsl,mqs.yaml b/Docu

[PATCH 0/2] ASoC: fsl: Support MQS on i.MX943

2025-01-13 Thread Shengjiu Wang
There are two MQS instances on the i.MX943 platform. The definition of bit positions in the control register are different. In order to support these MQS modules, define two compatible strings to distinguish them. Shengjiu Wang (2): ASoC: fsl_mqs: Add i.MX943 platform support ASoC: dt

[PATCH] ASoC: fsl_asrc_m2m: force cast for snd_pcm_format_t type

2024-12-17 Thread Shengjiu Wang
: sparse:got restricted snd_pcm_format_t [assigned] [usertype] k Fixes: 24a01710f627 ("ASoC: fsl_asrc_m2m: Add memory to memory function") Reported-by: kernel test robot Closes: https://lore.kernel.org/oe-kbuild-all/202412180043.paa4t4sq-...@intel.com/ Signed-off-by: Shengjiu Wang

Re: [PATCH v7 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-12-12 Thread Shengjiu Wang
On Thu, Dec 12, 2024 at 7:45 PM Mark Brown wrote: > > On Thu, Dec 12, 2024 at 03:45:07PM +0800, Shengjiu Wang wrote: > > Implement the ASRC memory to memory function using > > the compress framework, user can use this function with > > compress ioctl interface. > >

[PATCH v7 5/6] ASoC: fsl_asrc: register m2m platform device

2024-12-11 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_asrc.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl

[PATCH v7 6/6] ASoC: fsl_easrc: register m2m platform device

2024-12-11 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl

[PATCH v7 1/6] ALSA: compress: Add output rate and output format support

2024-12-11 Thread Shengjiu Wang
add 'src_d' in union snd_codec_options structure. These are mainly used for capbility query. Signed-off-by: Jaroslav Kysela Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela Acked-by: Vinod Koul --- include/uapi/sound/compress_params.h | 23 +-- 1 file changed, 21 inser

[PATCH v7 2/6] ASoC: fsl_asrc: define functions for memory to memory usage

2024-12-11 Thread Shengjiu Wang
output length according to input length m2m_get_maxburst: burst size for dma m2m_pair_suspend: suspend function of pair, optional. m2m_pair_resume: resume function of pair get_output_fifo_size: get remaining data size in FIFO Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc

[PATCH v7 3/6] ASoC: fsl_easrc: define functions for memory to memory usage

2024-12-11 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 228 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v7 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-12-11 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the compress framework, user can use this function with compress ioctl interface. This feature can be shared by ASRC and EASRC drivers Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/Kconfig | 2 + sound

[PATCH v7 0/6] ASoC: fsl: add memory to memory function for ASRC

2024-12-11 Thread Shengjiu Wang
ASRC_RATIO_MOD in this version because it uses .set_metadata() Will wait Jaroslav's update or other better method in the future. - Address some comments from Pierre. changes in v2: - Remove the changes in compress API - drop the SNDRV_COMPRESS_SRC_RATIO_MOD - drop the SND_AUDIOCODEC_SRC an

Re: [PATCH v6 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-12-11 Thread Shengjiu Wang
On Wed, Dec 11, 2024 at 11:28 PM Mark Brown wrote: > > On Wed, Dec 11, 2024 at 11:08:47AM +0800, Shengjiu Wang wrote: > > Implement the ASRC memory to memory function using > > the compress framework, user can use this function with > > compress ioctl interface. > >

[PATCH v6 3/6] ASoC: fsl_easrc: define functions for memory to memory usage

2024-12-10 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 228 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v6 6/6] ASoC: fsl_easrc: register m2m platform device

2024-12-10 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl

[PATCH v6 1/6] ALSA: compress: Add output rate and output format support

2024-12-10 Thread Shengjiu Wang
add 'src_d' in union snd_codec_options structure. These are mainly used for capbility query. Signed-off-by: Jaroslav Kysela Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela Acked-by: Vinod Koul --- include/uapi/sound/compress_params.h | 23 +-- 1 file changed, 21 inser

[PATCH v6 5/6] ASoC: fsl_asrc: register m2m platform device

2024-12-10 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_asrc.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl

[PATCH v6 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-12-10 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the compress framework, user can use this function with compress ioctl interface. This feature can be shared by ASRC and EASRC drivers Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/Kconfig | 1 + sound

[PATCH v6 2/6] ASoC: fsl_asrc: define functions for memory to memory usage

2024-12-10 Thread Shengjiu Wang
output length according to input length m2m_get_maxburst: burst size for dma m2m_pair_suspend: suspend function of pair, optional. m2m_pair_resume: resume function of pair get_output_fifo_size: get remaining data size in FIFO Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc

[PATCH v6 0/6] ASoC: fsl: add memory to memory function for ASRC

2024-12-10 Thread Shengjiu Wang
ethod in the future. - Address some comments from Pierre. changes in v2: - Remove the changes in compress API - drop the SNDRV_COMPRESS_SRC_RATIO_MOD - drop the SND_AUDIOCODEC_SRC and struct snd_dec_src - define private metadata key value ASRC_OUTPUT_FORMAT/ASRC_OUTPUT_RATE/ASRC_RATIO_MOD Shengji

Re: [PATCH 0/4] Add function to constrain rates

2024-12-05 Thread Shengjiu Wang
; rates according to different clock sources. > > In ASoC drivers switch to this new function. Acked-by: Shengjiu Wang Best regards Shengjiu Wang > > Chancel Liu (4): > ASoC: fsl_utils: Add function to constrain rates > ASoC: fsl_micfil: Switch to common sample rate constraint f

[PATCH v5 RESEND 3/6] ASoC: fsl_easrc: define functions for memory to memory usage

2024-12-03 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 228 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v5 RESEND 0/6] ASoC: fsl: add memory to memory function for ASRC

2024-12-03 Thread Shengjiu Wang
ESS_SRC_RATIO_MOD - drop the SND_AUDIOCODEC_SRC and struct snd_dec_src - define private metadata key value ASRC_OUTPUT_FORMAT/ASRC_OUTPUT_RATE/ASRC_RATIO_MOD Shengjiu Wang (6): ALSA: compress: Add output rate and output format support ASoC: fsl_asrc: define functions for memory to memory us

[PATCH v5 RESEND 6/6] ASoC: fsl_easrc: register m2m platform device

2024-12-03 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl

[PATCH v5 RESEND 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-12-03 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the compress framework, user can use this function with compress ioctl interface. This feature can be shared by ASRC and EASRC drivers Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/Kconfig | 1 + sound

[PATCH v5 RESEND 1/6] ALSA: compress: Add output rate and output format support

2024-12-03 Thread Shengjiu Wang
add 'src_d' in union snd_codec_options structure. These are mainly used for capbility query. Signed-off-by: Jaroslav Kysela Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- include/uapi/sound/compress_params.h | 23 +-- 1 file changed, 21 insertions(+), 2 deletions

[PATCH v5 RESEND 5/6] ASoC: fsl_asrc: register m2m platform device

2024-12-03 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_asrc.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl

[PATCH v5 RESEND 2/6] ASoC: fsl_asrc: define functions for memory to memory usage

2024-12-03 Thread Shengjiu Wang
output length according to input length m2m_get_maxburst: burst size for dma m2m_pair_suspend: suspend function of pair, optional. m2m_pair_resume: resume function of pair get_output_fifo_size: get remaining data size in FIFO Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc

[PATCH 1/2] ASoC: fsl_xcvr: Use regmap for PHY and PLL registers

2024-11-26 Thread Shengjiu Wang
Define regmap for PHY and PLL registers, the PHY and PLL registers are accessed by AI interface in controller. So that driver can use regcache to recover registers after suspend and resume. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 224

[PATCH 2/2] ASoC: fsl_xcvr: Add suspend and resume support

2024-11-26 Thread Shengjiu Wang
firmware are overwritten. Besides only in eARC mode is it necessary to load XCVR firmware. Signed-off-by: Shengjiu Wang Signed-off-by: Chancel Liu --- sound/soc/fsl/fsl_xcvr.c | 160 +-- 1 file changed, 118 insertions(+), 42 deletions(-) diff --git a/sound/soc/fsl

[PATCH 0/2] ASoC: fsl_xcvr: Add suspend and resume support

2024-11-26 Thread Shengjiu Wang
Define regmap for PHY and PLL registers, the PHY and PLL registers are accessed by AI interface in controller. Then driver can use regcache to recover registers after suspend and resume. Shengjiu Wang (2): ASoC: fsl_xcvr: Use regmap for PHY and PLL registers ASoC: fsl_xcvr: Add suspend and

[PATCH v2 2/2] ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER

2024-11-25 Thread Shengjiu Wang
nstead of open-coding") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_spdif.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_spdif.c b/sound/soc/fsl/fsl_spdif.c index b6ff04f7138a..ee946e0d3f49 100644 --- a/sound/soc/fsl/fsl_spdif.c +++ b/sound

[PATCH v2 1/2] ASoC: fsl_xcvr: change IFACE_PCM to IFACE_MIXER

2024-11-25 Thread Shengjiu Wang
nstead of open-coding") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index 1e0bfd59d511..9c184ab73468 100644 --- a/sound/soc/fsl/fsl_xcvr.c +++ b/soun

[PATCH v2 0/2] ASoC: fsl: change IFACE_PCM to IFACE_MIXER

2024-11-25 Thread Shengjiu Wang
need to be IFACE_MIXER. changes in v2: - add fixes tag Shengjiu Wang (2): ASoC: fsl_xcvr: change IFACE_PCM to IFACE_MIXER ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER sound/soc/fsl/fsl_spdif.c | 2 +- sound/soc/fsl/fsl_xcvr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.34.1

[PATCH 0/2] ASoC: fsl: change IFACE_PCM to IFACE_MIXER

2024-11-21 Thread Shengjiu Wang
need to be IFACE_MIXER. Shengjiu Wang (2): ASoC: fsl_xcvr: change IFACE_PCM to IFACE_MIXER ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER sound/soc/fsl/fsl_spdif.c | 2 +- sound/soc/fsl/fsl_xcvr.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) -- 2.34.1

[PATCH 2/2] ASoC: fsl_spdif: change IFACE_PCM to IFACE_MIXER

2024-11-21 Thread Shengjiu Wang
As the snd_soc_card_get_kcontrol() is updated to use snd_ctl_find_id_mixer() in commit 897cc72b0837 ("ASoC: soc-card: Use snd_ctl_find_id_mixer() instead of open-coding") which make the iface fix to be IFACE_MIXER. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_spdif.c | 2

[PATCH 1/2] ASoC: fsl_xcvr: change IFACE_PCM to IFACE_MIXER

2024-11-21 Thread Shengjiu Wang
As the snd_soc_card_get_kcontrol() is updated to use snd_ctl_find_id_mixer() in commit 897cc72b0837 ("ASoC: soc-card: Use snd_ctl_find_id_mixer() instead of open-coding") which make the iface fix to be IFACE_MIXER. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 2 +- 1 fi

[RESEND PATCH v5 0/6] ASoC: fsl: add memory to memory function for ASRC

2024-11-12 Thread Shengjiu Wang
ESS_SRC_RATIO_MOD - drop the SND_AUDIOCODEC_SRC and struct snd_dec_src - define private metadata key value ASRC_OUTPUT_FORMAT/ASRC_OUTPUT_RATE/ASRC_RATIO_MOD Shengjiu Wang (6): ALSA: compress: Add output rate and output format support ASoC: fsl_asrc: define functions for memory to memory us

[RESEND PATCH v5 5/6] ASoC: fsl_asrc: register m2m platform device

2024-11-12 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_asrc.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl

[RESEND PATCH v5 6/6] ASoC: fsl_easrc: register m2m platform device

2024-11-12 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl

[RESEND PATCH v5 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-11-12 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the compress framework, user can use this function with compress ioctl interface. This feature can be shared by ASRC and EASRC drivers Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/Kconfig | 1 + sound

[RESEND PATCH v5 3/6] ASoC: fsl_easrc: define functions for memory to memory usage

2024-11-12 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 228 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[RESEND PATCH v5 2/6] ASoC: fsl_asrc: define functions for memory to memory usage

2024-11-12 Thread Shengjiu Wang
output length according to input length m2m_get_maxburst: burst size for dma m2m_pair_suspend: suspend function of pair, optional. m2m_pair_resume: resume function of pair get_output_fifo_size: get remaining data size in FIFO Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc

[RESEND PATCH v5 1/6] ALSA: compress: Add output rate and output format support

2024-11-12 Thread Shengjiu Wang
add 'src_d' in union snd_codec_options structure. These are mainly used for capbility query. Signed-off-by: Jaroslav Kysela Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- include/uapi/sound/compress_params.h | 23 +-- 1 file changed, 21 insertions(+), 2 deletions

[PATCH v5 1/6] ALSA: compress: Add output rate and output format support

2024-10-28 Thread Shengjiu Wang
add 'src_d' in union snd_codec_options structure. These are mainly used for capbility query. Signed-off-by: Jaroslav Kysela Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- include/uapi/sound/compress_params.h | 23 +-- 1 file changed, 21 insertions(+), 2 deletions

[PATCH v5 5/6] ASoC: fsl_asrc: register m2m platform device

2024-10-28 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_asrc.c | 37 + 1 file changed, 33 insertions(+), 4 deletions(-) diff --git a/sound/soc/fsl/fsl_asrc.c b/sound/soc/fsl

[PATCH v5 6/6] ASoC: fsl_easrc: register m2m platform device

2024-10-28 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 33 +++-- 1 file changed, 31 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl

[PATCH v5 3/6] ASoC: fsl_easrc: define functions for memory to memory usage

2024-10-28 Thread Shengjiu Wang
ASRC can be used on memory to memory case, define several functions for m2m usage and export them as function pointer. Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/fsl_easrc.c | 228 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v5 2/6] ASoC: fsl_asrc: define functions for memory to memory usage

2024-10-28 Thread Shengjiu Wang
output length according to input length m2m_get_maxburst: burst size for dma m2m_pair_suspend: suspend function of pair, optional. m2m_pair_resume: resume function of pair get_output_fifo_size: get remaining data size in FIFO Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc

[PATCH v5 4/6] ASoC: fsl_asrc_m2m: Add memory to memory function

2024-10-28 Thread Shengjiu Wang
Implement the ASRC memory to memory function using the compress framework, user can use this function with compress ioctl interface. This feature can be shared by ASRC and EASRC drivers Signed-off-by: Shengjiu Wang Acked-by: Jaroslav Kysela --- sound/soc/fsl/Kconfig | 1 + sound

[PATCH v5 0/6] ASoC: fsl: add memory to memory function for ASRC

2024-10-28 Thread Shengjiu Wang
ESS_SRC_RATIO_MOD - drop the SND_AUDIOCODEC_SRC and struct snd_dec_src - define private metadata key value ASRC_OUTPUT_FORMAT/ASRC_OUTPUT_RATE/ASRC_RATIO_MOD Shengjiu Wang (6): ALSA: compress: Add output rate and output format support ASoC: fsl_asrc: define functions for memory to memory us

[PATCH v2] ASoC: fsl_mqs: Support accessing registers by scmi interface

2024-10-24 Thread Shengjiu Wang
On i.MX95, the MQS module in Always-on (AON) domain only can be accessed by System Controller Management Interface (SCMI) MISC Protocol. So define a specific regmap_config for the case. Signed-off-by: Shengjiu Wang --- changes in v2: - fix compile issue when IMX_SCMI_MISC_DRV=m but

Re: [PATCH] ASoC: fsl_mqs: Support accessing registers by scmi interface

2024-10-24 Thread Shengjiu Wang
On Sat, Oct 12, 2024 at 2:15 PM Shengjiu Wang wrote: > > On i.MX95, the MQS module in Always-on (AON) domain only can > be accessed by System Controller Management Interface (SCMI) > MISC Protocol. So define a specific regmap_config for the case. > find an issue when IMX_SCMI

Re: [PATCH v4 0/7] ASoC: fsl: add memory to memory function for ASRC

2024-10-23 Thread Shengjiu Wang
On Wed, Oct 23, 2024 at 1:32 PM Vinod Koul wrote: > > On 25-09-24, 14:55, Shengjiu Wang wrote: > > This function is base on the accelerator implementation > > for compress API: > > https://patchwork.kernel.org/project/alsa-devel/patch/20240731083843.59911-1-pe...@pere

[PATCH] ASoC: fsl_micfil: Add sample rate constraint

2024-10-13 Thread Shengjiu Wang
n alsa-lib will help to convert the unsupported rate for the driver. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_micfil.c | 38 ++ 1 file changed, 38 insertions(+) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl/fsl_micfil.c index 4e65966d54fc..61

[PATCH] ASoC: fsl_mqs: Support accessing registers by scmi interface

2024-10-11 Thread Shengjiu Wang
On i.MX95, the MQS module in Always-on (AON) domain only can be accessed by System Controller Management Interface (SCMI) MISC Protocol. So define a specific regmap_config for the case. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_mqs.c | 41 + 1

[PATCH] ASoC: fsl_esai: change dev_warn to dev_dbg in irq handler

2024-10-10 Thread Shengjiu Wang
Irq handler need to be executed as fast as possible, so the log in irq handler is better to use dev_dbg which needs to be enabled when debugging. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_esai.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl

[PATCH 1/2] ASoC: imx-card: Set mclk for codec

2024-10-09 Thread Shengjiu Wang
Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-card.c | 5 + 1 file changed, 5 insertions(+) diff --git a/sound/soc/fsl/imx-card.c b/sound/soc/fsl/imx-card.c index a7215bad6484..2f3dbbd15791 100644 --- a/sound/soc/fsl/imx-card.c +++ b/sound/soc/fsl/imx-card.c @@ -370,6 +370,11 @@ static

[PATCH 2/2] ASoC: imx-card: Add CS42888 support

2024-10-09 Thread Shengjiu Wang
From: Chancel Liu CS42888 codec provides 4 multi-bit ADC and 8 multi-bit DAC. Add support for this codec in imx-card ASoC machine driver. Signed-off-by: Chancel Liu Signed-off-by: Shengjiu Wang --- sound/soc/fsl/imx-card.c | 54 ++-- 1 file changed, 47

[PATCH 0/2] ASoC: imx-card: add cs42888 codec support

2024-10-09 Thread Shengjiu Wang
add cs42888 codec support Chancel Liu (2): ASoC: imx-card: Set mclk for codec ASoC: imx-card: Add CS42888 support sound/soc/fsl/imx-card.c | 59 +++- 1 file changed, 52 insertions(+), 7 deletions(-) -- 2.34.1

[PATCH 1/2] ASoC: fsl_xcvr: enable interrupt of cmdc status update

2024-10-07 Thread Shengjiu Wang
This enables the interrupt to be asserted when there is a change in Capabilities data structure / Latency request of the CMDC Status register. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 4 sound/soc/fsl/fsl_xcvr.h | 1 + 2 files changed, 5 insertions(+) diff --git a/sound

[PATCH 2/2] ASoC: fsl_xcvr: reset RX dpath after wrong preamble

2024-10-07 Thread Shengjiu Wang
reset the DMAC path. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 90 ++-- sound/soc/fsl/fsl_xcvr.h | 4 ++ 2 files changed, 81 insertions(+), 13 deletions(-) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl/fsl_xcvr.c index 9e24d6462c01

[PATCH 0/2] ASoC: fsl_xcvr: enable some interrupts

2024-10-07 Thread Shengjiu Wang
Enable interrupt of cmdc status update and the interrupts for wrong preamble received. Shengjiu Wang (2): ASoC: fsl_xcvr: enable interrupt of cmdc status update ASoC: fsl_xcvr: reset RX dpath after wrong preamble sound/soc/fsl/fsl_xcvr.c | 94 ++-- sound

[PATCH] ASoC: fsl_sai: Enable 'FIFO continue on error' FCONT bit

2024-09-29 Thread Shengjiu Wang
FCONT=1 means On FIFO error, the SAI will continue from the same word that caused the FIFO error to set after the FIFO warning flag has been cleared. Set FCONT bit in control register to avoid the channel swap issue after SAI xrun. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_sai.c | 5

[PATCH 3/3] ASoC: fsl_micfil: Enable micfil error interrupt

2024-09-27 Thread Shengjiu Wang
Enable micfil error interrupt, in the error handler, FIFO state and OUT state need to be cleared. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_micfil.c | 16 ++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/sound/soc/fsl/fsl_micfil.c b/sound/soc/fsl

[PATCH 1/3] ASoC: fsl_micfil: fix regmap_write_bits usage

2024-09-27 Thread Shengjiu Wang
The last parameter 1 means BIT(0), which should be the correct BIT(X). Fixes: 47a70e6fc9a8 ("ASoC: Add MICFIL SoC Digital Audio Interface driver.") Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_micfil.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sou

  1   2   3   4   5   6   7   8   9   >