OSDN Git Service

ASOC: SOF: simplify nocodec mode
authorPierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Fri, 9 Apr 2021 22:01:21 +0000 (15:01 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 12 Apr 2021 16:05:55 +0000 (17:05 +0100)
commit4c1cc83fcc7e02f6f6f76da2ea66af86a95fd675
treea02c04a2813be7f3fc19ac57462babfdc7649bc6
parentf3f3af1743350fdc7c373772fb3740dc223db8e5
ASOC: SOF: simplify nocodec mode

Replace ugly #if (!IS_ENABLED) by if (!IS_ENABLED), remove
cross-module dependencies and use classic mechanism to pass
information to the machine driver.

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Daniel Baluta <daniel.baluta@gmail.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20210409220121.1542362-7-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/sof.h
sound/soc/sof/nocodec.c
sound/soc/sof/sof-audio.c