Skip to content

Commit

Permalink
ASoC: SOF: Intel: compile out EDISON or BAYTRAIL if needed
Browse files Browse the repository at this point in the history
Only compile what is selected

Signed-off-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
  • Loading branch information
plbossart committed Dec 17, 2018
1 parent ea8d88f commit 5031018
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sound/soc/sof/intel/byt.c
Original file line number Diff line number Diff line change
Expand Up @@ -508,6 +508,8 @@ static struct snd_soc_dai_driver byt_dai[] = {
* Probe and remove.
*/

#if IS_ENABLED(CONFIG_SND_SOC_SOF_EDISON)

static int byt_pci_probe(struct snd_sof_dev *sdev)
{
struct snd_sof_pdata *pdata = sdev->pdata;
Expand Down Expand Up @@ -634,6 +636,10 @@ const struct snd_sof_dsp_ops sof_tng_ops = {
};
EXPORT_SYMBOL(sof_tng_ops);

#endif /* CONFIG_SND_SOC_SOF_EDISON */

#if IS_ENABLED(CONFIG_SND_SOC_SOF_BAYTRAIL)

static int byt_acpi_probe(struct snd_sof_dev *sdev)
{
struct snd_sof_pdata *pdata = sdev->pdata;
Expand Down Expand Up @@ -844,4 +850,6 @@ const struct snd_sof_dsp_ops sof_cht_ops = {
};
EXPORT_SYMBOL(sof_cht_ops);

#endif /* CONFIG_SND_SOC_SOF_BAYTRAIL */

MODULE_LICENSE("Dual BSD/GPL");

0 comments on commit 5031018

Please sign in to comment.