All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v1 0/2] ASoC: codecs: add ES8389 codec driver
@ 2025-02-28 10:02 Zhang Yi
  2025-02-28 10:02 ` [PATCH v1 1/2] ASoC: codecs: add support for ES8389 Zhang Yi
  2025-02-28 10:02 ` [PATCH v1 2/2] ASoC: dt-bindings: Add Everest ES8389 audio CODEC Zhang Yi
  0 siblings, 2 replies; 7+ messages in thread
From: Zhang Yi @ 2025-02-28 10:02 UTC (permalink / raw)
  To: alsa-devel, broonie, devicetree; +Cc: tiwai, amadeuszx.slawinski, Zhang Yi

The driver is for codec ES8389 of everest-semi.

Zhang Yi (2):
  ASoC: codecs: add support for ES8389
  ASoC: dt-bindings: Add Everest ES8389 audio CODEC

 .../bindings/sound/everest,es8389.yaml        |  98 ++
 sound/soc/codecs/Kconfig                      |   6 +-
 sound/soc/codecs/Makefile                     |   2 +
 sound/soc/codecs/es8389.c                     | 985 ++++++++++++++++++
 sound/soc/codecs/es8389.h                     | 139 +++
 5 files changed, 1229 insertions(+), 1 deletion(-)
 create mode 100755 Documentation/devicetree/bindings/sound/everest,es8389.yaml
 create mode 100644 sound/soc/codecs/es8389.c
 create mode 100644 sound/soc/codecs/es8389.h

-- 
2.17.1


^ permalink raw reply	[flat|nested] 7+ messages in thread
* RE: [PATCH v1 2/2] ASoC: dt-bindings: Add Everest ES8389 audio CODEC
@ 2025-03-03  8:58 Zhang Yi
  0 siblings, 0 replies; 7+ messages in thread
From: Zhang Yi @ 2025-03-03  8:58 UTC (permalink / raw)
  To: robh; +Cc: alsa-devel, broonie, tiwai, amadeuszx.slawinski

> > +  everest,adc-slot:
> > +    $ref: /schemas/types.yaml#/definitions/uint8
> > +    description: |
> > +      This property is used to set the slots of recording data when multiple
> > +      codecs are connected in PTDM mode.
> > +      please set this property to default if you are setting STDM mode.
> > +    minimum: 0x00
> > +    maximum: 0x07
> > +    default: 0x00
> > +
> > +  everest,dac-slot:
> > +    $ref: /schemas/types.yaml#/definitions/uint8
> > +    description: |
> > +      This property is used to set the slots of playing data when multiple
> > +      codecs are connected in TDM mode.
> > +      please do not set this property if you use single codec.
> > +    minimum: 0x00
> > +    maximum: 0x07
> > +    default: 0x00
> 
> Can't the dai-tdm-* properties work for you?

We will register multiple codecs inside a single dai_link and differentiate these
codecs by of_node. so we can't use dai-tdm-slot* to define the slot for each codec

> > +
> > +  prefix_name:
> > +    $ref: /schemas/types.yaml#/definitions/string
> > +    description: device name prefix
> 
> Why do you need this?

When using multiple codecs, we utilize prefix_name to distinguish the dapm and
kcontro of each individual codec.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2025-03-05  9:39 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-02-28 10:02 [PATCH v1 0/2] ASoC: codecs: add ES8389 codec driver Zhang Yi
2025-02-28 10:02 ` [PATCH v1 1/2] ASoC: codecs: add support for ES8389 Zhang Yi
2025-03-03  9:03   ` Amadeusz Sławiński
2025-02-28 10:02 ` [PATCH v1 2/2] ASoC: dt-bindings: Add Everest ES8389 audio CODEC Zhang Yi
2025-02-28 11:28   ` Rob Herring (Arm)
2025-02-28 12:46   ` Rob Herring
  -- strict thread matches above, loose matches on Subject: below --
2025-03-03  8:58 Zhang Yi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.