All of lore.kernel.org
 help / color / mirror / Atom feed
From: Uri Shkolnik <urishk@yahoo.com>
To: Michael Krufky <mkrufky@linuxtv.org>
Cc: LinuxML <linux-media@vger.kernel.org>,
	Mauro Carvalho Chehab <mchehab@infradead.org>
Subject: Re: [PATCH] [09051_47] Siano: smsdvb - add DVB v3 events
Date: Tue, 19 May 2009 11:20:44 -0700 (PDT)	[thread overview]
Message-ID: <696036.74058.qm@web110808.mail.gq1.yahoo.com> (raw)




--- On Tue, 5/19/09, Michael Krufky <mkrufky@linuxtv.org> wrote:

> From: Michael Krufky <mkrufky@linuxtv.org>
> Subject: Re: [PATCH] [09051_47] Siano: smsdvb - add DVB v3 events
> To: "Uri Shkolnik" <urishk@yahoo.com>
> Cc: "LinuxML" <linux-media@vger.kernel.org>, "Mauro Carvalho Chehab" <mchehab@infradead.org>
> Date: Tuesday, May 19, 2009, 9:16 PM
> On Tue, May 19, 2009 at 1:05 PM, Uri
> Shkolnik <urishk@yahoo.com>
> wrote:
> >
> >
> >
> > --- On Tue, 5/19/09, Michael Krufky <mkrufky@linuxtv.org>
> wrote:
> >
> >> From: Michael Krufky <mkrufky@linuxtv.org>
> >> Subject: Re: [PATCH] [09051_47] Siano: smsdvb -
> add DVB v3 events
> >> To: "Uri Shkolnik" <urishk@yahoo.com>
> >> Cc: "LinuxML" <linux-media@vger.kernel.org>,
> "Mauro Carvalho Chehab" <mchehab@infradead.org>
> >> Date: Tuesday, May 19, 2009, 7:18 PM
> >> On Tue, May 19, 2009 at 11:28 AM, Uri
> >> Shkolnik <urishk@yahoo.com>
> >> wrote:
> >> >
> >> > # HG changeset patch
> >> > # User Uri Shkolnik <uris@siano-ms.com>
> >> > # Date 1242747164 -10800
> >> > # Node ID
> 971d4cc0d4009650bd4752c6a9fc09755ef77baf
> >> > # Parent
>  98895daafb42f8b0757fd608b29c53c80327520e
> >> > [09051_47] Siano: smsdvb - add DVB v3 events
> >> >
> >> > From: Uri Shkolnik <uris@siano-ms.com>
> >> >
> >> > Add various DVB-API v3 events, those events
> will trig
> >> > target (card) events.
> >> >
> >> > Priority: normal
> >> >
> >> > Signed-off-by: Uri Shkolnik <uris@siano-ms.com>
> >> >
> >> > diff -r 98895daafb42 -r 971d4cc0d400
> >> linux/drivers/media/dvb/siano/smsdvb.c
> >> > --- a/linux/drivers/media/dvb/siano/smsdvb.c
>    Tue
> >> May 19 18:27:38 2009 +0300
> >> > +++ b/linux/drivers/media/dvb/siano/smsdvb.c
>    Tue
> >> May 19 18:32:44 2009 +0300
> >> > @@ -66,6 +66,54 @@ MODULE_PARM_DESC(debug,
> "set debug
> >> level
> >> >  /* Events that may come from DVB v3 adapter
> */
> >> >  static void sms_board_dvb3_event(struct
> >> smsdvb_client_t *client,
> >> >                enum SMS_DVB3_EVENTS
> event) {
> >> > +
> >> > +       struct smscore_device_t *coredev
> =
> >> client->coredev;
> >> > +       switch (event) {
> >> > +       case DVB3_EVENT_INIT:
> >> > +              
> sms_debug("DVB3_EVENT_INIT");
> >> > +              
> sms_board_event(coredev,
> >> BOARD_EVENT_BIND);
> >> > +               break;
> >> > +       case DVB3_EVENT_SLEEP:
> >> > +              
> sms_debug("DVB3_EVENT_SLEEP");
> >> > +              
> sms_board_event(coredev,
> >> BOARD_EVENT_POWER_SUSPEND);
> >> > +               break;
> >> > +       case DVB3_EVENT_HOTPLUG:
> >> > +
> >> sms_debug("DVB3_EVENT_HOTPLUG");
> >> > +              
> sms_board_event(coredev,
> >> BOARD_EVENT_POWER_INIT);
> >> > +               break;
> >> > +       case DVB3_EVENT_FE_LOCK:
> >> > +               if
> (client->event_fe_state
> >> != DVB3_EVENT_FE_LOCK) {
> >> > +
> >> client->event_fe_state = DVB3_EVENT_FE_LOCK;
> >> > +
> >> sms_debug("DVB3_EVENT_FE_LOCK");
> >> > +
> >> sms_board_event(coredev, BOARD_EVENT_FE_LOCK);
> >> > +               }
> >> > +               break;
> >> > +       case DVB3_EVENT_FE_UNLOCK:
> >> > +               if
> (client->event_fe_state
> >> != DVB3_EVENT_FE_UNLOCK) {
> >> > +
> >> client->event_fe_state = DVB3_EVENT_FE_UNLOCK;
> >> > +
> >> sms_debug("DVB3_EVENT_FE_UNLOCK");
> >> > +
> >> sms_board_event(coredev, BOARD_EVENT_FE_UNLOCK);
> >> > +               }
> >> > +               break;
> >> > +       case DVB3_EVENT_UNC_OK:
> >> > +               if
> (client->event_unc_state
> >> != DVB3_EVENT_UNC_OK) {
> >> > +
> >> client->event_unc_state = DVB3_EVENT_UNC_OK;
> >> > +
> >> sms_debug("DVB3_EVENT_UNC_OK");
> >> > +
> >> sms_board_event(coredev,
> BOARD_EVENT_MULTIPLEX_OK);
> >> > +               }
> >> > +               break;
> >> > +       case DVB3_EVENT_UNC_ERR:
> >> > +               if
> (client->event_unc_state
> >> != DVB3_EVENT_UNC_ERR) {
> >> > +
> >> client->event_unc_state = DVB3_EVENT_UNC_ERR;
> >> > +
> >> sms_debug("DVB3_EVENT_UNC_ERR");
> >> > +
> >> sms_board_event(coredev,
> BOARD_EVENT_MULTIPLEX_ERRORS);
> >> > +               }
> >> > +               break;
> >> > +
> >> > +       default:
> >> > +               sms_err("Unknown dvb3
> api
> >> event");
> >> > +               break;
> >> > +       }
> >> >  }
> >> >
> >> >  static int smsdvb_onresponse(void *context,
> struct
> >> smscore_buffer_t *cb)
> >> >
> >> >
> >> >
> >> >
> >> > --
> >> > 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
> >> >
> >>
> >>
> >>
> >> Uri,
> >>
> >> I don't understand what prompts you to call these
> "DVB v3
> >> events" ...
> >> what does this have to do with DVB API v3 at all?
> >> Your idea seems to
> >> be in the right direction, but this "DVBV3"
> nomenclature is
> >> a total
> >> misnomer.
> >>
> >> I think something along the lines of
> SMSBOARD_EVENT_FOO is
> >> more appropriate.
> >>
> >> Regards,
> >>
> >> Mike
> >>
> >
> > Mike,
> >
> > Within the DVB version 3 adapter, there is events
> manager, and the name we put on it is  "dvb3_event", I
> think its OK....
> >
> > Uri
> >
> >
> >
> > --
> > 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
> >
> 
> I disagree.  Your naming implies that these structures
> are on the
> subsystem level, and they have nothing to do with DVB3
> anyway -- these
> are board related events.  "dvb3_event" is a total
> misnomer.
> 
> -Mike
> 

If its really really important, I can change it to SMS_DVB3_EVENT...



Uri


      

             reply	other threads:[~2009-05-19 18:20 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-19 18:20 Uri Shkolnik [this message]
2009-05-20  2:00 ` [PATCH] [09051_47] Siano: smsdvb - add DVB v3 events Mauro Carvalho Chehab
  -- strict thread matches above, loose matches on Subject: below --
2009-05-19 17:05 Uri Shkolnik
2009-05-19 18:16 ` Michael Krufky
2009-05-19 15:28 Uri Shkolnik
2009-05-19 16:18 ` Michael Krufky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=696036.74058.qm@web110808.mail.gq1.yahoo.com \
    --to=urishk@yahoo.com \
    --cc=linux-media@vger.kernel.org \
    --cc=mchehab@infradead.org \
    --cc=mkrufky@linuxtv.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.