aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/common
diff options
context:
space:
mode:
authorDmitri Belimov <d.belimov@gmail.com>2009-08-26 21:06:28 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:19:33 -0400
commit5bc53a9f91d15628b65761e43234137904627642 (patch)
tree4e6df3bebad1e124ee86b9fdfcde5d8b1dc98c9c /drivers/media/common
parent092315a76ca28a2e8e09b071f1c0efb83bafc234 (diff)
V4L/DVB (12573): FM1216MK5 FM radio
Implement Philips FM1216MK5. 1. Implement get_stereo function. 2. Add correct data byte for FM radio mode Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com> Signed-off-by: Douglas Schilling Landgraf <dougsland@redhat.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r--drivers/media/common/tuners/tuner-simple.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/media/common/tuners/tuner-simple.c b/drivers/media/common/tuners/tuner-simple.c
index 149d54cdf7b9..8abbcc5fcf95 100644
--- a/drivers/media/common/tuners/tuner-simple.c
+++ b/drivers/media/common/tuners/tuner-simple.c
@@ -144,6 +144,8 @@ static inline int tuner_stereo(const int type, const int status)
144 case TUNER_LG_NTSC_TAPE: 144 case TUNER_LG_NTSC_TAPE:
145 case TUNER_TCL_MF02GIP_5N: 145 case TUNER_TCL_MF02GIP_5N:
146 return ((status & TUNER_SIGNAL) == TUNER_STEREO_MK3); 146 return ((status & TUNER_SIGNAL) == TUNER_STEREO_MK3);
147 case TUNER_PHILIPS_FM1216MK5:
148 return status | TUNER_STEREO;
147 default: 149 default:
148 return status & TUNER_STEREO; 150 return status & TUNER_STEREO;
149 } 151 }
@@ -508,6 +510,10 @@ static int simple_radio_bandswitch(struct dvb_frontend *fe, u8 *buffer)
508 case TUNER_TCL_MF02GIP_5N: 510 case TUNER_TCL_MF02GIP_5N:
509 buffer[3] = 0x19; 511 buffer[3] = 0x19;
510 break; 512 break;
513 case TUNER_PHILIPS_FM1216MK5:
514 buffer[2] = 0x88;
515 buffer[3] = 0x09;
516 break;
511 case TUNER_TNF_5335MF: 517 case TUNER_TNF_5335MF:
512 buffer[3] = 0x11; 518 buffer[3] = 0x11;
513 break; 519 break;