From patchwork Sun Apr 5 10:20:42 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Uri Shkolnik X-Patchwork-Id: 16412 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 n35AKqGY024467 for ; Sun, 5 Apr 2009 10:20:52 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758541AbZDEKUt (ORCPT ); Sun, 5 Apr 2009 06:20:49 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1758717AbZDEKUt (ORCPT ); Sun, 5 Apr 2009 06:20:49 -0400 Received: from web110807.mail.gq1.yahoo.com ([67.195.13.230]:32748 "HELO web110807.mail.gq1.yahoo.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with SMTP id S1758415AbZDEKUp (ORCPT ); Sun, 5 Apr 2009 06:20:45 -0400 Received: (qmail 9351 invoked by uid 60001); 5 Apr 2009 10:20:43 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s1024; t=1238926842; bh=DD6mR96tHsEMpthmRemnHjVsixNmHTM7Lx9Qhwa5bzI=; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=TbzN6fT/sdHPm7ACa8GP5eW9/4OTKjmjP821Ub2efLAFERHz3bUaB4/fXQdFNGisueBwUWoA11SAwPp39+nMdoxazmI4Rxolm+x7gYpU7aYv+ZJ/zSAGTRJKABxn84bp+Aq9OAj+vSxy+Z9WcewUt+4pLrARk3QI/RQDYZv82Wg= DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:X-YMail-OSG:Received:X-Mailer:Date:From:Subject:To:MIME-Version:Content-Type; b=KPzZcSKXOML03vt45IwDQs+uswblawzxv4Kp+/tKrjmXOBZqaPanetEtmaYsnUZxI1DAOp1Hkzs6WceQqZGpNXFR8+/XqFqW7oEaHLT6TdGxW5y/qE/Ky22uIZsEK7rqSD/MAotVDNOIDz9vvglA2h3m0SZ99N5K6e3K5uOJrzs=; Message-ID: <975001.7892.qm@web110807.mail.gq1.yahoo.com> X-YMail-OSG: MIOSKYAVM1luWxJBk1ygt7SwpNozer0Mu4tPZqZZ.e7cYSt76uVLNMMyfsTiUP5wXYwEMhfEek2E9Z38pHvq0W6rjgUSI01EoU4i.UkVTck3rLc09GuBLL.pEFpYZ8w0fd3B915a95CW9BMT3C3fNSriRbA1qZl4uGV8_fzE2R33mqOmQ9suWrBQQjbbRYyHqRb9j_melZ1Am9XkfIJlliyeNHBpxlTjBvSx5pgCXLDuI24.Ly3XPmX1mfIuLw8S7YNxA3H_3Uijm5mrips8aDF0MLLaBhNmoxON2mS9KdbLBuvOH_oPt2rhJSYS0vFoY9wwKTP05UUShCC.Tn2rG4A9Jvt4aVohXjXYnfub Received: from [199.203.99.233] by web110807.mail.gq1.yahoo.com via HTTP; Sun, 05 Apr 2009 03:20:42 PDT X-Mailer: YahooMailClassic/5.2.15 YahooMailWebService/0.7.289.1 Date: Sun, 5 Apr 2009 03:20:42 -0700 (PDT) From: Uri Shkolnik Subject: [PATCH] [0904_11] Siano: smsendian & smsdvb - binding the smsendian to smsdvb To: LinuxML MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org # HG changeset patch # User Uri Shkolnik # Date 1238743608 -10800 # Node ID 01979ae55ffec22d74b77681613f38bd606be227 # Parent ec7ee486fb86d51bdb48e6a637a6ddd52e9e08c2 [PATCH] [0904_11] Siano: smsendian & smsdvb - binding the smsendian to smsdvb From: Uri Shkolnik Bind the smsendian, which manipulates some Siano's messages content when using Siano chip-set with big-endian target, with the DVB-API v3 client adapter. Priority: normal Signed-off-by: Uri Shkolnik --- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff -r ec7ee486fb86 -r 01979ae55ffe linux/drivers/media/dvb/siano/Makefile --- a/linux/drivers/media/dvb/siano/Makefile Fri Apr 03 10:10:22 2009 +0300 +++ b/linux/drivers/media/dvb/siano/Makefile Fri Apr 03 10:26:48 2009 +0300 @@ -1,4 +1,4 @@ sms1xxx-objs := smscoreapi.o sms-cards.o -sms1xxx-objs := smscoreapi.o sms-cards.o +sms1xxx-objs := smscoreapi.o sms-cards.o smsendian.o obj-$(CONFIG_DVB_SIANO_SMS1XXX) += sms1xxx.o obj-$(CONFIG_DVB_SIANO_SMS1XXX) += smsusb.o diff -r ec7ee486fb86 -r 01979ae55ffe linux/drivers/media/dvb/siano/smsdvb.c --- a/linux/drivers/media/dvb/siano/smsdvb.c Fri Apr 03 10:10:22 2009 +0300 +++ b/linux/drivers/media/dvb/siano/smsdvb.c Fri Apr 03 10:26:48 2009 +0300 @@ -24,7 +24,7 @@ along with this program. If not, see #include "smscoreapi.h" -/*#include "smsendian.h"*/ +#include "smsendian.h" #include "sms-cards.h" #ifndef DVB_DEFINE_MOD_OPT_ADAPTER_NR @@ -52,7 +52,7 @@ struct smsdvb_client_t { fe_status_t fe_status; int fe_ber, fe_snr, fe_unc, fe_signal_strength; - struct completion tune_done, stat_done; + struct completion tune_done; /* todo: save freq/band instead whole struct */ struct dvb_frontend_parameters fe_params; @@ -114,7 +114,7 @@ static int smsdvb_onresponse(void *conte u32 *pMsgData = (u32 *) phdr + 1; /*u32 MsgDataLen = phdr->msgLength - sizeof(struct SmsMsgHdr_ST);*/ - /*smsendian_handle_rx_message((struct SmsMsgData_ST *) phdr);*/ + smsendian_handle_rx_message((struct SmsMsgData_ST *) phdr); switch (phdr->msgType) { case MSG_SMS_DVBT_BDA_DATA: @@ -271,7 +271,7 @@ static int smsdvb_start_feed(struct dvb_ PidMsg.xMsgHeader.msgLength = sizeof(PidMsg); PidMsg.msgData[0] = feed->pid; - /* smsendian_handle_tx_message((struct SmsMsgHdr_ST *)&PidMsg); */ + smsendian_handle_tx_message((struct SmsMsgHdr_ST *)&PidMsg); return smsclient_sendrequest(client->smsclient, &PidMsg, sizeof(PidMsg)); } @@ -291,7 +291,7 @@ static int smsdvb_stop_feed(struct dvb_d PidMsg.xMsgHeader.msgLength = sizeof(PidMsg); PidMsg.msgData[0] = feed->pid; - /* smsendian_handle_tx_message((struct SmsMsgHdr_ST *)&PidMsg); */ + smsendian_handle_tx_message((struct SmsMsgHdr_ST *)&PidMsg); return smsclient_sendrequest(client->smsclient, &PidMsg, sizeof(PidMsg)); } @@ -302,7 +302,7 @@ static int smsdvb_sendrequest_and_wait(s { int rc; - /* smsendian_handle_tx_message((struct SmsMsgHdr_ST *)buffer); */ + smsendian_handle_tx_message((struct SmsMsgHdr_ST *)buffer); rc = smsclient_sendrequest(client->smsclient, buffer, size); if (rc < 0) return rc;