Skip to content
Permalink
Browse files
ASoC: soc-utils: HACK: DT binding for snd-soc-dummy
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
  • Loading branch information
Peter Ujfalusi committed Sep 10, 2020
1 parent 0ebb2fd commit 828c8f43c795312c7f457d498526b79d9ea8c80a
Showing 1 changed file with 8 additions and 0 deletions.
@@ -13,6 +13,7 @@
#include <sound/pcm.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
#include <linux/module.h>

int snd_soc_calc_frame_size(int sample_size, int channels, int tdm_slots)
{
@@ -146,9 +147,16 @@ static int snd_soc_dummy_probe(struct platform_device *pdev)
return ret;
}

static const struct of_device_id soc_dummy_ids[] = {
{ .compatible = "linux,snd-soc-dummy", },
{ }
};
MODULE_DEVICE_TABLE(of, soc_dummy_ids);

static struct platform_driver soc_dummy_driver = {
.driver = {
.name = "snd-soc-dummy",
.of_match_table = of_match_ptr(soc_dummy_ids),
},
.probe = snd_soc_dummy_probe,
};

0 comments on commit 828c8f4

Please sign in to comment.