]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commit
ASoC: hdmi-codec: fix S/PDIF DAI
authorRussell King <rmk+kernel@armlinux.org.uk>
Thu, 28 Feb 2019 15:30:34 +0000 (15:30 +0000)
committerStefan Bader <stefan.bader@canonical.com>
Tue, 2 Jul 2019 10:07:53 +0000 (12:07 +0200)
commitd79ee95a9f78bcb9eed77d04c25f4e79be5fb836
treee66ba0e656eca84206f3de593eee0535b70074ca
parentf0a76a86b92999725c8cd6143ccaf15277b9bf43
ASoC: hdmi-codec: fix S/PDIF DAI

BugLink: https://bugs.launchpad.net/bugs/1834529
[ Upstream commit 2e95f984aae4cf0608d0ba2189c756f2bd50b44a ]

When using the S/PDIF DAI, there is no requirement to call
snd_soc_dai_set_fmt() as there is no DAI format definition that defines
S/PDIF.  In any case, S/PDIF does not have separate clocks, this is
embedded into the data stream.

Consequently, when attempting to use TDA998x in S/PDIF mode, the attempt
to configure TDA998x via the hw_params callback fails as the
hdmi_codec_daifmt is left initialised to zero.

Since the S/PDIF DAI will only be used by S/PDIF, prepare the
hdmi_codec_daifmt structure for this format.

Signed-off-by: Russell King <rmk+kernel@armlinux.org.uk>
Reviewed-by: Jyri Sarha <jsarha@ti.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Connor Kuehl <connor.kuehl@canonical.com>
Signed-off-by: Kleber Sacilotto de Souza <kleber.souza@canonical.com>
sound/soc/codecs/hdmi-codec.c