summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorHans de Goede <hdegoede@redhat.com>2012-05-18 09:36:17 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2012-07-30 17:56:26 -0300
commit31a62d415726d94bae5caf5f2e50232aa06babf6 (patch)
tree124ec997e8674c1d6ee19d1e3e4714e8da4df1ac /include
parent9bc31633c20ca6a49071f2162c232ae556151cc2 (diff)
downloadblackbird-obmc-linux-31a62d415726d94bae5caf5f2e50232aa06babf6.tar.gz
blackbird-obmc-linux-31a62d415726d94bae5caf5f2e50232aa06babf6.zip
[media] snd_tea575x: Add write_/read_val operations
Some devices which use the tea575x tuner chip don't allow bit banging the lines, instead they offer a method to directly set / get the contents of the 25 bit shift-register in the chip. Notably the Griffin radioSHARK USB radio receiver does this. Signed-off-by: Hans de Goede <hdegoede@redhat.com> CC: Ondrej Zary <linux@rainbow-software.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'include')
-rw-r--r--include/sound/tea575x-tuner.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/sound/tea575x-tuner.h b/include/sound/tea575x-tuner.h
index 0c3c2fb0f939..7bd6f6145a38 100644
--- a/include/sound/tea575x-tuner.h
+++ b/include/sound/tea575x-tuner.h
@@ -37,6 +37,10 @@
struct snd_tea575x;
struct snd_tea575x_ops {
+ /* Drivers using snd_tea575x must either define read_ and write_val */
+ void (*write_val)(struct snd_tea575x *tea, u32 val);
+ u32 (*read_val)(struct snd_tea575x *tea);
+ /* Or define the 3 pin functions */
void (*set_pins)(struct snd_tea575x *tea, u8 pins);
u8 (*get_pins)(struct snd_tea575x *tea);
void (*set_direction)(struct snd_tea575x *tea, bool output);
OpenPOWER on IntegriCloud