From owner-freebsd-multimedia Wed Feb 12 16:39:55 2003 Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 8DDD337B401 for ; Wed, 12 Feb 2003 16:39:53 -0800 (PST) Received: from goliath.rri-usa.org (goliath.rri-usa.org [208.247.65.240]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7F41143F3F for ; Wed, 12 Feb 2003 16:39:52 -0800 (PST) (envelope-from wgnadt@goliath.rri-usa.org) Received: (from wgnadt@localhost) by goliath.rri-usa.org (8.11.6/8.11.6) id h1D0dpn95636; Wed, 12 Feb 2003 19:39:51 -0500 (EST) (envelope-from wgnadt) From: wgnadt Message-Id: <200302130039.h1D0dpn95636@goliath.rri-usa.org> Subject: 'ufm' device - trouble with GemTek USB FM Radio To: freebsd-multimedia@freebsd.org Date: Wed, 12 Feb 2003 19:39:51 -0500 (EST) Cc: wgnadt@goliath.rri-usa.org (wgnadt) X-Mailer: ELM [version 2.5 PL6] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-multimedia@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Hi: I've many years of experience with FreeBSD, Linux and Unix. However, when it comes to getting a D-link USB FM radio working, I'm stumped. I'm appealing to anyone on this list for help! I'm running FreeBSD-4.7-stable -- uname output: FreeBSD delta.local.net 4.7-RELEASE-p3 FreeBSD 4.7-RELEASE-p3 #0: Tue Feb 11 15:45:59 EST 2003 root@delta.local.net:/usr/src/sys/compile/SERVER i386 I've added the requisite kernel option to my GENERIC kernel config - standard usb options plus: # radio device ufm Added a line in rc.conf to start usbd: usbd_enable="YES" # Run the usbd daemon. At boot time, the device is recognized -- dmesg output: ufm0: GemTek Corp USB FM Radio, rev 1.00/4.10, addr 2 Next, I found a patch for MAKEDEV, to create the proper device (cd /dev ; sh MAKEDEV ufm0): crw-rw---- 1 root operator 200, 0 Feb 11 20:16 /dev/ufm0 Finally, I found and compiled three different utilities to control the radio. Unfortunately, all three fail: 1. 'ufmctl' by M. Warner Losh (2001) (http://people.freebsd.org/~imp/ufmctl.c) 2. a patched version of 'ufmctl' by David Yeske (2002) (http://pigseye.kennesaw.edu/~dyeske/freebsd/ufmctl.c) example: delta# ufmctl -d sets device, default is "/dev/ufm0". -f sets freq -h help -i info -m mutes the radio -s unmutes the radio delta# ufmctl -f 92.9 -s ufmctl: FM_START: Input/output error Tuner /dev/ufm0 at 92.90MHz status off 3. the 'ufmcontrol' package (2003) (http://ufmcontrol.sourceforge.net/) example: delta# ufmcontrol USB Radio Control utility, version 0.1 Type `?' for command list ufmcontrol> verbose yes ufmcontrol> set 92.9 ufmcontrol> get FM 92.90 MHz ufmcontrol> play ufmcontrol: Input/output error ufmcontrol> Why am I getting these I/O errors? Any thoughts? Thanks, Bill To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message