Richard Fitzgerald
26e5366dd3
ASoC: dt-bindings: audio-graph-port: Add dai-tdm-slot-width-map
...
Some audio hardware cannot support a fixed slot width for all sample
widths, or a slot width equal to the sample width for all sample widths.
This is usually due either to limitations of the audio serial port or
system clocking restrictions.
This property allows setting a mapping of sample widths and the
corresponding tdm slot widths. The slot count is also provided for
each slot width - although this would almost always be the same for
all slot widths this allows for possibly adding extra padding slots
to maintain a fixed bitclock frequency.
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com >
Link: https://lore.kernel.org/r/20220228172754.453783-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2022-03-07 13:12:57 +00:00
Kuninori Morimoto
9b3c847b5f
ASoC: dt-bindings: audio-graph-port: enable both flag/phandle for bitclock/frame-master
...
snd_soc_daifmt_parse_clock_provider_raw() is handling both
bitclock/frame-master, and is supporting both flag/phandle.
Current DT is assuming it is flag style.
This patch allows both case.
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Reviewed-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20211216000018.2641925-1-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-12-17 11:06:20 +00:00
Rob Herring
ec1c830217
ASoC: dt-bindings: Use OF graph schema
...
Now that we have an OF graph schema, let's use it for the
audio-graph-port schema.
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Cc: alsa-devel@alsa-project.org
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210331142748.2163272-3-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-03-31 18:01:30 +01:00
Rob Herring
9c1e0439ad
ASoC: dt-bindings: Move port/ports properties out of audio-graph-port.yaml
...
Users of the audio-graph-port schema need to define how many ports
and what each port is, so they need to define 'ports' and/or 'port'
anyways. Let's drop 'ports' and 'port' from the schema and adjust users
to reference audio-graph-port.yaml from a port property.
Cc: Liam Girdwood <lgirdwood@gmail.com >
Cc: Mark Brown <broonie@kernel.org >
Cc: Thierry Reding <thierry.reding@gmail.com >
Cc: Jonathan Hunter <jonathanh@nvidia.com >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Cc: Lubomir Rintel <lkundrak@v3.sk >
Cc: Sameer Pujar <spujar@nvidia.com >
Cc: alsa-devel@alsa-project.org
Cc: linux-tegra@vger.kernel.org
Signed-off-by: Rob Herring <robh@kernel.org >
Link: https://lore.kernel.org/r/20210331142748.2163272-2-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-03-31 18:01:29 +01:00
Sameer Pujar
0be0f142b8
ASoC: audio-graph-card: Drop device node clocks property
...
An endpoint is not a device and it is recommended to use clocks property
in the device node. Hence reverting the original change.
Fixes: 531e5b7abb ("ASoC: audio-graph-card: Add clocks property to endpoint node")
Suggested-by: Rob Herring <robh@kernel.org >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Signed-off-by: Sameer Pujar <spujar@nvidia.com >
Link: https://lore.kernel.org/r/1612939421-19900-3-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-02-11 13:10:47 +00:00
Sameer Pujar
531e5b7abb
ASoC: audio-graph-card: Add clocks property to endpoint node
...
Add optional 'clocks' property to audio port 'endpoint' node. One
such example is where SoC supplies a clock to external audio codec
component.
Signed-off-by: Sameer Pujar <spujar@nvidia.com >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Reviewed-by: Jon Hunter <jonathanh@nvidia.com >
Link: https://lore.kernel.org/r/1611944866-29373-4-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-02-01 13:19:43 +00:00
Sameer Pujar
57c412d43d
ASoC: audio-graph-card: Drop remote-endpoint as required property
...
The remote-endpoint may not be available if it is part of some
pluggable module. One such example would be an audio card, the
Codec endpoint will not be available until it is plugged in.
Hence drop 'remote-endpoint' as a required property.
Cc: Rob Herring <robh@kernel.org >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
Signed-off-by: Sameer Pujar <spujar@nvidia.com >
Link: https://lore.kernel.org/r/1610948585-16286-1-git-send-email-spujar@nvidia.com
Signed-off-by: Mark Brown <broonie@kernel.org >
2021-01-18 14:02:50 +00:00
Rob Herring
251bf65855
ASoC: dt-bindings: Refine 'frame-master' and 'bitclock-master' type
...
'frame-master' and 'bitclock-master' are only a single phandle, so use
the more specific 'phandle' type definition instead.
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Sameer Pujar <spujar@nvidia.com >
Link: https://lore.kernel.org/r/20201117013349.2458416-5-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-11-18 18:00:21 +00:00
Sameer Pujar
e52f3f2911
ASoC: audio-graph-card: Refactor schema
...
There can be customized sound cards which are based on generic audio
graph. In such cases most of the stuff is reused from generic audio
graph. To facilitate this, refactor audio graph schema into multiple
files and the base schema can be reused for specific sound cards.
The graph card nodes and port nodes are separate entities, so they
should be separate schemas.
Signed-off-by: Sameer Pujar <spujar@nvidia.com >
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com >
[robh: Split out port schema. Add graph.yaml in subsequent commit]
Signed-off-by: Rob Herring <robh@kernel.org >
Acked-by: Sameer Pujar <spujar@nvidia.com >
Link: https://lore.kernel.org/r/20201117013349.2458416-2-robh@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org >
2020-11-18 18:00:19 +00:00