]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: rt5651: Add rt5651_apply_properties() helper function
authorHans de Goede <hdegoede@redhat.com>
Sun, 25 Feb 2018 10:46:46 +0000 (11:46 +0100)
committerMark Brown <broonie@kernel.org>
Thu, 1 Mar 2018 17:32:25 +0000 (17:32 +0000)
commita0380b3def9f32b54795db105565f26c04a551b2
treea4bac43171d79e9f99e358509535112dc47dce4d
parent6e7102c697d95d4ba105355d984bcb45a4c1a2b5
ASoC: rt5651: Add rt5651_apply_properties() helper function

Move the applying of the differential input and dmic properties to a new
rt5651_apply_properties() helper function. This new function can be called
by platform code which attaches properties after probe() has run to apply
these new properties.

Note this also moves the time when we apply these properties for DT
platforms from i2c-probe to snd-component-probe time, this should not
result in any functional difference.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5651.c
sound/soc/codecs/rt5651.h