sound: Fixes for audioinjector-octo under 4.19
authorPhil Elwell <phil@raspberrypi.org>
Thu, 21 Mar 2019 11:19:46 +0000 (11:19 +0000)
committerpopcornmix <popcornmix@gmail.com>
Mon, 13 May 2019 23:08:28 +0000 (00:08 +0100)
commit784c57315226e117147ed32951d23a70532ea72a
treeb3fe892000752169793c15a3a1d526bf296e293c
parent734611369e69837b76af90380b027455a8bb771f
sound: Fixes for audioinjector-octo under 4.19

1. Move the DT alias declaration to the I2C shim in the cases
where the shim is enabled. This works around a problem caused by a
4.19 commit [1] that generates DT/OF uevents for I2C drivers.

2. Fix the diagnostics in an error path of the soundcard driver to
correctly identify the reason for the failure to load.

3. Move the declaration of the clock node in the overlay outside
the I2C node to avoid warnings.

4. Sort the overlay nodes so that dependencies are only to earlier
fragments, in an attempt to get runtime dtoverlay application to
work (it still doesn't...)

See: https://github.com/Audio-Injector/Octo/issues/14
Signed-off-by: Phil Elwell <phil@raspberrypi.org>
[1] af503716ac14 ("i2c: core: report OF style module alias for devices registered via OF")
arch/arm/boot/dts/overlays/audioinjector-addons-overlay.dts
sound/soc/bcm/audioinjector-octo-soundcard.c
sound/soc/codecs/cs42xx8-i2c.c
sound/soc/codecs/cs42xx8.c