From patchwork Tue Nov 17 16:18:39 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Anton Myachin X-Patchwork-Id: 60714 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nAHGJ8LI002963 for ; Tue, 17 Nov 2009 16:19:08 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752535AbZKQQSo (ORCPT ); Tue, 17 Nov 2009 11:18:44 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752618AbZKQQSo (ORCPT ); Tue, 17 Nov 2009 11:18:44 -0500 Received: from mail.lantan.ru ([195.128.246.20]:59962 "EHLO mail.lantan.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752278AbZKQQSo convert rfc822-to-8bit (ORCPT ); Tue, 17 Nov 2009 11:18:44 -0500 Received: from hyperion.intranet.lantan.ru ([fe80::5efe:192.168.137.251]) by hyperion.intranet.lantan.ru ([fe80::5efe:192.168.137.251%11]) with mapi; Tue, 17 Nov 2009 21:17:40 +0500 From: Anton Myachin To: "linux-media@vger.kernel.org" Date: Tue, 17 Nov 2009 21:18:39 +0500 Subject: [PATCH] dvb-apps: fixes in scan utility Thread-Topic: [PATCH] dvb-apps: fixes in scan utility Thread-Index: AcpnoZ6YS9kqMAukSnKnSyt6rGFl1w== Message-ID: <157C68AB74BE874882CBA1525C1D967F61530EFFD5@hyperion.intranet.lantan.ru> Accept-Language: ru-RU Content-Language: ru-RU X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: ru-RU MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org --- a/util/scan/scan.c  2009-11-16 19:29:41.000000000 +0500 +++ b/util/scan/scan.c  2009-11-16 20:37:44.000000000 +0500 @@ -1484,7 +1484,7 @@ static int __tune_to_transponder (int fr                                 setup_switch (frontend_fd,                                               switch_pos, -                                             t->polarisation == POLARISATION_VERTICAL ? 0 : 1, +                                             t->polarisation == POLARISATION_VERTICAL || t->polarisation == POLARISATION_CIRCULAR_RIGHT ? 0 : 1,                                               hiband);                                 usleep(50000);                                 if (hiband) @@ -1497,7 +1497,12 @@ static int __tune_to_transponder (int fr                                                 lnb_type.low_val: lnb_type.high_val));                         }                 } else  { -                       /* Monopoint LNBf without switch */ +                       /* Monopoint LNBf */ +                       setup_switch (frontend_fd, +                                     switch_pos, +                                     t->polarisation == POLARISATION_VERTICAL || t->polarisation == POLARISATION_CIRCULAR_RIGHT ? 0 : 1, +                                     0); +                       usleep(50000);                         p.frequency = abs(p.frequency - lnb_type.low_val);                 }                 if (verbosity >= 2) @@ -1930,7 +1935,7 @@ static void pids_dump_service_parameter_  static char sat_polarisation (struct transponder *t)  { -       return t->polarisation == POLARISATION_VERTICAL ? 'v' : 'h'; +       return t->polarisation == POLARISATION_VERTICAL || t->polarisation == POLARISATION_CIRCULAR_RIGHT ? 'v' : 'h';  }  static int sat_number (struct transponder *t)