patch(2.4.19rc1): radio zoltrix typo

From: Gunther Mayer (gunther.mayer@gmx.net)
Date: Mon Jul 15 2002 - 04:44:35 EST


Hi,
this fixes the stereo indicator for the zoltrix radio card.
Marcelo, apply to 2.4.19 please.

Regards, Gunther

--- linux-2.4.19-rc1/drivers/media/radio/radio-zoltrix-orig Mon Jul
15 11:34:06 2002
+++ linux-2.4.19-rc1/drivers/media/radio/radio-zoltrix.c Mon Jul
15 11:36:51 2002
@@ -23,6 +23,7 @@
  * (can detect if station is in stereo)
  * - Added unmute function
  * - Reworked ioctl functions
+ * 2002-07-15 - Fix Stereo typo
  */

 #include <linux/module.h> /* Modules */
@@ -280,7 +281,7 @@
                        struct video_audio v;
                        memset(&v, 0, sizeof(v));
                        v.flags |= VIDEO_AUDIO_MUTABLE |
VIDEO_AUDIO_VOLUME;
- v.mode != zol_is_stereo(zol)
+ v.mode |= zol_is_stereo(zol)
                                ? VIDEO_SOUND_STEREO : VIDEO_SOUND_MONO;

                        v.volume = zol->curvol * 4096;
                        v.step = 4096;


--- linux-2.4.19-rc1/drivers/media/radio/radio-zoltrix-orig Mon Jul 15 11:34:06 2002
+++ linux-2.4.19-rc1/drivers/media/radio/radio-zoltrix.c Mon Jul 15 11:36:51 2002
@@ -23,6 +23,7 @@
  * (can detect if station is in stereo)
  * - Added unmute function
  * - Reworked ioctl functions
+ * 2002-07-15 - Fix Stereo typo
  */
 
 #include <linux/module.h> /* Modules */
@@ -280,7 +281,7 @@
                         struct video_audio v;
                         memset(&v, 0, sizeof(v));
                         v.flags |= VIDEO_AUDIO_MUTABLE | VIDEO_AUDIO_VOLUME;
- v.mode != zol_is_stereo(zol)
+ v.mode |= zol_is_stereo(zol)
                                 ? VIDEO_SOUND_STEREO : VIDEO_SOUND_MONO;
                         v.volume = zol->curvol * 4096;
                         v.step = 4096;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jul 15 2002 - 22:00:29 EST