[PATCH v4 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-29 Thread Shengjiu Wang
for clocks and clock-names properties. On i.MX95, the 'interrupts' configuration has the same constraint as i.MX93. Only on i.MX8MP, the 'resets' is required, but for i.MX95 and i.MX93 there is no such hardware setting. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,xcvr.y

[PATCH v4 2/2] ASoC: fsl_xcvr: Add support for i.MX95 platform

2024-05-29 Thread Shengjiu Wang
these platforms. When there are 'pll8k' and 'pll11k' clock existing, the clock source of 'phy_clk' can be changed for different sample rate requirement. Signed-off-by: Shengjiu Wang Reviewed-by: Chancel Liu --- sound/soc/fsl/Kconfig| 1 + sound/soc/fsl/fsl_xcvr.c | 128

[PATCH v4 0/2] ASoC: fsl_xcvr: Support i.MX95 platform

2024-05-29 Thread Shengjiu Wang
' in document. changes in v2: - Merge patch 1&2, 3&4 from v1 together. - Add more comments in commit message - Add constaint for clocks used on i.mx95 - Add 'select SND_SOC_FSL_UTILS' for compiling issue. Shengjiu Wang (2): ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX9

Re: [PATCH v3 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-28 Thread Shengjiu Wang
On Tue, May 28, 2024 at 11:15 PM Rob Herring wrote: > > On Tue, May 21, 2024 at 06:13:35PM +0800, Shengjiu Wang wrote: > > Add compatible string "fsl,imx95-xcvr" for i.MX95 platform. > > > > The difference betwe

[PATCH v2 0/2] ASoC: fsl_mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
le strings to distinguish two instances Shengjiu Wang (2): ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support ASoC: fsl_mqs: Add i.MX95 platform support .../devicetree/bindings/sound/fsl,mqs.yaml| 2 + sound/soc/fsl/fsl_mqs.c | 46 --- 2 files c

[PATCH v2 1/2] ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
, so the compatible strings are "fsl,imx95-aonmix-mqs", "fsl,imx95-netcmix-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.y

[PATCH v2 2/2] ASoC: fsl_mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
in nect-mix is supported by this commit, another instance in always-on-mix is not supported, which depends on System Manager function readiness. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_mqs.c | 46 +++-- 1 file changed, 40 insertions(+), 6 deletions

[PATCH v3 0/2] ASoC: fsl_xcvr: Support i.MX95 platform

2024-05-21 Thread Shengjiu Wang
Add more comments in commit message - Add constaint for clocks used on i.mx95 - Add 'select SND_SOC_FSL_UTILS' for compiling issue. Shengjiu Wang (2): ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95 ASoC: fsl_xcvr: Add support for i.MX95 platform .../devicetree/bindings/s

[PATCH v3 2/2] ASoC: fsl_xcvr: Add support for i.MX95 platform

2024-05-21 Thread Shengjiu Wang
these platforms. When there are 'pll8k' and 'pll11k' clock existing, the clock source of 'phy_clk' can be changed for different sample rate requirement. Signed-off-by: Shengjiu Wang Reviewed-by: Chancel Liu --- sound/soc/fsl/Kconfig| 1 + sound/soc/fsl/fsl_xcvr.c | 128

[PATCH v3 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-21 Thread Shengjiu Wang
for clocks and clock-names properties. On i.MX95, the 'interrupts' configuration has the same constraint as i.MX93. Only on i.MX8MP, the 'resets' is required, but for i.MX95 and i.MX93 there is no such hardware setting. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,xcvr.y

Re: [PATCH 1/2] ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support

2024-05-21 Thread Shengjiu Wang
On Mon, May 20, 2024 at 6:47 PM Krzysztof Kozlowski wrote: > > On 17/05/2024 11:45, Shengjiu Wang wrote: > > In order to support the MQS module on i.MX95, a new property > > "fsl,mqs-ctrl" needs to be added, as there are two MQS instances > > on the i.MX

Re: [PATCH v2 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-20 Thread Shengjiu Wang
On Tue, May 21, 2024 at 12:16 AM Rob Herring wrote: > > On Tue, May 14, 2024 at 11:12:08AM +0800, Shengjiu Wang wrote: > > Add compatible string "fsl,imx95-xcvr" for i.MX95 platform. > > > > The difference betwe

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

2024-05-17 Thread Shengjiu Wang
i.MX95 one instance in wakeup-mix is supported by this commit, another instance in always-on-mix is not supported, which depends on System Manager function readiness, but it can also benefit from the new property. Signed-off-by: Shengjiu Wang --- sound/soc

[PATCH 0/2] ASoC: fsl_mqs: Add i.MX95 platform support

2024-05-17 Thread Shengjiu Wang
by System Manager. The bit position in the register may be different for each platform, there are four parts (bits for module enablement, bits for reset, bits for oversampling ratio, bits for divider ratio). This new property includes all these things. Shengjiu Wang (2): ASoC: dt-bindings: fs

[PATCH 1/2] ASoC: dt-bindings: fsl,mqs: Add i.MX95 platform support

2024-05-17 Thread Shengjiu Wang
by System Manager. The bit position in the register may be different for each platform, there are four parts (bits for module enablement, bits for reset, bits for oversampling ratio, bits for divider ratio). This new property includes all these things. Signed-off-by: Shengjiu Wang --- .../

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-15 Thread Shengjiu Wang
; >>> > >>> On 5/13/24 13:56, Jaroslav Kysela wrote: > >>>> On 09. 05. 24 13:13, Jaroslav Kysela wrote: > >>>>> On 09. 05. 24 12:44, Shengjiu Wang wrote: > >>>>>>>> mem2mem is just like the decoder in the compress pipeline. whi

[PATCH v2 2/2] ASoC: fsl_xcvr: Add support for i.MX95 platform

2024-05-13 Thread Shengjiu Wang
these platforms. When there are 'pll8k' and 'pll11k' clock existing, the clock source of 'phy_clk' can be changed for different sample rate requirement. Signed-off-by: Shengjiu Wang Reviewed-by: Chancel Liu --- sound/soc/fsl/Kconfig| 1 + sound/soc/fsl/fsl_xcvr.c | 128

[PATCH v2 1/2] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-13 Thread Shengjiu Wang
for clocks and clock-names properties. Signed-off-by: Shengjiu Wang --- .../devicetree/bindings/sound/fsl,xcvr.yaml | 55 +++ 1 file changed, 45 insertions(+), 10 deletions(-) diff --git a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml b/Documentation/devicetree/bindings

[PATCH v2 0/2] ASoC: fsl_xcvr: Support i.MX95 platform

2024-05-13 Thread Shengjiu Wang
'select SND_SOC_FSL_UTILS' for compiling issue. Shengjiu Wang (2): ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95 ASoC: fsl_xcvr: Add support for i.MX95 platform .../devicetree/bindings/sound/fsl,xcvr.yaml | 55 ++-- sound/soc/fsl/Kconfig | 1 + sound

Re: [PATCH 2/4] ASoC: dt-bindings: fsl,xcvr: Add two PLL clock sources

2024-05-09 Thread Shengjiu Wang
On Fri, May 10, 2024 at 10:27 AM Shengjiu Wang wrote: > > On Fri, May 10, 2024 at 1:14 AM Conor Dooley wrote: > > > > On Thu, May 09, 2024 at 10:57:38AM +0800, Shengjiu Wang wrote: > > > Add two PLL clock sources, they are the parent clocks of the root clock > &g

Re: [PATCH 1/4] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-09 Thread Shengjiu Wang
On Fri, May 10, 2024 at 1:11 AM Conor Dooley wrote: > > On Thu, May 09, 2024 at 10:57:37AM +0800, Shengjiu Wang wrote: > > Add compatible string "fsl,imx95-xcvr" for i.MX95 platform. > > That's apparent from the diff. Why is it not compatible with existing > d

Re: [PATCH 2/4] ASoC: dt-bindings: fsl,xcvr: Add two PLL clock sources

2024-05-09 Thread Shengjiu Wang
On Fri, May 10, 2024 at 1:14 AM Conor Dooley wrote: > > On Thu, May 09, 2024 at 10:57:38AM +0800, Shengjiu Wang wrote: > > Add two PLL clock sources, they are the parent clocks of the root clock > > one is for 8kHz series rates, named as 'pll8k', another one is for > > 1

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-09 Thread Shengjiu Wang
On Thu, May 9, 2024 at 6:28 PM Amadeusz Sławiński wrote: > > On 5/9/2024 12:12 PM, Shengjiu Wang wrote: > > On Thu, May 9, 2024 at 5:50 PM Amadeusz Sławiński > > wrote: > >> > >> On 5/9/2024 11:36 AM, Shengjiu Wang wrote: > >>> On Wed, May 8,

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-09 Thread Shengjiu Wang
On Thu, May 9, 2024 at 5:50 PM Amadeusz Sławiński wrote: > > On 5/9/2024 11:36 AM, Shengjiu Wang wrote: > > On Wed, May 8, 2024 at 4:14 PM Amadeusz Sławiński > > wrote: > >> > >> On 5/8/2024 10:00 AM, Hans Verkuil wrote: > >>> On 06/05/2024 10:49,

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-09 Thread Shengjiu Wang
On Wed, May 8, 2024 at 4:14 PM Amadeusz Sławiński wrote: > > On 5/8/2024 10:00 AM, Hans Verkuil wrote: > > On 06/05/2024 10:49, Shengjiu Wang wrote: > >> On Fri, May 3, 2024 at 4:42 PM Mauro Carvalho Chehab > >> wrote: > >>> > >>> Em Fri

[PATCH 4/4] ASoC: fsl_xcvr: Add support for i.MX95 platform

2024-05-08 Thread Shengjiu Wang
these platforms. Signed-off-by: Shengjiu Wang Reviewed-by: Chancel Liu --- sound/soc/fsl/fsl_xcvr.c | 120 +-- sound/soc/fsl/fsl_xcvr.h | 91 + 2 files changed, 168 insertions(+), 43 deletions(-) diff --git a/sound/soc/fsl

[PATCH 3/4] ASoC: fsl_xcvr: Support reparent pll clocks for phy_clk

2024-05-08 Thread Shengjiu Wang
When there are 'pll8k' and 'pll11k' clock existing, the clock source of 'phy_clk' can be changed for different sample rate requirement. Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl_xcvr.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/fsl/fsl_xcvr.c b/sound/soc/fsl

[PATCH 0/4] ASoC: fsl_xcvr: Support i.MX95 platform

2024-05-08 Thread Shengjiu Wang
On i.MX95 wakeup domain, there is one instance of Audio XCVR supporting SPDIF mode with a connection to the Audio XCVR physical interface. Shengjiu Wang (4): ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95 ASoC: dt-bindings: fsl,xcvr: Add two PLL clock sources ASoC: fsl_xcvr

[PATCH 2/4] ASoC: dt-bindings: fsl,xcvr: Add two PLL clock sources

2024-05-08 Thread Shengjiu Wang
sample rates. As 'pll8k' and 'pll11k' are optional, then add 'minItems: 4' for clocks and clock-names properties. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,xcvr.yaml | 6 ++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/sound

[PATCH 1/4] ASoC: dt-bindings: fsl,xcvr: Add compatible string for i.MX95

2024-05-08 Thread Shengjiu Wang
Add compatible string "fsl,imx95-xcvr" for i.MX95 platform. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl,xcvr.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/fsl,xcvr.yaml b/Documentation/devicetree/bind

Re: [PATCH v15 00/16] Add audio support in v4l2 framework

2024-05-06 Thread Shengjiu Wang
So using V4L2 for audio is not new from this point of view. Even now I still think V4L2 is the best option, but it looks like there are a lot of rejects. If develop a new ALSA-mem2mem, it is also a duplication of code (bigger duplication that just add audio support in V4L2 I think). Best regards She

Re: [PATCH v2] ASoC: dt-bindings: fsl,ssi: Convert to YAML

2024-04-24 Thread Shengjiu Wang
On Tue, Apr 23, 2024 at 10:24 PM Rob Herring wrote: > > On Mon, Apr 22, 2024 at 01:48:14PM +0800, Shengjiu Wang wrote: > > Convert the fsl,ssi binding to YAML. > > > > Add below compatible strings which were not listed > > in document: > > > > fsl,imx

[PATCH v2] ASoC: dt-bindings: fsl,ssi: Convert to YAML

2024-04-22 Thread Shengjiu Wang
-slave rj-master Add 'ac97-gpios' property which were not listed. Then dtbs_check can pass. And remove the 'codec' description which should be in the 'codec' binding doc. Signed-off-by: Shengjiu Wang --- changes in v2: - change fallback string to const. - add dai-common.yaml - add ac97-gpios

[PATCH 2/2] ASoC: dt-bindings: fsl-asoc-card: Add compatbile string for wm8904 codec

2024-04-15 Thread Shengjiu Wang
The wm8904 codec is used on an i.MX95 Toradex board. Signed-off-by: Shengjiu Wang --- Documentation/devicetree/bindings/sound/fsl-asoc-card.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/devicetree/bindings/sound/fsl-asoc-card.yaml b/Documentation/devicetree/bindings

[PATCH 1/2] ASoC: fsl-asoc-card: add wm8904 codec support

2024-04-15 Thread Shengjiu Wang
wm8904 codec is used on i.MX95 Toradex board Signed-off-by: Shengjiu Wang --- sound/soc/fsl/fsl-asoc-card.c | 8 1 file changed, 8 insertions(+) diff --git a/sound/soc/fsl/fsl-asoc-card.c b/sound/soc/fsl/fsl-asoc-card.c index bc07f26ba303..f6d2564864c6 100644 --- a/sound/soc/fsl/fsl

[PATCH 0/2] ASoC: fsl-asoc-card: add wm8904 codec support

2024-04-15 Thread Shengjiu Wang
add wm8904 codec support in fsl-asoc-card. Shengjiu Wang (2): ASoC: fsl-asoc-card: add wm8904 codec support ASoC: dt-bindings: fsl-asoc-card: Add compatbile string for wm8904 codec .../devicetree/bindings/sound/fsl-asoc-card.yaml | 1 + sound/soc/fsl/fsl-asoc-card.c

Re: [PATCH 1/1] ASoC: fsl: fsl_ssi: Add dev_err_probe if PCM DMA init fails

2024-03-20 Thread Shengjiu Wang
On Thu, Mar 14, 2024 at 10:16 PM Alexander Stein wrote: > > This happens especially if this driver is built-in, but SDMA driver > is configured as module. > > Signed-off-by: Alexander Stein Acked-by: Shengjiu Wang Best Regards Shengjiu Wang > --- > sound/soc/fsl/fsl_ssi

Re: [PATCH v3 0/5] ASoC: fsl: Support register and unregister rpmsg sound card through remoteproc

2024-03-20 Thread Shengjiu Wang
achine > driver. Then sound card is unregistered. Acked-by: Shengjiu Wang Best regards Shengjiu Wang > > changes in v2 > - Fix build errors reported by kernel test robot > > changes in v3 > - Add a new patch for fsl_rpmsg to register CPU DAI with rpmsg channel >

[PATCH v15 16/16] media: vim2m-audio: add virtual driver for audio memory to memory

2024-03-19 Thread Shengjiu Wang
to output buffer. Signed-off-by: Shengjiu Wang --- MAINTAINERS | 9 + drivers/media/test-drivers/Kconfig | 10 + drivers/media/test-drivers/Makefile | 1 + drivers/media/test-drivers/vim2m-audio.c | 793 +++ 4 files changed, 813 insertions

[PATCH v15 15/16] media: imx-asrc: Add memory to memory driver

2024-03-19 Thread Shengjiu Wang
-off-by: Shengjiu Wang --- MAINTAINERS |8 + drivers/media/platform/nxp/Kconfig| 13 + drivers/media/platform/nxp/Makefile |1 + drivers/media/platform/nxp/imx-asrc.c | 1256 + 4 files changed, 1278 insertions(+) create mode 100644

[PATCH v15 14/16] media: vivid: add fixed point test controls

2024-03-19 Thread Shengjiu Wang
Add fixed point test controls, one is for Q4.16 format another one is for Q63 format. Signed-off-by: Shengjiu Wang --- drivers/media/test-drivers/vivid/vivid-core.h | 2 ++ .../media/test-drivers/vivid/vivid-ctrls.c| 26 +++ include/media/v4l2-ctrls.h

[PATCH v15 13/16] media: uapi: Add an entity type for audio resampler

2024-03-19 Thread Shengjiu Wang
Add and document a media entity type for an audio resampler. It is MEDIA_ENT_F_PROC_AUDIO_RESAMPLER. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/mediactl/media-types.rst | 6 ++ include/uapi/linux/media.h | 1 + 2 files changed, 7

[PATCH v15 12/16] media: uapi: Declare interface types for Audio

2024-03-19 Thread Shengjiu Wang
Declare the interface types that will be used by Audio. The type is MEDIA_INTF_T_V4L_AUDIO. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/mediactl/media-types.rst| 5 + drivers/media/v4l2-core/v4l2-dev.c | 4 drivers/media/v4l2-core/v4l2-mem2mem.c

[PATCH v15 11/16] media: uapi: Add audio rate controls support

2024-03-19 Thread Shengjiu Wang
Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE new IDs for rate control. Add V4L2_CID_M2M_AUDIO_SOURCE_RATE_OFFSET and V4L2_CID_M2M_AUDIO_DEST_RATE_OFFSET for clock drift. Signed-off-by: Shengjiu Wang --- .../media/v4l/ext-ctrls-audio-m2m.rst | 38

[PATCH v15 10/16] media: uapi: Add V4L2_CTRL_CLASS_M2M_AUDIO

2024-03-19 Thread Shengjiu Wang
The Audio M2M class includes controls for audio memory-to-memory use cases. The controls can be used for audio codecs, audio preprocessing, audio postprocessing. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/common.rst| 1 + .../media/v4l/ext-ctrls-audio-m2m.rst

[PATCH v15 09/16] media: uapi: Define audio sample format fourcc type

2024-03-19 Thread Shengjiu Wang
till use the fourcc format. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/pixfmt-audio.rst | 100 ++ .../userspace-api/media/v4l/pixfmt.rst| 1 + drivers/media/v4l2-core/v4l2-ioctl.c | 13 +++ include/uapi/linux/videodev2.h|

[PATCH v15 08/16] media: v4l2: Add audio capture and output support

2024-03-19 Thread Shengjiu Wang
device is named "/dev/v4l-audioX". Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/buffer.rst| 6 ++ .../media/v4l/dev-audio-mem2mem.rst | 71 +++ .../userspace-api/media/v4l/devices.rst | 1 + .../media/v4l/vidioc-en

[PATCH v15 07/16] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag

2024-03-19 Thread Shengjiu Wang
V4L2_CAP_AUDIO_M2M is similar to V4L2_CAP_VIDEO_M2M flag. It is used for audio memory to memory case. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/v4l/vidioc-querycap.rst| 3 +++ Documentation/userspace-api/media/videodev2.h.rst.exceptions | 1 + include/uapi/linux

[PATCH v15 06/16] ASoC: fsl_easrc: register m2m platform device

2024-03-19 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index cf7ad30a323b

[PATCH v15 05/16] ASoC: fsl_asrc: register m2m platform device

2024-03-19 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Defined platform data structure and platform driver name. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- include/sound/fsl_asrc_common.h | 23 +++ sound/soc/fsl/fsl_asrc.c| 18 ++ 2

[PATCH v15 04/16] ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound

2024-03-19 Thread Shengjiu Wang
Move fsl_asrc_common.h to include/sound that it can be included from other drivers. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- {sound/soc/fsl => include/sound}/fsl_asrc_common.h | 0 sound/soc/fsl/fsl_asrc.h | 2 +- sound/soc/fsl/fsl_asrc_dm

[PATCH v15 03/16] ASoC: fsl_easrc: define functions for memory to memory usage

2024-03-19 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: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 214 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v15 02/16] ASoC: fsl_asrc: define functions for memory to memory usage

2024-03-19 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: Mark Brown --- sound/soc/fsl

[PATCH v15 01/16] media: v4l2-ctrls: add support for fraction_bits

2024-03-19 Thread Shengjiu Wang
From: Hans Verkuil This adds support for the fraction_bits field, used with integer controls. This allows fixed point formats to be described. The fraction_bits field is only exposed through VIDIOC_QUERY_EXT_CTRL. For a given signed two's complement Qf fixed point value 'f' equals

[PATCH v15 00/16] Add audio support in v4l2 framework

2024-03-19 Thread Shengjiu Wang
v2: - decouple the implementation in v4l2 and ALSA - implement the memory to memory driver as a platfrom driver and move it to driver/media - move fsl_asrc_common.h to include/sound folder Hans Verkuil (1): media: v4l2-ctrls: add support for fraction_bits Shengjiu Wang (15): ASoC: fsl_asrc: define

Re: [PATCH v14 00/16] Add audio support in v4l2 framework

2024-03-18 Thread Shengjiu Wang
On Tue, Mar 19, 2024 at 10:24 AM Shengjiu Wang wrote: > > On Mon, Mar 18, 2024 at 11:56 PM Hans Verkuil wrote: > > > > Hi Shengjiu, > > > > I was about to prepare a pull request for this when I realized that > > entries for the new drivers need to be added

Re: [PATCH v14 00/16] Add audio support in v4l2 framework

2024-03-18 Thread Shengjiu Wang
ntries for each > new driver? Ok, How about the change below? VIRTUAL MEM2MEM DRIVER FOR AUDIO M: Hans Verkuil M: Shengjiu Wang L: linux-me...@vger.kernel.org S: Maintained W: https://linuxtv.org T: git git://linuxtv.org/media_tree.git F: drivers/media/te

[PATCH v14 16/16] media: vim2m-audio: add virtual driver for audio memory to memory

2024-03-11 Thread Shengjiu Wang
to output buffer. Signed-off-by: Shengjiu Wang --- drivers/media/test-drivers/Kconfig | 10 + drivers/media/test-drivers/Makefile | 1 + drivers/media/test-drivers/vim2m-audio.c | 793 +++ 3 files changed, 804 insertions(+) create mode 100644 drivers/media/test-drivers

[PATCH v14 15/16] media: imx-asrc: Add memory to memory driver

2024-03-11 Thread Shengjiu Wang
-off-by: Shengjiu Wang --- drivers/media/platform/nxp/Kconfig| 13 + drivers/media/platform/nxp/Makefile |1 + drivers/media/platform/nxp/imx-asrc.c | 1256 + 3 files changed, 1270 insertions(+) create mode 100644 drivers/media/platform/nxp/imx-asrc.c diff --git

[PATCH v14 14/16] media: vivid: add fixed point test controls

2024-03-11 Thread Shengjiu Wang
Add fixed point test controls, one is for Q4.16 format another one is for Q63 format. Signed-off-by: Shengjiu Wang --- drivers/media/test-drivers/vivid/vivid-core.h | 2 ++ .../media/test-drivers/vivid/vivid-ctrls.c| 26 +++ include/media/v4l2-ctrls.h

[PATCH v14 13/16] media: uapi: Add an entity type for audio resampler

2024-03-11 Thread Shengjiu Wang
Add and document a media entity type for an audio resampler. It is MEDIA_ENT_F_PROC_AUDIO_RESAMPLER. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/mediactl/media-types.rst | 6 ++ include/uapi/linux/media.h | 1 + 2 files changed, 7

[PATCH v14 12/16] media: uapi: Declare interface types for Audio

2024-03-11 Thread Shengjiu Wang
Declare the interface types that will be used by Audio. The type is MEDIA_INTF_T_V4L_AUDIO. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/mediactl/media-types.rst| 5 + drivers/media/v4l2-core/v4l2-dev.c | 4 drivers/media/v4l2-core/v4l2-mem2mem.c

[PATCH v14 11/16] media: uapi: Add audio rate controls support

2024-03-11 Thread Shengjiu Wang
Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE new IDs for rate control. Add V4L2_CID_M2M_AUDIO_SOURCE_RATE_OFFSET and V4L2_CID_M2M_AUDIO_DEST_RATE_OFFSET for clock drift. Signed-off-by: Shengjiu Wang --- .../media/v4l/ext-ctrls-audio-m2m.rst | 38

[PATCH v14 10/16] media: uapi: Add V4L2_CTRL_CLASS_M2M_AUDIO

2024-03-11 Thread Shengjiu Wang
The Audio M2M class includes controls for audio memory-to-memory use cases. The controls can be used for audio codecs, audio preprocessing, audio postprocessing. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/common.rst| 1 + .../media/v4l/ext-ctrls-audio-m2m.rst

[PATCH v14 09/16] media: uapi: Define audio sample format fourcc type

2024-03-11 Thread Shengjiu Wang
till use the fourcc format. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/pixfmt-audio.rst | 100 ++ .../userspace-api/media/v4l/pixfmt.rst| 1 + drivers/media/v4l2-core/v4l2-ioctl.c | 13 +++ include/uapi/linux/videodev2.h|

[PATCH v14 08/16] media: v4l2: Add audio capture and output support

2024-03-11 Thread Shengjiu Wang
device is named "/dev/v4l-audioX". Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/buffer.rst| 6 ++ .../media/v4l/dev-audio-mem2mem.rst | 71 +++ .../userspace-api/media/v4l/devices.rst | 1 + .../media/v4l/vidioc-en

[PATCH v14 07/16] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag

2024-03-11 Thread Shengjiu Wang
V4L2_CAP_AUDIO_M2M is similar to V4L2_CAP_VIDEO_M2M flag. It is used for audio memory to memory case. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/v4l/vidioc-querycap.rst| 3 +++ Documentation/userspace-api/media/videodev2.h.rst.exceptions | 1 + include/uapi/linux

[PATCH v14 06/16] ASoC: fsl_easrc: register m2m platform device

2024-03-11 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index cf7ad30a323b

[PATCH v14 05/16] ASoC: fsl_asrc: register m2m platform device

2024-03-11 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Defined platform data structure and platform driver name. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- include/sound/fsl_asrc_common.h | 23 +++ sound/soc/fsl/fsl_asrc.c| 18 ++ 2

[PATCH v14 04/16] ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound

2024-03-11 Thread Shengjiu Wang
Move fsl_asrc_common.h to include/sound that it can be included from other drivers. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- {sound/soc/fsl => include/sound}/fsl_asrc_common.h | 0 sound/soc/fsl/fsl_asrc.h | 2 +- sound/soc/fsl/fsl_asrc_dm

[PATCH v14 03/16] ASoC: fsl_easrc: define functions for memory to memory usage

2024-03-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: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 214 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v14 02/16] ASoC: fsl_asrc: define functions for memory to memory usage

2024-03-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: Mark Brown --- sound/soc/fsl

[PATCH v14 00/16] Add audio support in v4l2 framework

2024-03-11 Thread Shengjiu Wang
o memory driver as a platfrom driver and move it to driver/media - move fsl_asrc_common.h to include/sound folder Hans Verkuil (1): media: v4l2-ctrls: add support for fraction_bits Shengjiu Wang (15): ASoC: fsl_asrc: define functions for memory to memory usage ASoC: fsl_easrc: define func

[PATCH v14 01/16] media: v4l2-ctrls: add support for fraction_bits

2024-03-11 Thread Shengjiu Wang
From: Hans Verkuil This adds support for the fraction_bits field, used with integer controls. This allows fixed point formats to be described. The fraction_bits field is only exposed through VIDIOC_QUERY_EXT_CTRL. For a given signed two's complement Qf fixed point value 'f' equals

Re: [PATCH v13 09/16] media: uapi: Define audio sample format fourcc type

2024-03-10 Thread Shengjiu Wang
On Fri, Mar 8, 2024 at 10:04 PM Hans Verkuil wrote: > > On 08/03/2024 2:52 pm, Shengjiu Wang wrote: > > On Fri, Mar 8, 2024 at 8:06 PM Hans Verkuil wrote: > >> > >> On 08/03/2024 12:52 pm, Shengjiu Wang wrote: > >>> On Fri, Mar 8, 2024 at 3:34 PM Hans

Re: [PATCH v13 09/16] media: uapi: Define audio sample format fourcc type

2024-03-08 Thread Shengjiu Wang
On Fri, Mar 8, 2024 at 8:06 PM Hans Verkuil wrote: > > On 08/03/2024 12:52 pm, Shengjiu Wang wrote: > > On Fri, Mar 8, 2024 at 3:34 PM Hans Verkuil wrote: > >> > >> Hi Shengjiu, > >> > >> After thinking it over I think this patch can be improved

Re: [PATCH v13 09/16] media: uapi: Define audio sample format fourcc type

2024-03-08 Thread Shengjiu Wang
On Fri, Mar 8, 2024 at 3:34 PM Hans Verkuil wrote: > > Hi Shengjiu, > > After thinking it over I think this patch can be improved: > > On 26/02/2024 9:28 am, Shengjiu Wang wrote: > > The audio sample format definition is from alsa, > > the header file is include/uapi

Re: [PATCH v13 09/16] media: uapi: Define audio sample format fourcc type

2024-02-26 Thread Shengjiu Wang
On Mon, Feb 26, 2024 at 9:55 PM Nicolas Dufresne wrote: > > Le lundi 26 février 2024 à 16:28 +0800, Shengjiu Wang a écrit : > > The audio sample format definition is from alsa, > > the header file is include/uapi/sound/asound.h, but > > don't include this header file direc

Re: [PATCH v13 09/16] media: uapi: Define audio sample format fourcc type

2024-02-26 Thread Shengjiu Wang
On Mon, Feb 26, 2024 at 9:55 PM Nicolas Dufresne wrote: > > Le lundi 26 février 2024 à 16:28 +0800, Shengjiu Wang a écrit : > > The audio sample format definition is from alsa, > > the header file is include/uapi/sound/asound.h, but > > don't include this header file direc

[PATCH v13 14/16] media: vivid: add fixed point test controls

2024-02-26 Thread Shengjiu Wang
Add fixed point test controls, one is for Q4.16 format another one is for Q63 format. Signed-off-by: Shengjiu Wang --- drivers/media/test-drivers/vivid/vivid-core.h | 2 ++ .../media/test-drivers/vivid/vivid-ctrls.c| 26 +++ include/media/v4l2-ctrls.h

[PATCH v13 09/16] media: uapi: Define audio sample format fourcc type

2024-02-26 Thread Shengjiu Wang
till use the fourcc format. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/pixfmt-audio.rst | 87 +++ .../userspace-api/media/v4l/pixfmt.rst| 1 + drivers/media/v4l2-core/v4l2-ioctl.c | 13 +++ include/uapi/linux/videodev2.h

[PATCH v13 16/16] media: vim2m-audio: add virtual driver for audio memory to memory

2024-02-26 Thread Shengjiu Wang
to output buffer. Signed-off-by: Shengjiu Wang --- drivers/media/test-drivers/Kconfig | 10 + drivers/media/test-drivers/Makefile | 1 + drivers/media/test-drivers/vim2m-audio.c | 793 +++ 3 files changed, 804 insertions(+) create mode 100644 drivers/media/test-drivers

[PATCH v13 15/16] media: imx-asrc: Add memory to memory driver

2024-02-26 Thread Shengjiu Wang
-off-by: Shengjiu Wang --- drivers/media/platform/nxp/Kconfig| 13 + drivers/media/platform/nxp/Makefile |1 + drivers/media/platform/nxp/imx-asrc.c | 1256 + 3 files changed, 1270 insertions(+) create mode 100644 drivers/media/platform/nxp/imx-asrc.c diff --git

[PATCH v13 00/16] Add audio support in v4l2 framework

2024-02-26 Thread Shengjiu Wang
der Hans Verkuil (1): media: v4l2-ctrls: add support for fraction_bits Shengjiu Wang (15): ASoC: fsl_asrc: define functions for memory to memory usage ASoC: fsl_easrc: define functions for memory to memory usage ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound ASoC: fsl_asrc: reg

[PATCH v13 04/16] ASoC: fsl_asrc: move fsl_asrc_common.h to include/sound

2024-02-26 Thread Shengjiu Wang
Move fsl_asrc_common.h to include/sound that it can be included from other drivers. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- {sound/soc/fsl => include/sound}/fsl_asrc_common.h | 0 sound/soc/fsl/fsl_asrc.h | 2 +- sound/soc/fsl/fsl_asrc_dm

[PATCH v13 13/16] media: uapi: Add an entity type for audio resampler

2024-02-26 Thread Shengjiu Wang
Add and document a media entity type for an audio resampler. It is MEDIA_ENT_F_PROC_AUDIO_RESAMPLER. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/mediactl/media-types.rst | 6 ++ include/uapi/linux/media.h | 1 + 2 files changed, 7

[PATCH v13 08/16] media: v4l2: Add audio capture and output support

2024-02-26 Thread Shengjiu Wang
device is named "/dev/v4l-audioX". Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/buffer.rst| 6 ++ .../media/v4l/dev-audio-mem2mem.rst | 71 +++ .../userspace-api/media/v4l/devices.rst | 1 + .../media/v4l/vidioc-en

[PATCH v13 10/16] media: uapi: Add V4L2_CTRL_CLASS_M2M_AUDIO

2024-02-26 Thread Shengjiu Wang
The Audio M2M class includes controls for audio memory-to-memory use cases. The controls can be used for audio codecs, audio preprocessing, audio postprocessing. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/v4l/common.rst| 1 + .../media/v4l/ext-ctrls-audio-m2m.rst

[PATCH v13 11/16] media: uapi: Add audio rate controls support

2024-02-26 Thread Shengjiu Wang
Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE new IDs for rate control. Add V4L2_CID_M2M_AUDIO_SOURCE_RATE_OFFSET and V4L2_CID_M2M_AUDIO_DEST_RATE_OFFSET for clock drift. Signed-off-by: Shengjiu Wang --- .../media/v4l/ext-ctrls-audio-m2m.rst | 38

[PATCH v13 05/16] ASoC: fsl_asrc: register m2m platform device

2024-02-26 Thread Shengjiu Wang
Register m2m platform device, that user can use M2M feature. Defined platform data structure and platform driver name. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- include/sound/fsl_asrc_common.h | 23 +++ sound/soc/fsl/fsl_asrc.c| 18 ++ 2

[PATCH v13 06/16] ASoC: fsl_easrc: register m2m platform device

2024-02-26 Thread Shengjiu Wang
Register m2m platform device,that user can use M2M feature. Signed-off-by: Shengjiu Wang Acked-by: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 19 +++ 1 file changed, 19 insertions(+) diff --git a/sound/soc/fsl/fsl_easrc.c b/sound/soc/fsl/fsl_easrc.c index cf7ad30a323b

[PATCH v13 01/16] media: v4l2-ctrls: add support for fraction_bits

2024-02-26 Thread Shengjiu Wang
From: Hans Verkuil This adds support for the fraction_bits field, used with integer controls. This allows fixed point formats to be described. The fraction_bits field is only exposed through VIDIOC_QUERY_EXT_CTRL. For a given signed two's complement Qf fixed point value 'f' equals

[PATCH v13 07/16] media: uapi: Add V4L2_CAP_AUDIO_M2M capability flag

2024-02-26 Thread Shengjiu Wang
V4L2_CAP_AUDIO_M2M is similar to V4L2_CAP_VIDEO_M2M flag. It is used for audio memory to memory case. Signed-off-by: Shengjiu Wang --- Documentation/userspace-api/media/v4l/vidioc-querycap.rst| 3 +++ Documentation/userspace-api/media/videodev2.h.rst.exceptions | 1 + include/uapi/linux

[PATCH v13 02/16] ASoC: fsl_asrc: define functions for memory to memory usage

2024-02-26 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: Mark Brown --- sound/soc/fsl

[PATCH v13 03/16] ASoC: fsl_easrc: define functions for memory to memory usage

2024-02-26 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: Mark Brown --- sound/soc/fsl/fsl_easrc.c | 214 ++ sound/soc/fsl/fsl_easrc.h | 4 + 2 files

[PATCH v13 12/16] media: uapi: Declare interface types for Audio

2024-02-26 Thread Shengjiu Wang
Declare the interface types that will be used by Audio. The type is MEDIA_INTF_T_V4L_AUDIO. Signed-off-by: Shengjiu Wang --- .../userspace-api/media/mediactl/media-types.rst| 5 + drivers/media/v4l2-core/v4l2-dev.c | 4 drivers/media/v4l2-core/v4l2-mem2mem.c

Re: [PATCH v12 08/15] media: uapi: Define audio sample format fourcc type

2024-02-21 Thread Shengjiu Wang
On Wed, Feb 21, 2024 at 7:10 PM Hans Verkuil wrote: > > On 19/02/2024 13:56, Mauro Carvalho Chehab wrote: > > Em Mon, 19 Feb 2024 12:05:02 +0800 > > Shengjiu Wang escreveu: > > > >> Hi Mauro > >> > >> On Sat, Feb 17, 2024 at 5:19 PM Mauro Carv

Re: [PATCH v12 07/15] media: v4l2: Add audio capture and output support

2024-02-21 Thread Shengjiu Wang
On Wed, Feb 21, 2024 at 12:30 PM Tomasz Figa wrote: > > On Sat, Feb 17, 2024 at 6:42 PM Mauro Carvalho Chehab > wrote: > > > > Em Thu, 18 Jan 2024 20:32:00 +0800 > > Shengjiu Wang escreveu: > > > > > Audio signal processing has the requirement f

Re: [PATCH v12 07/15] media: v4l2: Add audio capture and output support

2024-02-18 Thread Shengjiu Wang
Hi Mauro, Hans On Sat, Feb 17, 2024 at 5:42 PM Mauro Carvalho Chehab wrote: > > Em Thu, 18 Jan 2024 20:32:00 +0800 > Shengjiu Wang escreveu: > > > Audio signal processing has the requirement for memory to > > memory similar as Video. > > > > This patch is t

Re: [PATCH v12 10/15] media: uapi: Add audio rate controls support

2024-02-18 Thread Shengjiu Wang
On Sat, Feb 17, 2024 at 5:57 PM Mauro Carvalho Chehab wrote: > > Em Thu, 18 Jan 2024 20:32:03 +0800 > Shengjiu Wang escreveu: > > > Add V4L2_CID_M2M_AUDIO_SOURCE_RATE and V4L2_CID_M2M_AUDIO_DEST_RATE > > new IDs for rate control. > > > > Add V

  1   2   3   4   5   6   7   >