Message ID | 1338407260-14367-1-git-send-email-martin.blumenstingl@googlemail.com (mailing list archive) |
---|---|
State | Accepted, archived |
Headers |
Received: from mail.tu-berlin.de ([130.149.7.33]) by www.linuxtv.org with esmtp (Exim 4.72) (envelope-from <linux-media-owner@vger.kernel.org>) id 1SZosA-0002dd-CJ for patchwork@linuxtv.org; Wed, 30 May 2012 21:47:58 +0200 X-tubIT-Incoming-IP: 209.132.180.67 Received: from vger.kernel.org ([209.132.180.67]) by mail.tu-berlin.de (exim-4.75/mailfrontend-2) with esmtp for <patchwork@linuxtv.org> id 1SZos9-0006ya-Gg; Wed, 30 May 2012 21:47:57 +0200 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752711Ab2E3Trz (ORCPT <rfc822;patchwork@linuxtv.org>); Wed, 30 May 2012 15:47:55 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:39015 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751305Ab2E3Try (ORCPT <rfc822;linux-media@vger.kernel.org>); Wed, 30 May 2012 15:47:54 -0400 Received: by bkcji2 with SMTP id ji2so181506bkc.19 for <linux-media@vger.kernel.org>; Wed, 30 May 2012 12:47:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=N1Wp3n/pOIINZoZ749w6VVR/BCLCwZRHrrpUDou4To0=; b=yK4GaruvzNcGYm1u5fx+VwyO1cAHBozermARpS9QLPMlOQowE72xvVC+yMsY2MOa2L TGbzlX1HeSU1M2PRbWg5qVSR7+CafLr38XW+RMRkVT6p9KynmEjn0+Pzi4siKs/yzOdB Wir+4Ww5cSUKNWUWo4/tHJMU+x6uU8y30ABX8eJw1SvuUhjgxsRqcu/5SeLhhvjDHU3I DHBN4xzZhc76G+TJIhLGrf0ncJp6KKFTlOTrlKnYcU+kzc8rPA6NGTW+kOICY1PbLSQo 1YHjYSyUtvQRa8XvzObaO8tBBJuOF/lp7xg+FYkWE0/fPRsjR0hfUMPNYOgYWwyQXM9Z 8eDw== Received: by 10.204.151.130 with SMTP id c2mr10309685bkw.125.1338407273062; Wed, 30 May 2012 12:47:53 -0700 (PDT) Received: from blackbox.localdomain (p4FC86CE9.dip.t-dialin.net. [79.200.108.233]) by mx.google.com with ESMTPS id m2sm841191bkm.2.2012.05.30.12.47.51 (version=SSLv3 cipher=OTHER); Wed, 30 May 2012 12:47:52 -0700 (PDT) From: Martin Blumenstingl <martin.blumenstingl@googlemail.com> To: linux-media@vger.kernel.org Cc: Martin Blumenstingl <martin.blumenstingl@googlemail.com> Subject: [PATCH] [media] em28xx: Show a warning if the board does not support remote controls Date: Wed, 30 May 2012 21:47:40 +0200 Message-Id: <1338407260-14367-1-git-send-email-martin.blumenstingl@googlemail.com> X-Mailer: git-send-email 1.7.10.3 In-Reply-To: <1338154013-5124-3-git-send-email-martin.blumenstingl@googlemail.com> References: <1338154013-5124-3-git-send-email-martin.blumenstingl@googlemail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org X-PMX-Version: 5.6.1.2065439, Antispam-Engine: 2.7.2.376379, Antispam-Data: 2012.5.30.193916 X-PMX-Spam: Gauge=IIIIIIII, Probability=8%, Report=' HTML_00_01 0.05, HTML_00_10 0.05, BODYTEXTP_SIZE_3000_LESS 0, BODY_SIZE_1000_1099 0, BODY_SIZE_2000_LESS 0, BODY_SIZE_5000_LESS 0, BODY_SIZE_7000_LESS 0, ECARD_WORD 0, URI_ENDS_IN_HTML 0, __ANY_URI 0, __CP_MEDIA_BODY 0, __CP_URI_IN_BODY 0, __FRAUD_BODY_WEBMAIL 0, __FRAUD_WEBMAIL 0, __FRAUD_WEBMAIL_FROM 0, __HAS_MSGID 0, __HAS_X_MAILER 0, __HAS_X_MAILING_LIST 0, __MIME_TEXT_ONLY 0, __PHISH_SPEAR_STRUCTURE_1 0, __PHISH_SPEAR_SUBJECT 0, __SANE_MSGID 0, __SUBJ_ALPHA_END 0, __TO_MALFORMED_2 0, __TO_NO_NAME 0, __URI_NO_WWW 0, __URI_NS ' |
Commit Message
Martin Blumenstingl
May 30, 2012, 7:47 p.m. UTC
This simply shows a little warning if the board does not have remote
control support. This should make it easier for users to see if they
have misconfigured their system or if the driver simply does not have
rc-support for their card (yet).
Signed-off-by: Martin Blumenstingl <martin.blumenstingl@googlemail.com>
---
drivers/media/video/em28xx/em28xx-input.c | 2 ++
1 file changed, 2 insertions(+)
Comments
Hello, thanks to Fabio and Ezequiel for the suggestions. This is the latest version of my patch. It basically shows this when connecting my stick (of course only if I remove my other patch): [ 1597.796028] em28xx #0: chip ID is em2884 [ 1597.849321] em28xx #0: Identified as Terratec Cinergy HTC Stick (card=82) ... (snip) ... [ 1597.851680] em28xx #0: Remote control support is not available for this card. Looks good, since we don't need to duplicate the card/model ID. But we still get all required information. Regards, Martin -- 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
Hi Martin, On Wed, May 30, 2012 at 4:50 PM, Martin Blumenstingl <martin.blumenstingl@googlemail.com> wrote: > Hello, > > thanks to Fabio and Ezequiel for the suggestions. > This is the latest version of my patch. > > It basically shows this when connecting my stick > (of course only if I remove my other patch): > [ 1597.796028] em28xx #0: chip ID is em2884 > [ 1597.849321] em28xx #0: Identified as Terratec Cinergy HTC Stick (card=82) > ... (snip) ... > [ 1597.851680] em28xx #0: Remote control support is not available for this card. > > Looks good, since we don't need to duplicate the card/model ID. > But we still get all required information. > When sending new versions of a patch you should mark them as [PATCH v2], [PATCH v3], etc in the subject. This way maintainers can follow the patch evolution. You can search through the mailing list for an example. Here's a random example: http://www.spinics.net/lists/linux-media/msg47876.html I'm not saying you should re-send this patch, it's just for you to know for future patches. Hope it helps, Ezequiel. -- 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
Hi, > When sending new versions of a patch you should mark them as [PATCH > v2], [PATCH v3], etc in the subject. > This way maintainers can follow the patch evolution. Thanks for the hint. I just noticed that I spammed the patchwork system with my patch-mess too. I should probably also always reply to the last mail which includes a patch. I'll keep it in mind the next time, thanks! Martin -- 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
diff --git a/drivers/media/video/em28xx/em28xx-input.c b/drivers/media/video/em28xx/em28xx-input.c index fce5f76..5e30c4f 100644 --- a/drivers/media/video/em28xx/em28xx-input.c +++ b/drivers/media/video/em28xx/em28xx-input.c @@ -527,6 +527,8 @@ static int em28xx_ir_init(struct em28xx *dev) if (dev->board.ir_codes == NULL) { /* No remote control support */ + em28xx_warn("Remote control support is not available for " + "this card.\n"); return 0; }