diff mbox

FM1216MK5 FM radio patch

Message ID 20090616105523.0d03862c@glory.loctelecom.ru (mailing list archive)
State Accepted
Delegated to: Douglas Landgraf
Headers show

Commit Message

Dmitri Belimov June 16, 2009, 12:55 a.m. UTC
Hi

Next code for 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>


With my best regards, Dmitry.
diff mbox

Patch

diff -r bff77ec33116 linux/drivers/media/common/tuners/tuner-simple.c
--- a/linux/drivers/media/common/tuners/tuner-simple.c	Thu Jun 11 18:44:23 2009 -0300
+++ b/linux/drivers/media/common/tuners/tuner-simple.c	Tue Jun 16 05:27:52 2009 +1000
@@ -145,6 +145,8 @@ 
 	case TUNER_LG_NTSC_TAPE:
 	case TUNER_TCL_MF02GIP_5N:
 		return ((status & TUNER_SIGNAL) == TUNER_STEREO_MK3);
+	case TUNER_PHILIPS_FM1216MK5:
+		return status | TUNER_STEREO;
 	default:
 		return status & TUNER_STEREO;
 	}
@@ -514,6 +516,10 @@ 
 	case TUNER_PHILIPS_FM1256_IH3:
 	case TUNER_TCL_MF02GIP_5N:
 		buffer[3] = 0x19;
+		break;
+	case TUNER_PHILIPS_FM1216MK5:
+		buffer[2] = 0x88;
+		buffer[3] = 0x09;
 		break;
 	case TUNER_TNF_5335MF:
 		buffer[3] = 0x11;

Signed-off-by: Beholder Intl. Ltd. Dmitry Belimov <d.belimov@gmail.com>