Skip to contentSkip to conversation

[0904_11] Siano: smsendian & smsdvb - binding the smsendian to smsdvb

PATCH Uri Shkolnik 1 participant 1 message Apr 5, 2009 Media (V4L/DVB)

lore
Share & tools
lore
#0 lore raw
Quoted 128 lines · Uri Shkolnik

From: Uri Shkolnik <[email protected]>
Subject: [PATCH] [0904_11] Siano: smsendian & smsdvb - binding the smsendian to smsdvb
To: "LinuxML" <[email protected]>
Date: Sunday, April 5, 2009, 1:20 PM

# HG changeset patch
# User Uri Shkolnik <[email protected]>
# Date 1238743608 -10800
# Node ID 01979ae55ffec22d74b77681613f38bd606be227 # Parent  ec7ee486fb86d51bdb48e6a637a6ddd52e9e08c2 [PATCH] [0904_11] Siano: smsendian & smsdvb - binding the smsendian to smsdvb

From: Uri Shkolnik <[email protected]>

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

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

(quoted diff) +1 -1
@@ -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

(quoted diff) +0 -0
@@ -24,7 +24,7 @@ along with this program.  If not,

see <h
#include <asm/byteorder.h>

#include "smscoreapi.h"

(quoted diff) +2 -2
-/*#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;

(quoted diff) +0 -0
@@ -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:

(quoted diff) +0 -0
@@ -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));
}

(quoted diff) +0 -0
@@ -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));
}

(quoted diff) +0 -0
@@ -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;

Quoted 7 lines


--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

This patch is voided and been replaced by another (newer) patch.