--- Begin Message ---
- To: Debian Bug Tracking System <submit@bugs.debian.org>
- Subject: wmtune: Add command line option to specify the v4l device
- From: Stefan Ott <ott5@desire.ch>
- Date: Sat, 12 Mar 2005 18:19:12 +0100
- Message-id: <20050312171912.5DAB01153C9@bart.desire.ch>
Package: wmtune
Version: 1.1-1
Severity: wishlist
Tags: patch
This patch adds a command line option to specify which radio device is to be
used for v4l devices. As udev creates numbered devices (eg. /dev/radio0)
instead of the hardcoded /dev/radio, this would be nice to have.
-- System Information:
Debian Release: 3.1
APT prefers testing
APT policy: (500, 'testing')
Architecture: i386 (i686)
Kernel: Linux 2.6.11
Locale: LANG=C, LC_CTYPE=de_CH (charmap=ISO-8859-1)
Versions of packages wmtune depends on:
ii libc6 2.3.2.ds1-20 GNU C Library: Shared libraries an
ii xlibs 4.3.0.dfsg.1-10 X Keyboard Extension (XKB) configu
-- no debconf information
diff -Nru wmtune-1.1-orig/src/wmtune.c wmtune-1.1/src/wmtune.c
--- wmtune-1.1-orig/src/wmtune.c 2005-03-12 17:49:56.000000000 +0100
+++ wmtune-1.1/src/wmtune.c 2005-03-12 17:59:24.000000000 +0100
@@ -813,6 +813,9 @@
sscanf(cmdline+3,"%d",&preset_count);
cmdline_preset = ON;
break;
+ case 'c':
+ dev = argv[i+1];
+ break;
case 'd':
break;
case 'v':
@@ -828,6 +831,7 @@
printf("\t-d <display>\tselects target display\n");
printf("\t-v\t\tbe verbose\n");
printf("\t-h\t\tdisplay this screen\n");
+ printf("\t-c <device>\tuse <device> as radio device (v4l only)");
printf("\n");
printf("examples:\n");
printf("\t\tturn on radio on startup using preset 5\n");
--- End Message ---