diff options
author | Jon Hunter <jonathanh@nvidia.com> | 2019-05-16 20:51:26 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2019-05-20 17:31:56 +0300 |
commit | 069d037aea98ffa64c26d4b1dc958fb8f39f5c2b (patch) | |
tree | 3e642fd4af6c8af6952fc75d540dc11ccfbbe7bc /tools/perf/scripts/python/check-perf-trace.py | |
parent | 30d9d4ff53532087bc13ed29d7715df868794b5e (diff) | |
download | linux-069d037aea98ffa64c26d4b1dc958fb8f39f5c2b.tar.xz |
ASoC: simple-card: Fix configuration of DAI format
When configuring a codec to be both bit-clock and frame-master, it was
found that the codec was always configured as bit-clock and frame-slave.
Looking at the simple_dai_link_of() function there appears to be two
problems with the configuration of the DAI format, which are ...
1. The function asoc_simple_parse_daifmt() is called before the function
asoc_simple_parse_codec() and this means that the device-tree node
for the codec has not been parsed yet, which is needed by the
function asoc_simple_parse_daifmt() to determine who is the codec.
2. The phandle passed to asoc_simple_parse_daifmt() is the phandle to
the 'codec' node and not the phandle of the actual codec defined by
the 'sound-dai' property under the 'codec' node.
Fix the above by moving the call to asoc_simple_parse_daifmt() after the
the call to asoc_simple_parse_codec() and pass the phandle for the codec
to asoc_simple_parse_daifmt().
Signed-off-by: Jon Hunter <jonathanh@nvidia.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions