Skip to content

Commit

Permalink
ASoC: soc-utils: HACK: DT binding for snd-soc-dummy
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
  • Loading branch information
Peter Ujfalusi committed Sep 10, 2020
1 parent 0ebb2fd commit 828c8f4
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions sound/soc/soc-utils.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down Expand Up @@ -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,
};
Expand Down

0 comments on commit 828c8f4

Please sign in to comment.