diff options
| -rw-r--r-- | Documentation/devicetree/bindings/sound/bt-sco.txt | 13 | ||||
| -rw-r--r-- | Documentation/devicetree/bindings/vendor-prefixes.txt | 1 | ||||
| -rw-r--r-- | sound/soc/codecs/bt-sco.c | 9 |
3 files changed, 23 insertions, 0 deletions
diff --git a/Documentation/devicetree/bindings/sound/bt-sco.txt b/Documentation/devicetree/bindings/sound/bt-sco.txt new file mode 100644 index 000000000000..29b8e5d40203 --- /dev/null +++ b/Documentation/devicetree/bindings/sound/bt-sco.txt | |||
| @@ -0,0 +1,13 @@ | |||
| 1 | Bluetooth-SCO audio CODEC | ||
| 2 | |||
| 3 | This device support generic Bluetooth SCO link. | ||
| 4 | |||
| 5 | Required properties: | ||
| 6 | |||
| 7 | - compatible : "delta,dfbmcs320" | ||
| 8 | |||
| 9 | Example: | ||
| 10 | |||
| 11 | codec: bt_sco { | ||
| 12 | compatible = "delta,dfbmcs320"; | ||
| 13 | }; | ||
diff --git a/Documentation/devicetree/bindings/vendor-prefixes.txt b/Documentation/devicetree/bindings/vendor-prefixes.txt index 80339192c93e..b6969e477bf3 100644 --- a/Documentation/devicetree/bindings/vendor-prefixes.txt +++ b/Documentation/devicetree/bindings/vendor-prefixes.txt | |||
| @@ -54,6 +54,7 @@ cosmic Cosmic Circuits | |||
| 54 | crystalfontz Crystalfontz America, Inc. | 54 | crystalfontz Crystalfontz America, Inc. |
| 55 | dallas Maxim Integrated Products (formerly Dallas Semiconductor) | 55 | dallas Maxim Integrated Products (formerly Dallas Semiconductor) |
| 56 | davicom DAVICOM Semiconductor, Inc. | 56 | davicom DAVICOM Semiconductor, Inc. |
| 57 | delta Delta Electronics, Inc. | ||
| 57 | denx Denx Software Engineering | 58 | denx Denx Software Engineering |
| 58 | digi Digi International Inc. | 59 | digi Digi International Inc. |
| 59 | digilent Diglent, Inc. | 60 | digilent Diglent, Inc. |
diff --git a/sound/soc/codecs/bt-sco.c b/sound/soc/codecs/bt-sco.c index 9d0b794d3005..b084ad113e96 100644 --- a/sound/soc/codecs/bt-sco.c +++ b/sound/soc/codecs/bt-sco.c | |||
| @@ -74,9 +74,18 @@ static const struct platform_device_id bt_sco_driver_ids[] = { | |||
| 74 | }; | 74 | }; |
| 75 | MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids); | 75 | MODULE_DEVICE_TABLE(platform, bt_sco_driver_ids); |
| 76 | 76 | ||
| 77 | #if defined(CONFIG_OF) | ||
| 78 | static const struct of_device_id bt_sco_codec_of_match[] = { | ||
| 79 | { .compatible = "delta,dfbmcs320", }, | ||
| 80 | {}, | ||
| 81 | }; | ||
| 82 | MODULE_DEVICE_TABLE(of, bt_sco_codec_of_match); | ||
| 83 | #endif | ||
| 84 | |||
| 77 | static struct platform_driver bt_sco_driver = { | 85 | static struct platform_driver bt_sco_driver = { |
| 78 | .driver = { | 86 | .driver = { |
| 79 | .name = "bt-sco", | 87 | .name = "bt-sco", |
| 88 | .of_match_table = of_match_ptr(bt_sco_codec_of_match), | ||
| 80 | }, | 89 | }, |
| 81 | .probe = bt_sco_probe, | 90 | .probe = bt_sco_probe, |
| 82 | .remove = bt_sco_remove, | 91 | .remove = bt_sco_remove, |
