From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: "Furtak, Pawel" Date: Thu, 21 Mar 2019 14:13:30 -0800 Subject: [PATCH] ASoC: Intel: Skl: Virt: FE: snd card registration notification Using FE funcion on machine driver registration will be more generic and will allow to be easily extendable for future features. Change-Id: Ic0c438fb28fbb13934cab89a091705fe201848a6 Tracked-On: OAM-77677 Signed-off-by: Pawel Furtak --- sound/soc/intel/skylake/virtio/skl-virtio-card.c | 2 +- sound/soc/intel/skylake/virtio/skl-virtio-fe.c | 6 ++++++ sound/soc/intel/skylake/virtio/skl-virtio.h | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/sound/soc/intel/skylake/virtio/skl-virtio-card.c b/sound/soc/intel/skylake/virtio/skl-virtio-card.c index fa17f67b4473..baf37a4107f0 100644 --- a/sound/soc/intel/skylake/virtio/skl-virtio-card.c +++ b/sound/soc/intel/skylake/virtio/skl-virtio-card.c @@ -341,7 +341,7 @@ static int skl_virtio_card_probe(struct platform_device *pdev) if (ret < 0) return ret; - kctl_notify_machine_ready(card); + vfe_notify_machine_ready(card); return ret; } diff --git a/sound/soc/intel/skylake/virtio/skl-virtio-fe.c b/sound/soc/intel/skylake/virtio/skl-virtio-fe.c index 20a37d48d061..ae161266c78b 100644 --- a/sound/soc/intel/skylake/virtio/skl-virtio-fe.c +++ b/sound/soc/intel/skylake/virtio/skl-virtio-fe.c @@ -806,6 +806,12 @@ static int vfe_platform_register(struct snd_skl_vfe *vfe, struct device *dev) return result; } +void vfe_notify_machine_ready(struct snd_soc_card *card) +{ + kctl_notify_machine_ready(card); +} +EXPORT_SYMBOL(vfe_notify_machine_ready); + static int vfe_machine_device_register(struct snd_skl_vfe *vfe, struct skl *skl) { struct snd_soc_acpi_mach *mach = skl->mach; diff --git a/sound/soc/intel/skylake/virtio/skl-virtio.h b/sound/soc/intel/skylake/virtio/skl-virtio.h index d2a031107630..00b0cee287e2 100644 --- a/sound/soc/intel/skylake/virtio/skl-virtio.h +++ b/sound/soc/intel/skylake/virtio/skl-virtio.h @@ -22,6 +22,7 @@ extern void vfe_sst_dsp_cleanup(struct device *dev, struct skl_sst *ctx); #endif +void vfe_notify_machine_ready(struct snd_soc_card *card); void kctl_notify_machine_ready(struct snd_soc_card *card); #endif //__SOUND_SOC_SKL_VIRTIO_H -- https://clearlinux.org