Skip to content

Commit

Permalink
ASoC: bt-sco: Add devicetree support for bt-sco codec
Browse files Browse the repository at this point in the history
Add devicetree support for bluetooth SCO link codec.

Signed-off-by: Marek Belisko <marek@goldelico.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
  • Loading branch information
Marek Belisko authored and Mark Brown committed May 12, 2015
1 parent c578743 commit c778b47
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Documentation/devicetree/bindings/sound/bt-sco.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Bluetooth-SCO audio CODEC

This device support generic Bluetooth SCO link.

Required properties:

- compatible : "delta,dfbmcs320"

Example:

codec: bt_sco {
compatible = "delta,dfbmcs320";
};
1 change: 1 addition & 0 deletions Documentation/devicetree/bindings/vendor-prefixes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ cosmic Cosmic Circuits
crystalfontz Crystalfontz America, Inc.
dallas Maxim Integrated Products (formerly Dallas Semiconductor)
davicom DAVICOM Semiconductor, Inc.
delta Delta Electronics, Inc.
denx Denx Software Engineering
digi Digi International Inc.
digilent Diglent, Inc.
Expand Down
9 changes: 9 additions & 0 deletions sound/soc/codecs/bt-sco.c
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,18 @@ static const struct platform_device_id bt_sco_driver_ids[] = {
};
MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids);

#if defined(CONFIG_OF)
static const struct of_device_id bt_sco_codec_of_match[] = {
{ .compatible = "delta,dfbmcs320", },
{},
};
MODULE_DEVICE_TABLE(of, bt_sco_codec_of_match);
#endif

static struct platform_driver bt_sco_driver = {
.driver = {
.name = "bt-sco",
.of_match_table = of_match_ptr(bt_sco_codec_of_match),
},
.probe = bt_sco_probe,
.remove = bt_sco_remove,
Expand Down

0 comments on commit c778b47

Please sign in to comment.