ASoC: AMD: Add NULL pointer check
authorAgrawal, Akshu <Akshu.Agrawal@amd.com>
Thu, 7 Jun 2018 06:48:43 +0000 (14:48 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:33:08 +0000 (12:33 +0100)
commit6e56e5d04191aa20e08430dcb203c081fa247e93
tree5de4f56d4f8c1cdfdf865d50a2d97dd097172bf1
parent203cdf51f28820bee7893b4be392847418e6f4ec
ASoC: AMD: Add NULL pointer check

Fix crash in those platforms whose machine driver does not expose
platform_info. For those platforms we rely on default value and
select I2SSP channel.

Signed-off-by: Akshu Agrawal <akshu.agrawal@amd.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/acp-pcm-dma.c