diff options
author | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-19 12:12:29 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2013-03-21 06:53:59 -0400 |
commit | d8a18e88c952f155b953d4b164818940ae8686a4 (patch) | |
tree | 180e3c2bd8453cca495b2ab24af5ea86dd76e187 /drivers/media/common | |
parent | 98c3f94e6db3b4df21336b41c646366ea417527c (diff) |
[media] siano: Remove bogus complain about MSG_SMS_DVBT_BDA_DATA
When the driver is tuned into chanel, and it is removed/reinserted,
the message stream data may be arriving during device probe:
[ 5680.162004] smscore_set_device_mode: set device mode to 6
[ 5680.162267] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.162391] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.162641] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.162891] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.163016] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.163266] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.163516] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.163640] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.163891] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.164016] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.164265] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.164515] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.164519] smscore_onresponse: Firmware id 6 prots 0x40 ver 8.1
[ 5680.164766] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.166018] smscore_onresponse: message MSG_SMS_DVBT_BDA_DATA(693) not handled.
[ 5680.166438] DVB: registering new adapter (Siano Rio Digital Receiver)
Instead of complaining, just silently discard those messages, instead of
complaining.
A proper fix is to put the device on suspend/power down mode when the module
is removed.
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/common')
-rw-r--r-- | drivers/media/common/siano/smscoreapi.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/media/common/siano/smscoreapi.c b/drivers/media/common/siano/smscoreapi.c index 92eea545ed4e..b5e40aa9651a 100644 --- a/drivers/media/common/siano/smscoreapi.c +++ b/drivers/media/common/siano/smscoreapi.c | |||
@@ -1605,6 +1605,15 @@ void smscore_onresponse(struct smscore_device_t *coredev, | |||
1605 | - sizeof(struct SmsMsgHdr_ST)); | 1605 | - sizeof(struct SmsMsgHdr_ST)); |
1606 | break; | 1606 | break; |
1607 | 1607 | ||
1608 | case MSG_SMS_DVBT_BDA_DATA: | ||
1609 | /* | ||
1610 | * It can be received here, if the frontend is | ||
1611 | * tuned into a valid channel and the proper firmware | ||
1612 | * is loaded. That happens when the module got removed | ||
1613 | * and re-inserted, without powering the device off | ||
1614 | */ | ||
1615 | break; | ||
1616 | |||
1608 | default: | 1617 | default: |
1609 | sms_debug("message %s(%d) not handled.", | 1618 | sms_debug("message %s(%d) not handled.", |
1610 | smscore_translate_msg(phdr->msgType), | 1619 | smscore_translate_msg(phdr->msgType), |