ASoC: Add helper to find codec_dai from dai_name
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Thu, 12 Oct 2017 23:38:02 +0000 (18:38 -0500)
committerMark Brown <broonie@kernel.org>
Wed, 18 Oct 2017 11:26:28 +0000 (12:26 +0100)
commit7c761b593e2c1dc6bc6c0c15ec338af1f00cabd7
tree23a3e6e41846ed7f5fc9c7703aa069ed76a4f33a
parent2bd6bf03f4c1c59381d62c61d03f6cc3fe71f66e
ASoC: Add helper to find codec_dai from dai_name

Create a helper function to remove duplicate code used in machine drivers

Suggested-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Acked-by: Liam Girdwood <liam.r.girdwood@linux.intel.com>
Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h