diff options
author | VahidGharaee <vgharaee@gmail.com> | 2019-11-25 08:23:15 +0330 |
---|---|---|
committer | VahidGharaee <vgharaee@gmail.com> | 2019-12-31 08:33:26 +0330 |
commit | e2cbc7a72414ce3d385760965351607b71acc214 (patch) | |
tree | 56bd8d5213560c2068b18220b518b7d3317a58b5 /binding/radio-binding.c | |
parent | 885c33492537df6e90a8de7cbe38e769059b9782 (diff) |
Add support for TEF665x in agl-service-radioicefish_8.99.5icefish/8.99.58.99.5
This is a NXP tuner AM/FM/RDS. The chip has analogue and digital sound
output and input. Chip is controlled through i2c.
I had to add a sound cart to the kernel to be able to capture the i2s
data from the chip.
Some of the verbs still to be implemented. I test it on a costum board
with imx6solo.
Bug-AGL SPEC-3071
Signed-off-by: VahidGharaee <vgharaee@gmail.com>
Change-Id: I868706e6d275aef77f77138f815b1b53d64780be
Diffstat (limited to 'binding/radio-binding.c')
-rw-r--r-- | binding/radio-binding.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/binding/radio-binding.c b/binding/radio-binding.c index 81de631..6df4b6d 100644 --- a/binding/radio-binding.c +++ b/binding/radio-binding.c @@ -29,6 +29,7 @@ #include "radio_impl.h" #include "radio_impl_rtlsdr.h" #include "radio_impl_kingfisher.h" +#include "radio_impl_tef665x.h" static radio_impl_ops_t *radio_impl_ops; @@ -561,6 +562,10 @@ static int init(afb_api_t api) radio_impl_ops = &kf_impl_ops; rc = radio_impl_ops->init(); } + if(rc != 0) { + radio_impl_ops = &tef665x_impl_ops; + rc = radio_impl_ops->init(); + } if (rc != 0) { AFB_API_ERROR(afbBindingV3root, "No radio device found, exiting"); } |