ASoC: hdmi-codec: remove ops dependency on the dai id
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 6 May 2019 09:58:15 +0000 (11:58 +0200)
committerMark Brown <broonie@kernel.org>
Wed, 8 May 2019 08:16:28 +0000 (17:16 +0900)
commit0cf4610b9f297e570da4d98514b310f076ecc8ab
tree49ab58a4b6adac954a67790a152129c36d5d9061
parent1de005d47d90343666c5cc50a50929e05e52baac
ASoC: hdmi-codec: remove ops dependency on the dai id

The dependency on the dai_id can be removed by setting different ops
for the i2s and spdif dai and storing the dai format information in
each dai structure. It simplies the code a bit.

Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/hdmi-codec.c