From owner-freebsd-multimedia Thu Feb 13 14:58: 4 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 DF32137B401 for ; Thu, 13 Feb 2003 14:58:02 -0800 (PST) Received: from smtp3.libero.it (smtp3.libero.it [193.70.192.127]) by mx1.FreeBSD.org (Postfix) with ESMTP id 489DA43F93 for ; Thu, 13 Feb 2003 14:58:01 -0800 (PST) (envelope-from nivit@libero.it) Received: from coryphantha (151.29.218.76) by smtp3.libero.it (6.7.015) id 3E44E967002C5BDC for freebsd-multimedia@FreeBSD.ORG; Thu, 13 Feb 2003 23:58:00 +0100 Received: (qmail 282 invoked by uid 1002); 13 Feb 2003 23:05:10 -0000 From: nivit@libero.it (Nicola Vitale) Date: Fri, 14 Feb 2003 00:05:10 +0100 To: freebsd-multimedia@FreeBSD.ORG Subject: Re: 'ufm' device - trouble with GemTek USB FM Radio Message-ID: <20030213230510.GA216@Coryphantha> References: <200302130039.h1D0dpn95636@goliath.rri-usa.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200302130039.h1D0dpn95636@goliath.rri-usa.org> X-Operating-System: FreeBSD/i386 (http://www.freebsd.org) User-Agent: Mutt (http://www.mutt.org) 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 > [wgnadt, 12 Febbraio 2003 ore 19:39] > [...] > device ufm > [...] > ufm0: GemTek Corp USB FM Radio, rev 1.00/4.10, addr 2 > > [...] I found and compiled three different utilities > to control the radio. Unfortunately, all three fail: > > 1. 'ufmctl' by M. Warner Losh (2001) > 2. a patched version of 'ufmctl' by David Yeske (2002) > 3. the 'ufmcontrol' package (2003) > > ufmcontrol> play > ufmcontrol: Input/output error > > Why am I getting these I/O errors? Any thoughts? In my opinion the cause is this instruction in ufm_start() function (see /usr/src/sys/dev/usb/ufm.c) if (ret & 0x1) return (EIO); Stangely and only for FM_START ioctl, the driver checks if the radio is in stereo mode so sometimes it returns EIO, but the radio plays all the same (at least mine :). Ciao. -- Nicola Vitale nivit@libero.it To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-multimedia" in the body of the message