aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/siano/smsdvb.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/media/dvb/siano/smsdvb.c')
-rw-r--r--drivers/media/dvb/siano/smsdvb.c24
1 files changed, 15 insertions, 9 deletions
diff --git a/drivers/media/dvb/siano/smsdvb.c b/drivers/media/dvb/siano/smsdvb.c
index f46e7facdb6b..65b1db61ac15 100644
--- a/drivers/media/dvb/siano/smsdvb.c
+++ b/drivers/media/dvb/siano/smsdvb.c
@@ -111,7 +111,8 @@ static int smsdvb_start_feed(struct dvb_demux_feed *feed)
111 container_of(feed->demux, smsdvb_client_t, demux); 111 container_of(feed->demux, smsdvb_client_t, demux);
112 SmsMsgData_ST PidMsg; 112 SmsMsgData_ST PidMsg;
113 113
114 printk("%s add pid %d(%x)\n", __func__, feed->pid, feed->pid); 114 printk(KERN_DEBUG "%s add pid %d(%x)\n", __func__,
115 feed->pid, feed->pid);
115 116
116 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID; 117 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
117 PidMsg.xMsgHeader.msgDstId = HIF_TASK; 118 PidMsg.xMsgHeader.msgDstId = HIF_TASK;
@@ -130,7 +131,8 @@ static int smsdvb_stop_feed(struct dvb_demux_feed *feed)
130 container_of(feed->demux, smsdvb_client_t, demux); 131 container_of(feed->demux, smsdvb_client_t, demux);
131 SmsMsgData_ST PidMsg; 132 SmsMsgData_ST PidMsg;
132 133
133 printk("%s remove pid %d(%x)\n", __func__, feed->pid, feed->pid); 134 printk(KERN_DEBUG "%s remove pid %d(%x)\n", __func__,
135 feed->pid, feed->pid);
134 136
135 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID; 137 PidMsg.xMsgHeader.msgSrcId = DVBT_BDA_CONTROL_MSG_ID;
136 PidMsg.xMsgHeader.msgDstId = HIF_TASK; 138 PidMsg.xMsgHeader.msgDstId = HIF_TASK;
@@ -212,7 +214,7 @@ static int smsdvb_read_snr(struct dvb_frontend *fe, u16 *snr)
212static int smsdvb_get_tune_settings(struct dvb_frontend *fe, 214static int smsdvb_get_tune_settings(struct dvb_frontend *fe,
213 struct dvb_frontend_tune_settings *tune) 215 struct dvb_frontend_tune_settings *tune)
214{ 216{
215 printk("%s\n", __func__); 217 printk(KERN_DEBUG "%s\n", __func__);
216 218
217 tune->min_delay_ms = 400; 219 tune->min_delay_ms = 400;
218 tune->step_size = 250000; 220 tune->step_size = 250000;
@@ -239,7 +241,7 @@ static int smsdvb_set_frontend(struct dvb_frontend *fe,
239 Msg.Data[0] = fep->frequency; 241 Msg.Data[0] = fep->frequency;
240 Msg.Data[2] = 12000000; 242 Msg.Data[2] = 12000000;
241 243
242 printk("%s freq %d band %d\n", __func__, 244 printk(KERN_DEBUG "%s freq %d band %d\n", __func__,
243 fep->frequency, fep->u.ofdm.bandwidth); 245 fep->frequency, fep->u.ofdm.bandwidth);
244 246
245 switch (fep->u.ofdm.bandwidth) { 247 switch (fep->u.ofdm.bandwidth) {
@@ -259,7 +261,7 @@ static int smsdvb_get_frontend(struct dvb_frontend *fe,
259{ 261{
260 smsdvb_client_t *client = container_of(fe, smsdvb_client_t, frontend); 262 smsdvb_client_t *client = container_of(fe, smsdvb_client_t, frontend);
261 263
262 printk("%s\n", __func__); 264 printk(KERN_DEBUG "%s\n", __func__);
263 265
264 /* todo: */ 266 /* todo: */
265 memcpy(fep, &client->fe_params, 267 memcpy(fep, &client->fe_params,
@@ -328,7 +330,8 @@ int smsdvb_hotplug(smscore_device_t *coredev,
328 rc = dvb_register_adapter(&client->adapter, "Siano Digital Receiver", 330 rc = dvb_register_adapter(&client->adapter, "Siano Digital Receiver",
329 THIS_MODULE, device, adapter_nr); 331 THIS_MODULE, device, adapter_nr);
330 if (rc < 0) { 332 if (rc < 0) {
331 printk("%s dvb_register_adapter() failed %d\n", __func__, rc); 333 printk(KERN_ERR "%s dvb_register_adapter() failed %d\n",
334 __func__, rc);
332 goto adapter_error; 335 goto adapter_error;
333 } 336 }
334 337
@@ -341,7 +344,8 @@ int smsdvb_hotplug(smscore_device_t *coredev,
341 344
342 rc = dvb_dmx_init(&client->demux); 345 rc = dvb_dmx_init(&client->demux);
343 if (rc < 0) { 346 if (rc < 0) {
344 printk("%s dvb_dmx_init failed %d\n\n", __func__, rc); 347 printk(KERN_ERR "%s dvb_dmx_init failed %d\n\n",
348 __func__, rc);
345 goto dvbdmx_error; 349 goto dvbdmx_error;
346 } 350 }
347 351
@@ -352,7 +356,8 @@ int smsdvb_hotplug(smscore_device_t *coredev,
352 356
353 rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter); 357 rc = dvb_dmxdev_init(&client->dmxdev, &client->adapter);
354 if (rc < 0) { 358 if (rc < 0) {
355 printk("%s dvb_dmxdev_init failed %d\n", __func__, rc); 359 printk(KERN_ERR "%s dvb_dmxdev_init failed %d\n",
360 __func__, rc);
356 goto dmxdev_error; 361 goto dmxdev_error;
357 } 362 }
358 363
@@ -362,7 +367,8 @@ int smsdvb_hotplug(smscore_device_t *coredev,
362 367
363 rc = dvb_register_frontend(&client->adapter, &client->frontend); 368 rc = dvb_register_frontend(&client->adapter, &client->frontend);
364 if (rc < 0) { 369 if (rc < 0) {
365 printk("%s frontend registration failed %d\n", __func__, rc); 370 printk(KERN_ERR "%s frontend registration failed %d\n",
371 __func__, rc);
366 goto frontend_error; 372 goto frontend_error;
367 } 373 }
368 374