aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano/smsdvb.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2008-06-19 00:15:46 -0400
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-07-20 06:22:31 -0400
commit068d6c0f5d6c67d0e93f8e214897ddd64746be4e (patch)
tree4d0b535d1f662f08b4467e757ef3487a239fb4a9 /drivers/media/dvb/siano/smsdvb.c
parent1c11d546b6c31399ac60f42d3103227cc1164d80 (diff)
V4L/DVB (8293): sms1xxx: create printk macros
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/siano/smsdvb.c')
-rw-r--r--drivers/media/dvb/siano/smsdvb.c46
1 files changed, 23 insertions, 23 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c
index 88b2bd2821dc..57ab7db56a65 100644
--- a/drivers/media/dvb/siano/smsdvb.c
+++ b/drivers/media/dvb/siano/smsdvb.c
@@ -113,8 +113,8 @@ static int smsdvb_start_feed(struct dvb_demux_feed *feed)
113 container_of(feed->demux, struct smsdvb_client_t, demux); 113 container_of(feed->demux, struct smsdvb_client_t, demux);
114 struct SmsMsgData_ST PidMsg; 114 struct SmsMsgData_ST PidMsg;
115 115
116 printk(KERN_DEBUG "%s add pid %d(%x)\n", __func__, 116 sms_debug("%s add pid %d(%x)\n", __func__,
117 feed->pid, feed->pid); 117 feed->pid, feed->pid);
118 118
119 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID; 119 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
120 PidMsg.xMsgHeader.msgDstId = HIF_TASK; 120 PidMsg.xMsgHeader.msgDstId = HIF_TASK;
@@ -133,8 +133,8 @@ static int smsdvb_stop_feed(struct dvb_demux_feed *feed)
133 container_of(feed->demux, struct smsdvb_client_t, demux); 133 container_of(feed->demux, struct smsdvb_client_t, demux);
134 struct SmsMsgData_ST PidMsg; 134 struct SmsMsgData_ST PidMsg;
135 135
136 printk(KERN_DEBUG "%s remove pid %d(%x)\n", __func__, 136 sms_debug("%s remove pid %d(%x)\n", __func__,
137 feed->pid, feed->pid); 137 feed->pid, feed->pid);
138 138
139 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID; 139 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
140 PidMsg.xMsgHeader.msgDstId = HIF_TASK; 140 PidMsg.xMsgHeader.msgDstId = HIF_TASK;
@@ -220,7 +220,7 @@ static int smsdvb_read_snr(struct dvb_frontend *fe, u16 *snr)
220static int smsdvb_get_tune_settings(struct dvb_frontend *fe, 220static int smsdvb_get_tune_settings(struct dvb_frontend *fe,
221 struct dvb_frontend_tune_settings *tune) 221 struct dvb_frontend_tune_settings *tune)
222{ 222{
223 printk(KERN_DEBUG "%s\n", __func__); 223 sms_debug("%s\n", __func__);
224 224
225 tune->min_delay_ms = 400; 225 tune->min_delay_ms = 400;
226 tune->step_size = 250000; 226 tune->step_size = 250000;
@@ -247,8 +247,8 @@ static int smsdvb_set_frontend(struct dvb_frontend *fe,
247 Msg.Data[0] = fep->frequency; 247 Msg.Data[0] = fep->frequency;
248 Msg.Data[2] = 12000000; 248 Msg.Data[2] = 12000000;
249 249
250 printk(KERN_DEBUG "%s freq %d band %d\n", __func__, 250 sms_debug("%s freq %d band %d\n", __func__,
251 fep->frequency, fep->u.ofdm.bandwidth); 251 fep->frequency, fep->u.ofdm.bandwidth);
252 252
253 switch (fep->u.ofdm.bandwidth) { 253 switch (fep->u.ofdm.bandwidth) {
254 case BANDWIDTH_8_MHZ: Msg.Data[1] = BW_8_MHZ; break; 254 case BANDWIDTH_8_MHZ: Msg.Data[1] = BW_8_MHZ; break;
@@ -268,7 +268,7 @@ static int smsdvb_get_frontend(struct dvb_frontend *fe,
268 struct smsdvb_client_t *client = 268 struct smsdvb_client_t *client =
269 container_of(fe, struct smsdvb_client_t, frontend); 269 container_of(fe, struct smsdvb_client_t, frontend);
270 270
271 printk(KERN_DEBUG "%s\n", __func__); 271 sms_debug("%s\n", __func__);
272 272
273 /* todo: */ 273 /* todo: */
274 memcpy(fep, &client->fe_params, 274 memcpy(fep, &client->fe_params,
@@ -322,14 +322,14 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
322 return 0; 322 return 0;
323 323
324 if (smscore_get_device_mode(coredev) != 4) { 324 if (smscore_get_device_mode(coredev) != 4) {
325 printk(KERN_ERR "%sSMS Device mode is not set for " 325 sms_err("%sSMS Device mode is not set for "
326 "DVB operation.\n", __func__); 326 "DVB operation.\n", __func__);
327 return 0; 327 return 0;
328 } 328 }
329 329
330 client = kzalloc(sizeof(struct smsdvb_client_t), GFP_KERNEL); 330 client = kzalloc(sizeof(struct smsdvb_client_t), GFP_KERNEL);
331 if (!client) { 331 if (!client) {
332 printk(KERN_INFO "%s kmalloc() failed\n", __func__); 332 sms_info("%s kmalloc() failed\n", __func__);
333 return -ENOMEM; 333 return -ENOMEM;
334 } 334 }
335 335
@@ -339,8 +339,8 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
339 smscore_get_board_id(coredev))->name, 339 smscore_get_board_id(coredev))->name,
340 THIS_MODULE, device, adapter_nr); 340 THIS_MODULE, device, adapter_nr);
341 if (rc < 0) { 341 if (rc < 0) {
342 printk(KERN_ERR "%s dvb_register_adapter() failed %d\n", 342 sms_err("%s dvb_register_adapter() failed %d\n",
343 __func__, rc); 343 __func__, rc);
344 goto adapter_error; 344 goto adapter_error;
345 } 345 }
346 346
@@ -353,8 +353,8 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
353 353
354 rc = dvb_dmx_init(&client->demux); 354 rc = dvb_dmx_init(&client->demux);
355 if (rc < 0) { 355 if (rc < 0) {
356 printk(KERN_ERR "%s dvb_dmx_init failed %d\n\n", 356 sms_err("%s dvb_dmx_init failed %d\n\n",
357 __func__, rc); 357 __func__, rc);
358 goto dvbdmx_error; 358 goto dvbdmx_error;
359 } 359 }
360 360
@@ -365,8 +365,8 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
365 365
366 rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter); 366 rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter);
367 if (rc < 0) { 367 if (rc < 0) {
368 printk(KERN_ERR "%s dvb_dmxdev_init failed %d\n", 368 sms_err("%s dvb_dmxdev_init failed %d\n",
369 __func__, rc); 369 __func__, rc);
370 goto dmxdev_error; 370 goto dmxdev_error;
371 } 371 }
372 372
@@ -376,8 +376,8 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
376 376
377 rc = dvb_register_frontend(&client->adapter, &client->frontend); 377 rc = dvb_register_frontend(&client->adapter, &client->frontend);
378 if (rc < 0) { 378 if (rc < 0) {
379 printk(KERN_ERR "%s frontend registration failed %d\n", 379 sms_err("%s frontend registration failed %d\n",
380 __func__, rc); 380 __func__, rc);
381 goto frontend_error; 381 goto frontend_error;
382 } 382 }
383 383
@@ -389,8 +389,8 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
389 389
390 rc = smscore_register_client(coredev, &params, &client->smsclient); 390 rc = smscore_register_client(coredev, &params, &client->smsclient);
391 if (rc < 0) { 391 if (rc < 0) {
392 printk(KERN_INFO "%s smscore_register_client() failed %d\n", 392 sms_info("%s smscore_register_client() failed %d\n",
393 __func__, rc); 393 __func__, rc);
394 goto client_error; 394 goto client_error;
395 } 395 }
396 396
@@ -405,7 +405,7 @@ int smsdvb_hotplug(struct smscore_device_t *coredev,
405 405
406 kmutex_unlock(&g_smsdvb_clientslock); 406 kmutex_unlock(&g_smsdvb_clientslock);
407 407
408 printk(KERN_INFO "%s success\n", __func__); 408 sms_info("%s success\n", __func__);
409 409
410 return 0; 410 return 0;
411 411
@@ -435,7 +435,7 @@ int smsdvb_register(void)
435 435
436 rc = smscore_register_hotplug(smsdvb_hotplug); 436 rc = smscore_register_hotplug(smsdvb_hotplug);
437 437
438 printk(KERN_INFO "%s\n", __func__); 438 sms_info("%s\n", __func__);
439 439
440 return rc; 440 return rc;
441} 441}