From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 03:08:04 2005 Return-Path: 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 AA0C416A4CE for ; Mon, 18 Apr 2005 03:08:04 +0000 (GMT) Received: from burrito.bitsurf.net (dcn235-229.dcn.davis.ca.us [168.150.235.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 34BE643D49 for ; Mon, 18 Apr 2005 03:08:04 +0000 (GMT) (envelope-from mharo@bitsurf.net) Received: from burrito.bitsurf.net (localhost [127.0.0.1]) by burrito.bitsurf.net (8.13.1/8.13.1) with ESMTP id j3I3ATPc076939; Sun, 17 Apr 2005 20:10:29 -0700 (PDT) (envelope-from mharo@bitsurf.net) Received: (from mharo@localhost) by burrito.bitsurf.net (8.13.1/8.13.1/Submit) id j3I3AR0A076936; Sun, 17 Apr 2005 20:10:27 -0700 (PDT) (envelope-from mharo@bitsurf.net) X-Authentication-Warning: burrito.bitsurf.net: mharo set sender to mharo@bitsurf.net using -f Date: Sun, 17 Apr 2005 20:10:27 -0700 From: Michael Haro To: Julian Elischer Message-ID: <20050418031027.GA76818@bitsurf.net> References: <20050412064056.GA24914@bitsurf.net> <425C0F44.10407@elischer.org> <20050415033559.GA74522@bitsurf.net> <425F48F7.5000005@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <425F48F7.5000005@elischer.org> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.3-RELEASE-p1 X-SMTP-From: localhost [127.0.0.1] (burrito.bitsurf.net) X-Scanned-By: MIMEDefang 2.49 on 168.150.235.229 cc: freebsd-multimedia@freebsd.org Subject: Re: PVR-150? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 03:08:04 -0000 I got the PVR150 card, but I could use a few pointers as to what to look at to get it working with 5.4-rc2. I installed the multimedia/pvr250 port and when I load the device, dmesg reports the following: cxm0: mem 0xc8000000-0xcbffffff irq 10 at device 13.0 on pci0 cxm_iic0: on cxm0 iicbb0: on cxm_iic0 iicbus0: on iicbb0 master-only cxm0: LG Innotek TAPC-H701F tuner cxm0: could not initialize video decoder iicbus0: detached iicbb0: detached cxm_iic0: detached device_attach: cxm0 attach returned 6 pciconf -lv reports: cxm0@pci0:13:0: class=0x040000 card=0x80030070 chip=0x00164444 rev=0x01 hdr=0x00 vendor = 'Conexant Inc (Was: Globespan, ICompression Inc)' device = 'iTVC16/CX23416 MPEG Codec' class = multimedia subclass = video Any tips as to which files I need to modify, or how to figure what I need to do to make this card work with the cxm driver? Thanks, Michael On Thu, Apr 14, 2005 at 09:54:15PM -0700, Julian Elischer wrote: > Michael Haro wrote: > >Is the PVR-150 supported by any FreeBSD drivers? > > > >Thanks, > > > >Michael > > it should be possible to support it with the PVR240 driver. > According to an article I just read it is basically the same but with one > chip different. But probabyl not out of the box.. > From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 06:06:47 2005 Return-Path: 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 8020316A4CE for ; Mon, 18 Apr 2005 06:06:47 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id A698343D3F for ; Mon, 18 Apr 2005 06:06:46 +0000 (GMT) (envelope-from julian@elischer.org) Received: from pimout3-ext.prodigy.net (pimout3-ext.prodigy.net [207.115.63.102])j3I66ll8003297 for ; Mon, 18 Apr 2005 02:06:48 -0400 X-ORBL: [68.124.205.128] Received: from [192.168.2.2] (adsl-68-124-205-128.dsl.snfc21.pacbell.net [68.124.205.128])j3I66hxG336894 for ; Mon, 18 Apr 2005 02:06:44 -0400 Message-ID: <42634E72.6090505@elischer.org> Date: Sun, 17 Apr 2005 23:06:42 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: multimedia@freebsd.org Content-Type: multipart/mixed; boundary="------------020405010100010807080902" Subject: [Fwd: please test uaudio capabilities patch] X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 06:06:47 -0000 This is a multi-part message in MIME format. --------------020405010100010807080902 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit mat says he can't send this to the list and asked for me to forward it. FWIW the patch breaks my USB microphone. -------- Original Message -------- Subject: please test uaudio capabilities patch Date: Sun, 17 Apr 2005 13:20:14 -0400 From: Mathew Kanner Organization: I speak for myself, operating in Montreal, CANADA To: freebsd-multimedia@freebsd.org CC: Julian Elischer Hi All, The following patch changes the driver to probe the capabilities. With this patch I can run mplayer with a non-native speed or format and the internal soft-mixer will get the right chain. Without the patch, I get stuck and I have to disconnect. I'm going to commit this soon. This is is against HEAD post my commit to de-dma the driver. --Mat --------------020405010100010807080902 Content-Type: text/plain; name="uaudio_caps.6.diff" Content-Transfer-Encoding: 7bit Content-Disposition: inline; filename="uaudio_caps.6.diff" Index: uaudio.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/usb/uaudio.c,v retrieving revision 1.13 diff -u -r1.13 uaudio.c --- uaudio.c 6 Jan 2005 01:43:22 -0000 1.13 +++ uaudio.c 17 Apr 2005 17:11:05 -0000 @@ -3764,83 +3764,127 @@ return (0); } -void -uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt) -{ - int i, pn=0, rn=0; - int prec, dir; +struct uaudio_convesion { + uint8_t uaudio_fmt; + uint8_t uaudio_prec; + uint32_t freebsd_fmt; +}; + +const struct uaudio_convesion const accepted_conversion[] = { + {AUDIO_ENCODING_ULINEAR_LE, 8, AFMT_U8}, + {AUDIO_ENCODING_ULINEAR_LE, 16, AFMT_U16_LE}, + {AUDIO_ENCODING_SLINEAR_LE, 8, AFMT_S8}, + {AUDIO_ENCODING_SLINEAR_LE, 16, AFMT_S16_LE}, + {AUDIO_ENCODING_SLINEAR_BE, 16, AFMT_S16_BE}, + {AUDIO_ENCODING_ALAW, 8, AFMT_A_LAW}, + {AUDIO_ENCODING_ULAW, 8, AFMT_MU_LAW}, + {0,0,0} +}; + +unsigned +uaudio_query_formats(device_t dev, int reqdir, unsigned maxfmt, struct pcmchan_caps *cap) +{ + struct uaudio_softc *sc = device_get_softc(dev); + const struct usb_audio_streaming_type1_descriptor *asf1d; + const struct uaudio_convesion *iterator; + unsigned fmtcount, foundcount; u_int32_t fmt; - struct uaudio_softc *sc; + uint8_t format, numchan, subframesize, prec, dir, iscontinuous; + int freq, freq_min, freq_max; + char *numchannel_descr; + char freq_descr[64]; + int i,r; - const struct usb_audio_streaming_type1_descriptor *a1d; + if ( sc == NULL ) + return 0; - sc = device_get_softc(dev); + cap->minspeed = cap->maxspeed = 0; + foundcount = fmtcount = 0; for (i = 0; i < sc->sc_nalts; i++) { - fmt = 0; - a1d = sc->sc_alts[i].asf1desc; - prec = a1d->bBitResolution; /* precision */ - - switch (sc->sc_alts[i].encoding) { - case AUDIO_ENCODING_ULINEAR_LE: - if (prec == 8) { - fmt = AFMT_U8; - } else if (prec == 16) { - fmt = AFMT_U16_LE; - } - break; - case AUDIO_ENCODING_SLINEAR_LE: - if (prec == 8) { - fmt = AFMT_S8; - } else if (prec == 16) { - fmt = AFMT_S16_LE; - } - break; - case AUDIO_ENCODING_ULINEAR_BE: - if (prec == 16) { - fmt = AFMT_U16_BE; - } - break; - case AUDIO_ENCODING_SLINEAR_BE: - if (prec == 16) { - fmt = AFMT_S16_BE; - } - break; - case AUDIO_ENCODING_ALAW: - if (prec == 8) { - fmt = AFMT_A_LAW; - } - break; - case AUDIO_ENCODING_ULAW: - if (prec == 8) { - fmt = AFMT_MU_LAW; - } - break; - } + dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - if (fmt != 0) { - if (a1d->bNrChannels == 2) { /* stereo/mono */ - fmt |= AFMT_STEREO; - } else if (a1d->bNrChannels != 1) { - fmt = 0; - } + if ( (dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY) ) + continue; + + asf1d = sc->sc_alts[i].asf1desc; + format = sc->sc_alts[i].encoding; + + numchan = asf1d->bNrChannels; + subframesize = asf1d->bSubFrameSize; + prec = asf1d->bBitResolution; /* precision */ + iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; + + if (iscontinuous) + snprintf(freq_descr, 64, "continous min %d max %d", UA_SAMP_LO(asf1d), UA_SAMP_HI(asf1d)); + else + snprintf(freq_descr, 64, "fixed frequency (%d listed formats)", asf1d->bSamFreqType); + + if ( numchan == 1) + numchannel_descr = " (mono)"; + else if ( numchan == 2 ) + numchannel_descr = " (stereo)"; + else + numchannel_descr = ""; + + if (bootverbose) { + device_printf( dev, "uaudio_query_formats: found a native %s channel%s %s %dbit %dbytes/subframe X %d channels = %d bytes per sample\n", + (dir==UE_DIR_OUT)?"playback":"record", + numchannel_descr, freq_descr, + prec, subframesize, numchan, subframesize*numchan); } + /* + * Now start rejecting the ones that don't map to FreeBSD + */ + + if (numchan != 1 && numchan != 2) + continue; + + for ( iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++ ) + if ( iterator->uaudio_fmt == format && iterator->uaudio_prec == prec ) + break; - if (fmt != 0) { - dir= UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); - if (dir == UE_DIR_OUT) { - pfmt[pn++] = fmt; - } else if (dir == UE_DIR_IN) { - rfmt[rn++] = fmt; + if ( iterator->uaudio_fmt == 0 ) + continue; + + fmt = iterator->freebsd_fmt; + + if (asf1d->bNrChannels == 2) + fmt |= AFMT_STEREO; + + if ( numchan != 1 && numchan == 2 ) + + foundcount++; + + if (fmtcount >= maxfmt ) + continue; + + cap->fmtlist[fmtcount++] = fmt; + + if (iscontinuous) { + freq_min = UA_SAMP_LO(asf1d); + freq_max = UA_SAMP_HI(asf1d); + + if ( cap->minspeed == 0 || freq_min < cap->minspeed ) + cap->minspeed = freq_min; + if ( cap->maxspeed == 0 ) + cap->maxspeed = cap->minspeed; + if ( freq_max > cap->maxspeed ) + cap->maxspeed = freq_max; + } else { + for (r = 0; r < asf1d->bSamFreqType; r++) { + freq = UA_GETSAMP(asf1d, r); + if (cap->minspeed == 0 || freq < cap->minspeed) + cap->minspeed = freq; + if (cap->maxspeed == 0) + cap->maxspeed = cap->minspeed; + if (freq > cap->maxspeed) + cap->maxspeed = freq; } } - - if ((pn > 8*2) || (rn > 8*2)) - break; } - pfmt[pn] = 0; - rfmt[rn] = 0; - return; + cap->fmtlist[fmtcount] = 0; + return foundcount; } void @@ -3889,25 +3933,53 @@ return; } -void -uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir) +int +uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir) { + const struct uaudio_convesion *iterator; struct uaudio_softc *sc; struct chan *ch; + int i, r; sc = device_get_softc(dev); #ifndef NO_RECORDING - if (dir == PCMDIR_PLAY) + if (reqdir == PCMDIR_PLAY) ch = &sc->sc_playchan; else ch = &sc->sc_recchan; #else ch = &sc->sc_playchan; #endif + /* + * We are successful if we find an endpoint that matches our selected format and it + * supports the requested speed. + */ + for (i = 0; i < sc->sc_nalts; i++) { + int dir = UE_GET_DIR(sc->sc_alts[i].edesc->bEndpointAddress); + int format = sc->sc_alts[i].encoding; + const struct usb_audio_streaming_type1_descriptor *asf1d = sc->sc_alts[i].asf1desc; + int iscontinuous = asf1d->bSamFreqType == UA_SAMP_CONTNUOUS; + + if ( (dir == UE_DIR_OUT) != (reqdir == PCMDIR_PLAY) ) + continue; - ch->sample_rate = speed; + for ( iterator = accepted_conversion ; iterator->uaudio_fmt != 0 ; iterator++ ) + if ( iterator->uaudio_fmt == format && iterator->freebsd_fmt == (ch->format&0xfffffff) ) { + if (iscontinuous) { + if ( speed >= UA_SAMP_LO(asf1d) && speed <= UA_SAMP_HI(asf1d)) { + ch->sample_rate = speed; + return 1; + } + } else + for (r = 0; r < asf1d->bSamFreqType; r++) + if ( speed == UA_GETSAMP(asf1d, r) ) { + ch->sample_rate = speed; + return 1; + } + } + } - return; + return 0; } int Index: uaudio.h =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/usb/uaudio.h,v retrieving revision 1.5 diff -u -r1.5 uaudio.h --- uaudio.h 6 Jan 2005 01:43:22 -0000 1.5 +++ uaudio.h 17 Apr 2005 16:42:53 -0000 @@ -41,7 +41,7 @@ #endif void uaudio_chan_set_param(device_t, u_char *, u_char *); void uaudio_chan_set_param_blocksize(device_t dev, u_int32_t blocksize, int dir); -void uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int dir); +int uaudio_chan_set_param_speed(device_t dev, u_int32_t speed, int reqdir); void uaudio_chan_set_param_format(device_t dev, u_int32_t format,int dir); int uaudio_chan_getptr(device_t dev, int); void uaudio_mixer_set(device_t dev, unsigned type, unsigned left, @@ -49,4 +49,4 @@ u_int32_t uaudio_mixer_setrecsrc(device_t dev, u_int32_t src); u_int32_t uaudio_query_mix_info(device_t dev); u_int32_t uaudio_query_recsrc_info(device_t dev); -void uaudio_query_formats(device_t dev, u_int32_t *pfmt, u_int32_t *rfmt); +unsigned uaudio_query_formats(device_t dev, int dir, unsigned maxfmt, struct pcmchan_caps *fmt); Index: uaudio_pcm.c =================================================================== RCS file: /home/ncvs/src/sys/dev/sound/usb/uaudio_pcm.c,v retrieving revision 1.13 diff -u -r1.13 uaudio_pcm.c --- uaudio_pcm.c 17 Apr 2005 15:26:51 -0000 1.13 +++ uaudio_pcm.c 17 Apr 2005 17:06:38 -0000 @@ -49,16 +49,12 @@ device_t sc_dev; u_int32_t bufsz; struct ua_chinfo pch, rch; + u_int32_t ua_playfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ + u_int32_t ua_recfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ + struct pcmchan_caps ua_playcaps; + struct pcmchan_caps ua_reccaps; }; -static u_int32_t ua_playfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_playcaps = {8000, 48000, ua_playfmt, 0}; - -static u_int32_t ua_recfmt[8*2+1]; /* 8 format * (stereo or mono) + endptr */ - -static struct pcmchan_caps ua_reccaps = {8000, 48000, ua_recfmt, 0}; - #define UAUDIO_DEFAULT_BUFSZ 16*1024 /************************************************************/ @@ -76,20 +72,6 @@ ch->dir = dir; pa_dev = device_get_parent(sc->sc_dev); - /* Create ua_playfmt[] & ua_recfmt[] */ - uaudio_query_formats(pa_dev, (u_int32_t *)&ua_playfmt, (u_int32_t *)&ua_recfmt); - if (dir == PCMDIR_PLAY) { - if (ua_playfmt[0] == 0) { - printf("play channel supported format list invalid\n"); - return NULL; - } - } else { - if (ua_recfmt[0] == 0) { - printf("record channel supported format list invalid\n"); - return NULL; - } - - } ch->buf = malloc(sc->bufsz, M_DEVBUF, M_NOWAIT); if (ch->buf == NULL) @@ -133,6 +115,9 @@ struct ua_chinfo *ch = data; + /* + * At this point, no need to queury as we shouldn't select an unsorted format + */ ua = ch->parent; pa_dev = device_get_parent(ua->sc_dev); uaudio_chan_set_param_format(pa_dev, format, ch->dir); @@ -144,15 +129,12 @@ static int ua_chan_setspeed(kobj_t obj, void *data, u_int32_t speed) { - device_t pa_dev; - struct ua_info *ua; - struct ua_chinfo *ch = data; - ch->spd = speed; + device_t pa_dev = device_get_parent(ch->parent->sc_dev); + int res; - ua = ch->parent; - pa_dev = device_get_parent(ua->sc_dev); - uaudio_chan_set_param_speed(pa_dev, speed, ch->dir); + if ( (res = uaudio_chan_set_param_speed(pa_dev, speed, ch->dir)) ) + ch->spd = speed; return ch->spd; } @@ -226,7 +208,7 @@ { struct ua_chinfo *ch = data; - return (ch->dir == PCMDIR_PLAY) ? &ua_playcaps : & ua_reccaps; + return (ch->dir == PCMDIR_PLAY) ? &(ch->parent->ua_playcaps) : &(ch->parent->ua_reccaps); } static kobj_method_t ua_chan_methods[] = { @@ -318,40 +300,62 @@ { struct ua_info *ua; char status[SND_STATUSLEN]; + device_t pa_dev; + u_int32_t nplay, nrec; + int i; - ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_NOWAIT); - if (!ua) + ua = (struct ua_info *)malloc(sizeof *ua, M_DEVBUF, M_ZERO | M_NOWAIT); + if ( ua == NULL ) return ENXIO; - bzero(ua, sizeof *ua); ua->sc_dev = dev; + pa_dev = device_get_parent(dev); + ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536); if (bootverbose) device_printf(dev, "using a default buffer size of %jd\n", (intmax_t)ua->bufsz); ua->bufsz = pcm_getbuffersize(dev, 4096, UAUDIO_DEFAULT_BUFSZ, 65536); if (mixer_init(dev, &ua_mixer_class, ua)) { - return(ENXIO); + goto bad; } - snprintf(status, SND_STATUSLEN, "at addr ?"); + snprintf(status, SND_STATUSLEN, "%s", PCM_KLDSTRING(snd_uaudio)); + + ua->ua_playcaps.fmtlist = ua->ua_playfmt; + ua->ua_reccaps.fmtlist = ua->ua_recfmt; + nplay = uaudio_query_formats(pa_dev, PCMDIR_PLAY, 8, &ua->ua_playcaps); + nrec = uaudio_query_formats(pa_dev, PCMDIR_REC, 8, &ua->ua_reccaps); + + if ( nplay > 1 ) + nplay = 1; + if ( nrec > 1 ) + nrec = 1; #ifndef NO_RECORDING - if (pcm_register(dev, ua, 1, 1)) { + if (pcm_register(dev, ua, nplay, nrec)) { #else - if (pcm_register(dev, ua, 1, 0)) { + if (pcm_register(dev, ua, nplay, 0)) { #endif - return(ENXIO); + goto bad; + } + + for (i = 0; i < nplay; i++) { + pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); } - pcm_addchan(dev, PCMDIR_PLAY, &ua_chan_class, ua); #ifndef NO_RECORDING - pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + for (i = 0; i < nrec; i++) { + pcm_addchan(dev, PCMDIR_REC, &ua_chan_class, ua); + } #endif pcm_setstatus(dev, status); return 0; + +bad: free(ua, M_DEVBUF); + return ENXIO; } static int --------------020405010100010807080902-- From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 07:00:31 2005 Return-Path: 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 EB72816A4CE for ; Mon, 18 Apr 2005 07:00:31 +0000 (GMT) Received: from mail.logos.hr (gates.logos.hr [213.149.47.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 95B6C43D1F for ; Mon, 18 Apr 2005 07:00:28 +0000 (GMT) (envelope-from simun.mikecin@logos.hr) Received: from localhost (localhost.logos.hr [127.0.0.1]) by mail.logos.hr (Postfix) with ESMTP id 662F226D09E for ; Mon, 18 Apr 2005 09:01:47 +0200 (CEST) Received: from mail.logos.hr ([127.0.0.1]) by localhost (mail.logos.hr [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 50697-06-3 for ; Mon, 18 Apr 2005 09:01:36 +0200 (CEST) Received: from server2000.zg.logos.hr (server2000.zg.logos.hr [192.168.1.10]) by mail.logos.hr (Postfix) with ESMTP id A47B526D09C for ; Mon, 18 Apr 2005 09:01:36 +0200 (CEST) Content-Class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-2" Content-Transfer-Encoding: quoted-printable X-MimeOLE: Produced By Microsoft Exchange V6.0.4417.0 Date: Mon, 18 Apr 2005 09:00:15 +0200 Message-ID: <50EADFBD20BB8A4C81C56E73D25A0C0E04B4E2@server2000.zg.logos.hr> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: PVR-150? thread-index: AcVDxBJcZHAIoOHxRXGNzeBdLuOxNQAIALxw From: =?iso-8859-2?Q?=A9imun_Mikecin?= To: "Michael Haro" X-Virus-Scanned: by amavisd-new at logos.hr cc: freebsd-multimedia@freebsd.org Subject: RE: PVR-150? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 07:00:32 -0000 > -----Original Message----- > From: Michael Haro [mailto:mharo@bitsurf.net]=20 > Sent: 18. travanj 2005 5:10 > To: Julian Elischer > Cc: freebsd-multimedia@freebsd.org > Subject: Re: PVR-150? >=20 >=20 > I got the PVR150 card, but I could use a few pointers as to=20 > what to look at to get it working with 5.4-rc2. >=20 > I installed the multimedia/pvr250 port and when I load the=20 > device, dmesg reports the following: >=20 > cxm0: mem 0xc8000000-0xcbffffff=20 > irq 10 at device 13.0 on pci0 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > iicbus0: on iicbb0 master-only > cxm0: LG Innotek TAPC-H701F tuner > cxm0: could not initialize video decoder > iicbus0: detached > iicbb0: detached > cxm_iic0: detached > device_attach: cxm0 attach returned 6 Did you patch your kernel using 'make patch-iicbb' from /usr/ports/multimedia/pvr250 ? From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 07:15:49 2005 Return-Path: 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 138FB16A4CE for ; Mon, 18 Apr 2005 07:15:49 +0000 (GMT) Received: from burrito.bitsurf.net (dcn235-229.dcn.davis.ca.us [168.150.235.229]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8C6A143D1F for ; Mon, 18 Apr 2005 07:15:48 +0000 (GMT) (envelope-from mharo@bitsurf.net) Received: from burrito.bitsurf.net (localhost [127.0.0.1]) by burrito.bitsurf.net (8.13.1/8.13.1) with ESMTP id j3I7IO5E082015; Mon, 18 Apr 2005 00:18:24 -0700 (PDT) (envelope-from mharo@bitsurf.net) Received: (from mharo@localhost) by burrito.bitsurf.net (8.13.1/8.13.1/Submit) id j3I7IOMF082012; Mon, 18 Apr 2005 00:18:24 -0700 (PDT) (envelope-from mharo@bitsurf.net) X-Authentication-Warning: burrito.bitsurf.net: mharo set sender to mharo@bitsurf.net using -f Date: Mon, 18 Apr 2005 00:18:24 -0700 From: Michael Haro To: ?imun Mikecin Message-ID: <20050418071824.GA81926@bitsurf.net> References: <50EADFBD20BB8A4C81C56E73D25A0C0E04B4E2@server2000.zg.logos.hr> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <50EADFBD20BB8A4C81C56E73D25A0C0E04B4E2@server2000.zg.logos.hr> User-Agent: Mutt/1.4.2.1i X-Operating-System: FreeBSD 5.3-RELEASE-p1 X-SMTP-From: localhost [127.0.0.1] (burrito.bitsurf.net) X-Scanned-By: MIMEDefang 2.49 on 168.150.235.229 cc: freebsd-multimedia@freebsd.org Subject: Re: PVR-150? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 07:15:49 -0000 On Mon, Apr 18, 2005 at 09:00:15AM +0200, ?imun Mikecin wrote: > > Did you patch your kernel using 'make patch-iicbb' from > /usr/ports/multimedia/pvr250 ? Yes (oops, I forgot to mention that). I did: make patch-iicbb cd /usr/src make buildkernel make installkernel reboot kldload cxm_iic (or whatever it was called) kldload cxm I'll check again tomorrow because it does seem like something to do with the iicbus stuff. I poked around a little in the source and it appears that iicbus_start() in cxm_saa7115_reset() from cxm_video.c isn't returning 0. I'm not sure where to go from there. Michael From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 08:09:10 2005 Return-Path: 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 7DE0516A4CE for ; Mon, 18 Apr 2005 08:09:10 +0000 (GMT) Received: from ylpvm43.prodigy.net (ylpvm43-ext.prodigy.net [207.115.57.74]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0ADA143D5D for ; Mon, 18 Apr 2005 08:09:10 +0000 (GMT) (envelope-from julian@elischer.org) Received: from pimout2-ext.prodigy.net (pimout2-ext.prodigy.net [207.115.63.101])j3I89BlA014879 for ; Mon, 18 Apr 2005 04:09:11 -0400 X-ORBL: [68.124.205.128] Received: from [192.168.2.2] (adsl-68-124-205-128.dsl.snfc21.pacbell.net [68.124.205.128])j3I894cU267296; Mon, 18 Apr 2005 04:09:08 -0400 Message-ID: <42636B1C.3090402@elischer.org> Date: Mon, 18 Apr 2005 01:09:00 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: Mathew Kanner References: <20050417172014.GM2178@cnd.mcgill.ca> In-Reply-To: <20050417172014.GM2178@cnd.mcgill.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org Subject: Re: please test uaudio capabilities patch X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 08:09:10 -0000 Mathew Kanner wrote: > Hi All, > The following patch changes the driver to probe the > capabilities. With this patch I can run mplayer with a non-native > speed or format and the internal soft-mixer will get the right > chain. Without the patch, I get stuck and I have to disconnect. > > I'm going to commit this soon. This is is against HEAD post my > commit to de-dma the driver. > > --Mat > > the code removed below was added by me yesterday to allow my usb microphone to work. it no longer works with this patch. uaudio0: Logitech product 0x08b1, rev 1.10/0.00, addr 2 uaudio0: audio rev 1.00 pcm1: on uaudio0 jules# cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: port 0x1400-0x14ff irq 5 at device 8.0 on pci0 (4p/1r/0v channels duplex default) pcm1: kld snd_uaudio (mixer only) jules# yesterday (without your change) it created and audio1.0 device which I could record from (though I think the format was wrong as it sounded bad) today it fails to make any device.. note.. the device has only input endpoints and configs.. it's a microphone it has an audio 'mixer' interface as well but that seems to have been found. > @@ -76,20 +72,6 @@ > ch->dir = dir; > > pa_dev = device_get_parent(sc->sc_dev); > - /* Create ua_playfmt[] & ua_recfmt[] */ > - uaudio_query_formats(pa_dev, (u_int32_t *)&ua_playfmt, (u_int32_t *)&ua_recfmt); > - if (dir == PCMDIR_PLAY) { > - if (ua_playfmt[0] == 0) { > - printf("play channel supported format list invalid\n"); > - return NULL; > - } > - } else { > - if (ua_recfmt[0] == 0) { > - printf("record channel supported format list invalid\n"); > - return NULL; > - } > - > - } > > ch->buf = malloc(sc->bufsz, M_DEVBUF, M_NOWAIT); > if (ch->buf == NULL) > @@ -133,6 +115,9 @@ From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 17:03:21 2005 Return-Path: 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 D4F8E16A4CE for ; Mon, 18 Apr 2005 17:03:21 +0000 (GMT) Received: from drizzle.CC.McGill.CA (drizzle.cc.mcgill.ca [132.206.27.48]) by mx1.FreeBSD.org (Postfix) with ESMTP id F242243D58 for ; Mon, 18 Apr 2005 17:03:20 +0000 (GMT) (envelope-from mat@cnd.mcgill.ca) Received: from mailscan3.cc.mcgill.ca (mailscan3.CC.McGill.CA [132.216.77.250])j3IH2rjK006188; Mon, 18 Apr 2005 13:02:57 -0400 Received: from cube.cnd.mcgill.ca (cube.CND.McGill.CA [132.216.25.196]) j3IH2MDg010816; Mon, 18 Apr 2005 13:02:24 -0400 (EDT) Received: from localhost.localdomain (acid.cnd.mcgill.ca [132.216.11.151]) by cube.cnd.mcgill.ca (8.12.11/8.12.11) with ESMTP id j3IH28Kw014607; Mon, 18 Apr 2005 13:02:09 -0400 Received: from localhost.localdomain (acid [127.0.0.1]) j3IH28Vn008113; Mon, 18 Apr 2005 13:02:08 -0400 Received: (from mat@localhost) by localhost.localdomain (8.12.11/8.12.11/Submit) id j3IH1ubl008112; Mon, 18 Apr 2005 13:01:56 -0400 Date: Mon, 18 Apr 2005 13:01:56 -0400 From: Mathew Kanner To: Julian Elischer Message-ID: <20050418170156.GP2178@cnd.mcgill.ca> References: <20050417172014.GM2178@cnd.mcgill.ca> <42636B1C.3090402@elischer.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <42636B1C.3090402@elischer.org> User-Agent: Mutt/1.4.2i Organization: I speak for myself, operating in Montreal, CANADA cc: freebsd-multimedia@freebsd.org cc: Mathew Kanner Subject: Re: please test uaudio capabilities patch X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 17:03:22 -0000 On Apr 18, Julian Elischer wrote: > Mathew Kanner wrote: > >Hi All, > > The following patch changes the driver to probe the > > capabilities. With this patch I can run mplayer with a non-native > > speed or format and the internal soft-mixer will get the right > > chain. Without the patch, I get stuck and I have to disconnect. > > > > I'm going to commit this soon. This is is against HEAD post my > > commit to de-dma the driver. > > > > --Mat > > > > > > the code removed below was added by me yesterday to allow my usb microphone > to work. it no longer works with this patch. > > uaudio0: Logitech product 0x08b1, rev 1.10/0.00, addr 2 > uaudio0: audio rev 1.00 > pcm1: on uaudio0 > > jules# cat /dev/sndstat > FreeBSD Audio Driver (newpcm) > Installed devices: > pcm0: port 0x1400-0x14ff irq 5 at device 8.0 on > pci0 (4p/1r/0v channels duplex default) > pcm1: kld snd_uaudio (mixer only) > jules# > > yesterday (without your change) > it created and audio1.0 device which I could record from > (though I think the format was wrong as it sounded bad) > > today it fails to make any device.. > > note.. the device has only input endpoints and configs.. it's a microphone > it has an audio 'mixer' interface as well but that seems to have been found. Hi Julian, I removed the code on purpose as we should count the number of inputs and outputs and not try and create a play channel if none exist. Does it fail with any message? I'll take a closer look tonight. --Mat From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 20:22:23 2005 Return-Path: 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 6B2BB16A4CE for ; Mon, 18 Apr 2005 20:22:23 +0000 (GMT) Received: from relay04.roc.ny.frontiernet.net (relay04.roc.ny.frontiernet.net [66.133.182.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id E576843D54 for ; Mon, 18 Apr 2005 20:22:22 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter10.roc.ny.frontiernet.net (filter10.roc.ny.frontiernet.net [66.133.183.77]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 531323582BC for ; Mon, 18 Apr 2005 20:22:22 +0000 (UTC) Received: from relay04.roc.ny.frontiernet.net ([66.133.182.167]) [66.133.183.77]) (amavisd-new, port 10024) with LMTP id 19674-01-4 for ; Mon, 18 Apr 2005 20:22:22 +0000 (UTC) Received: from blacklamb.mykitchentable.net (70-97-204-86.dsl2.elk.ca.frontiernet.net [70.97.204.86]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 0D5573582B9 for ; Mon, 18 Apr 2005 20:22:19 +0000 (UTC) Received: from [192.168.1.25] (lugalong.mykitchentable.net [192.168.1.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 4417C3BF3BE for ; Mon, 18 Apr 2005 13:22:19 -0700 (PDT) Message-ID: <426416FA.7050900@mykitchentable.net> Date: Mon, 18 Apr 2005 13:22:18 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: freebsd-multimedia@freebsd.org Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20040701 (2.0) at filter10.roc.ny.frontiernet.net Subject: PVR250 Port X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 20:22:23 -0000 I'm trying to rebuild PVR250 port on my system. However I keep seeing this: tv# make Some tuners (for example the Philips FQ1216M) supports multiple standards. Use the following configuration screen (or 'make config') to choose your local TV channel system if you have such a tuner. At this moment only the Philips FQ1216M is known to do this. If you don't have one, just ignore it. If you have one, select one (1) entry. ===> Vulnerability check disabled, database not found ===> Found saved configuration for pvr250-20041230_1 How can I delete the "saved configuration" and start over again completely from scratch. 'make config', 'make clean', and 'make distclean' have not been any help. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 20:34:02 2005 Return-Path: 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 822DF16A4CE for ; Mon, 18 Apr 2005 20:34:02 +0000 (GMT) Received: from obh.snafu.de (obh.snafu.de [213.73.92.34]) by mx1.FreeBSD.org (Postfix) with ESMTP id DC5B743D31 for ; Mon, 18 Apr 2005 20:34:01 +0000 (GMT) (envelope-from ob@gruft.de) Received: from ob by obh.snafu.de with local (Exim 4.50 (FreeBSD)) id 1DNcwS-0003Rj-Of for freebsd-multimedia@freebsd.org; Mon, 18 Apr 2005 22:34:00 +0200 Date: Mon, 18 Apr 2005 22:34:00 +0200 From: Oliver Brandmueller To: freebsd-multimedia@freebsd.org Message-ID: <20050418203400.GA98269@e-Gitt.NET> Mail-Followup-To: freebsd-multimedia@freebsd.org References: <426416FA.7050900@mykitchentable.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <426416FA.7050900@mykitchentable.net> User-Agent: Mutt/1.5.9i Sender: Oliver Brandmueller Subject: Re: PVR250 Port X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 20:34:02 -0000 Hi. On Mon, Apr 18, 2005 at 01:22:18PM -0700, Drew Tomlinson wrote: > ===> Found saved configuration for pvr250-20041230_1 > > How can I delete the "saved configuration" and start over again > completely from scratch. 'make config', 'make clean', and 'make > distclean' have not been any help. Reading the ports(7) manpage is a very good solution for your problem. In the chapter about the make targets you find for example this one: --- cut here --- rmconfig Remove OPTIONS config for this port. --- cut here --- Greetings, Oliver -- | Oliver Brandmueller | Offenbacher Str. 1 | Germany D-14197 Berlin | | Fon +49-172-3130856 | Fax +49-172-3145027 | WWW: http://the.addict.de/ | | Ich bin das Internet. Sowahr ich Gott helfe. | | Eine gewerbliche Nutzung aller enthaltenen Adressen ist nicht gestattet! | From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 21:28:54 2005 Return-Path: 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 73EF316A4CE for ; Mon, 18 Apr 2005 21:28:54 +0000 (GMT) Received: from relay04.roc.ny.frontiernet.net (relay04.roc.ny.frontiernet.net [66.133.182.167]) by mx1.FreeBSD.org (Postfix) with ESMTP id 00EBC43D54 for ; Mon, 18 Apr 2005 21:28:54 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter07.roc.ny.frontiernet.net (filter07.roc.ny.frontiernet.net [66.133.183.74]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 6961D35837A for ; Mon, 18 Apr 2005 21:28:53 +0000 (UTC) Received: from relay04.roc.ny.frontiernet.net ([66.133.182.167]) [66.133.183.74]) (amavisd-new, port 10024) with LMTP id 01552-10-99 for ; Mon, 18 Apr 2005 21:28:53 +0000 (UTC) Received: from blacklamb.mykitchentable.net (70-97-204-86.dsl2.elk.ca.frontiernet.net [70.97.204.86]) by relay04.roc.ny.frontiernet.net (Postfix) with ESMTP id 10AA9358246 for ; Mon, 18 Apr 2005 21:28:51 +0000 (UTC) Received: from [192.168.1.25] (lugalong.mykitchentable.net [192.168.1.25]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id A9CB63BF3AB for ; Mon, 18 Apr 2005 14:28:50 -0700 (PDT) Message-ID: <42642691.6010408@mykitchentable.net> Date: Mon, 18 Apr 2005 14:28:49 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: FreeBSD Multimedia Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20040701 (2.0) at filter07.roc.ny.frontiernet.net Subject: Can't Get Sound Card Working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 21:28:54 -0000 I have a Creative Audigy sound card I'd like to get going on 5.4-STABLE built a couple of days ago. I've read the Handbook section on configuring sound cards. As such, I'm using the snd_emu10k1 module via /boot/loader.conf. The card shows up in dmesg: pci0: at device 4.5 (no driver attached) pcm0: irq 9 at device 9.0 on pci0 pcm0: 0x20 bytes of rid 0x10 res 4 failed. pcm0: unable to map register space device_attach: pcm0 attach returned 6 pci0: at device 9.2 (no driver attached) However I don't have a /dev/dsp device. Searching Google suggests checking the contents of /dev/sndstat: tv# cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: So OK, the fact that I don't have a /dev/dsp and no installed devices in /dev/sndstat is the problem. Now, what else can I check to find the solution? Google searches have suggested the information from pciconf -lv is helpful. Here it is: pcm0@pci0:9:0: class=0xff01ff card=0x00000000 chip=0x00041102 rev=0x0b hdr=0x7f vendor = 'Creative Labs' device = 'SoundBlaster Audigy Audigy Audio Processor' none1@pci0:9:2: class=0x400111 card=0x00000000 chip=0x40011102 rev=0x0a hdr=0x10 vendor = 'Creative Labs' device = 'EMU10K2 Audigy IEEE1394 Firewire Controller' I also see this and it reminds me that I have an audio device on the motherboard. However I am 99.9% sure I turned it off via the BIOS settings: none0@pci0:4:5: class=0x040100 card=0x00000000 chip=0x30581106 rev=0x20 hdr=0x00 vendor = 'VIA Technologies Inc' device = 'VT8203058 AC97 Audio Codec (All VIA Chipsets)' class = multimedia subclass = audio Any help to get this card working is greatly appreciated. Thanks, Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com From owner-freebsd-multimedia@FreeBSD.ORG Mon Apr 18 23:32:10 2005 Return-Path: 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 8D12E16A4CE for ; Mon, 18 Apr 2005 23:32:10 +0000 (GMT) Received: from wproxy.gmail.com (wproxy.gmail.com [64.233.184.205]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1816343D1D for ; Mon, 18 Apr 2005 23:32:10 +0000 (GMT) (envelope-from cronopiolopez@gmail.com) Received: by wproxy.gmail.com with SMTP id 69so1341159wra for ; Mon, 18 Apr 2005 16:32:09 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fV8CbAaFWkde0zpiNa9qaM9aMN1gpCqpLYOH0rtCMTsRaj5pvka5F5rZYn8pyOtCaBQzjwxU49mygAhDwdn1mputtTYKm+K713V1iHnTHHTtFiuzmucwfBP9VLZ2INuGJ2JK3fK4dcqtqGO7kbxzNp03t2Q6ylMihZCNfKSgPeI= Received: by 10.54.52.1 with SMTP id z1mr3433054wrz; Mon, 18 Apr 2005 16:32:09 -0700 (PDT) Received: by 10.54.32.71 with HTTP; Mon, 18 Apr 2005 16:32:09 -0700 (PDT) Message-ID: <8f8eb53e0504181632449ee267@mail.gmail.com> Date: Tue, 19 Apr 2005 01:32:09 +0200 From: =?ISO-8859-1?Q?Lluis_L=F3pez?= To: freebsd-multimedia@freebsd.org In-Reply-To: <20050418031027.GA76818@bitsurf.net> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: <20050412064056.GA24914@bitsurf.net> <425C0F44.10407@elischer.org> <20050415033559.GA74522@bitsurf.net> <425F48F7.5000005@elischer.org> <20050418031027.GA76818@bitsurf.net> Subject: Re: PVR-150? X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: =?ISO-8859-1?Q?Lluis_L=F3pez?= List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 18 Apr 2005 23:32:10 -0000 On 4/18/05, Michael Haro wrote: > I got the PVR150 card, but I could use a few pointers as to what to look > at to get it working with 5.4-rc2. >=20 > I installed the multimedia/pvr250 port and when I load the device, dmesg > reports the following: >=20 > cxm0: mem 0xc8000000-0xcbffffff irq 10 at > device 13.0 on pci0 > cxm_iic0: on cxm0 > iicbb0: on cxm_iic0 > iicbus0: on iicbb0 master-only > cxm0: LG Innotek TAPC-H701F tuner > cxm0: could not initialize video decoder pvr150/500 have a cx25840 decoder chip, this isn't suported by cxm driver := ( (I think that the audio decoder is unsupported too). > cxm0@pci0:13:0: class=3D0x040000 card=3D0x80030070 chip=3D0x00164444 rev= =3D0x01 hdr=3D0x00 > vendor =3D 'Conexant Inc (Was: Globespan, ICompression Inc)' > device =3D 'iTVC16/CX23416 MPEG Codec' > class =3D multimedia > subclass =3D video >=20 > Any tips as to which files I need to modify, or how to figure what I need > to do to make this card work with the cxm driver? You can see the lastest unstable releases of ivtv driver (for linux). This releases have support for this decoder. You can see his code... Luis From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 19 00:19:30 2005 Return-Path: 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 E70CC16A4CF for ; Tue, 19 Apr 2005 00:19:30 +0000 (GMT) Received: from smtp815.mail.sc5.yahoo.com (smtp815.mail.sc5.yahoo.com [66.163.170.1]) by mx1.FreeBSD.org (Postfix) with SMTP id 6713643D53 for ; Tue, 19 Apr 2005 00:19:30 +0000 (GMT) (envelope-from g_jin@lbl.gov) Received: from unknown (HELO ?192.168.2.11?) (jinmtb@sbcglobal.net@68.127.173.220 with plain) by smtp815.mail.sc5.yahoo.com with SMTP; 19 Apr 2005 00:19:30 -0000 Message-ID: <42644E9A.1080100@lbl.gov> Date: Mon, 18 Apr 2005 17:19:38 -0700 From: "Jin Guojun [VFFS]" User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050108 X-Accept-Language: zh, zh-CN, en MIME-Version: 1.0 To: freebsd-hardware@FreeBSD.ORG References: <199710170653.XAA00516@rah.star-gate.com> In-Reply-To: <199710170653.XAA00516@rah.star-gate.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@FreeBSD.ORG Subject: Video Capture card recommendation X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 00:19:31 -0000 Hi, I am looking for buying a video capture card. According to hardware page, I found a couple of capture cards at pricewatch.com; *Hauppauge WinTV-GO TV Tuner/ Video Capture *PCI AVerMedia AVerDVD EZMaker PCI Card I am sure the first card (WinTV) is supported. How about the second one (AVerDVD), is it supported by FreeBSD? Will anyone have some comment/recommendation on how these cards? Is there any other good capture cards for FreeBSD on the market? TIA, -Jin From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 19 05:08:25 2005 Return-Path: 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 87EB316A4CE for ; Tue, 19 Apr 2005 05:08:25 +0000 (GMT) Received: from md.gfk.ru (md.f231.gfk.ru [84.21.231.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id EA59643D4C for ; Tue, 19 Apr 2005 05:08:23 +0000 (GMT) (envelope-from Yuriy.Tsibizov@gfk.ru) Received: from dialup-chibis.gfk.ru ([10.0.6.45]) by md.gfk.ru (md.gfk.ru [62.205.179.201]) (MDaemon.PRO.v6.8.5.R) with ESMTP id 2-md50000000553.tmp for ; Tue, 19 Apr 2005 09:07:58 +0400 Date: Tue, 19 Apr 2005 09:07:54 +0400 (MSD) From: Yuriy Tsibizov X-X-Sender: chibis@free.home.local To: Drew Tomlinson Message-ID: <20050419085145.G529@free.home.local> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Processed: md.gfk.ru, Tue, 19 Apr 2005 09:07:58 +0400 (not processed: message from valid local sender) X-MDRemoteIP: 10.0.6.45 X-Return-Path: Yuriy.Tsibizov@gfk.ru X-MDaemon-Deliver-To: freebsd-multimedia@freebsd.org cc: FreeBSD Multimedia Subject: Re: Can't Get Sound Card Working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 05:08:25 -0000 >I have a Creative Audigy sound card I'd like to get going on 5.4-STABLE >built a couple of days ago. I've read the Handbook section on >configuring sound cards. As such, I'm using the snd_emu10k1 module via >/boot/loader.conf. The card shows up in dmesg: >pci0: at device 4.5 (no driver attached) >pcm0: irq 9 at device 9.0 on pci0 >pcm0: 0x20 bytes of rid 0x10 res 4 failed. >pcm0: unable to map register space >device_attach: pcm0 attach returned 6 >pci0: at device 9.2 (no driver attached) can you build ports/sysutils/pciutils and send an output of lspci -vv for this card? It looks like driver can't map I/O space for this card. > pcm0@pci0:9:0: class=0xff01ff card=0x00000000 chip=0x00041102 rev=0x0b > hdr=0x7f > vendor = 'Creative Labs' > device = 'SoundBlaster Audigy Audigy Audio Processor' I don't like class and card values of PCI configuration of your card. class should be 0x040100 and card should not be zero, i think. > none1@pci0:9:2: class=0x400111 card=0x00000000 chip=0x40011102 rev=0x0a > hdr=0x10 > vendor = 'Creative Labs' > device = 'EMU10K2 Audigy IEEE1394 Firewire Controller' class value is correct here, but card should be 0x00101102 on Audigy. > Any help to get this card working is greatly appreciated. I think it may be motherboard problem. I can be broken or FreeBSD does not have full support your PCI chipset. Do you have card=0x0 for every PCI device on your computer? Can you get PCI device configuration under other operating system (you can try to boot from any recent Linux Live CD and run lspci or similar program from it)? Yuriy. From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 19 14:27:22 2005 Return-Path: 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 53B2316A4CE for ; Tue, 19 Apr 2005 14:27:22 +0000 (GMT) Received: from relay03.roc.ny.frontiernet.net (relay03.roc.ny.frontiernet.net [66.133.182.166]) by mx1.FreeBSD.org (Postfix) with ESMTP id C9C5A43D1D for ; Tue, 19 Apr 2005 14:27:21 +0000 (GMT) (envelope-from drew@mykitchentable.net) Received: from filter02.roc.ny.frontiernet.net (filter02.roc.ny.frontiernet.net [66.133.183.69])08E0C358669; Tue, 19 Apr 2005 14:27:19 +0000 (UTC) Received: from relay03.roc.ny.frontiernet.net ([66.133.182.166]) [66.133.183.69]) (amavisd-new, port 10024) with LMTP id 08092-08-74; Tue, 19 Apr 2005 14:27:18 +0000 (UTC) Received: from blacklamb.mykitchentable.net (70-97-204-86.dsl2.elk.ca.frontiernet.net [70.97.204.86])C8ED6358664; Tue, 19 Apr 2005 14:27:11 +0000 (UTC) Received: from [165.107.42.217] (unknown [165.107.42.217]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by blacklamb.mykitchentable.net (Postfix) with ESMTP id 8D7ED3BF358; Tue, 19 Apr 2005 07:27:10 -0700 (PDT) Message-ID: <42651514.8050600@mykitchentable.net> Date: Tue, 19 Apr 2005 07:26:28 -0700 From: Drew Tomlinson User-Agent: Mozilla Thunderbird 1.0 (Windows/20041206) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Yuriy Tsibizov References: <20050419085145.G529@free.home.local> In-Reply-To: <20050419085145.G529@free.home.local> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new-20040701 (2.0) at filter02.roc.ny.frontiernet.net cc: FreeBSD Multimedia Subject: Re: Can't Get Sound Card Working X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 14:27:22 -0000 On 4/18/2005 10:07 PM Yuriy Tsibizov wrote: >>I have a Creative Audigy sound card I'd like to get going on 5.4-STABLE >>built a couple of days ago. I've read the Handbook section on >>configuring sound cards. As such, I'm using the snd_emu10k1 module via >>/boot/loader.conf. The card shows up in dmesg: >> >> >>pci0: at device 4.5 (no driver attached) >>pcm0: irq 9 at device 9.0 on pci0 >>pcm0: 0x20 bytes of rid 0x10 res 4 failed. >>pcm0: unable to map register space >>device_attach: pcm0 attach returned 6 >>pci0: at device 9.2 (no driver attached) >> >> >can you build ports/sysutils/pciutils and send an output of lspci -vv for >this card? It looks like driver can't map I/O space for this card. > > >>pcm0@pci0:9:0: class=0xff01ff card=0x00000000 chip=0x00041102 rev=0x0b >>hdr=0x7f >> vendor = 'Creative Labs' >> device = 'SoundBlaster Audigy Audigy Audio Processor' >> >> >I don't like class and card values of PCI configuration of your card. >class should be 0x040100 and card should not be zero, i think. > > >>none1@pci0:9:2: class=0x400111 card=0x00000000 chip=0x40011102 rev=0x0a >>hdr=0x10 >> vendor = 'Creative Labs' >> device = 'EMU10K2 Audigy IEEE1394 Firewire Controller' >> >> >class value is correct here, but card should be 0x00101102 on Audigy. > > >>Any help to get this card working is greatly appreciated. >> >> >I think it may be motherboard problem. I can be broken or FreeBSD does not >have full support your PCI chipset. Do you have card=0x0 for every PCI >device on your computer? Can you get PCI device configuration under other >operating system (you can try to boot from any recent Linux Live CD and >run lspci or similar program from it)? > > Thank you for your reply. You are correct in a way about the motherboard. I opened up the case and re-seated the card. Seems when I screwed the bracket in, it pulls the card out of the slot. A pair of pliers and a slight modification to the case fixed this problem. Sound card works much better now that it's properly installed. Thanks for your help! Drew -- Visit The Alchemist's Warehouse Magic Tricks, DVDs, Videos, Books, & More! http://www.alchemistswarehouse.com From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 19 17:35:10 2005 Return-Path: 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 5013A16A4CE for ; Tue, 19 Apr 2005 17:35:10 +0000 (GMT) Received: from swip.net (mailfe08.swip.net [212.247.154.225]) by mx1.FreeBSD.org (Postfix) with ESMTP id 23A8843D46 for ; Tue, 19 Apr 2005 17:35:09 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-209-89.daxnet.no ([193.217.209.89] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 148618655 for freebsd-multimedia@freebsd.org; Tue, 19 Apr 2005 19:35:06 +0200 From: Hans Petter Selasky To: FreeBSD Multimedia Date: Tue, 19 Apr 2005 20:36:11 +0200 User-Agent: KMail/1.7 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504192036.12201.hselasky@c2i.net> Subject: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 17:35:10 -0000 Hi, Do I have to post a PR or can I just post patches like this to get it committed? 1) I have some problems with an old soundblaster-8 (original) *** sys/dev/sound/isa/sb8.c.ref Wed Oct 20 22:10:18 2004 --- sys/dev/sound/isa/sb8.c Wed Oct 20 22:20:09 2004 *************** *** 565,571 **** if (sb->bd_flags & BD_F_HISPEED) sb_reset_dsp(sb); else ! sb_cmd(sb, DSP_CMD_DMAEXIT_8); if (play) sb_cmd(sb, DSP_CMD_SPKOFF); /* speaker off */ --- 565,578 ---- if (sb->bd_flags & BD_F_HISPEED) sb_reset_dsp(sb); else ! { ! /* sb_cmd(sb, DSP_CMD_DMAEXIT_8); ! * NOTE: DSP_CMD_DMAEXIT_8 ! * does not work with old ! * soundblaster ! */ ! sb_reset_dsp(sb); ! } if (play) sb_cmd(sb, DSP_CMD_SPKOFF); /* speaker off */ 2) there is panic with the vibra16x when trying to record: *** sys/dev/sound/isa/sb16.c.ref Wed Oct 20 22:10:18 2004 --- sys/dev/sound/isa/sb16.c Mon Nov 22 17:56:05 2004 *************** *** 478,484 **** sb_intr(void *arg) { struct sb_info *sb = (struct sb_info *)arg; ! int reason = 3, c; /* * The Vibra16X has separate flags for 8 and 16 bit transfers, but --- 478,484 ---- sb_intr(void *arg) { struct sb_info *sb = (struct sb_info *)arg; ! int reason, c; /* * The Vibra16X has separate flags for 8 and 16 bit transfers, but *************** *** 554,561 **** sb_reset_dsp(sb); if (sb->bd_flags & BD_F_SB16X) { pprio = sb->pch.run? 1 : 0; ! sndbuf_dmasetup(sb->pch.buffer, pprio? sb->drq1 : NULL); sb->pch.dch = pprio? 1 : 0; sndbuf_dmasetup(sb->rch.buffer, pprio? sb->drq2 : sb->drq1); sb->rch.dch = pprio? 2 : 1; --- 554,562 ---- sb_reset_dsp(sb); if (sb->bd_flags & BD_F_SB16X) { + /* full-duplex doesn't work! */ pprio = sb->pch.run? 1 : 0; ! sndbuf_dmasetup(sb->pch.buffer, pprio? sb->drq1 : sb->drq2); sb->pch.dch = pprio? 1 : 0; sndbuf_dmasetup(sb->rch.buffer, pprio? sb->drq2 : sb->drq1); sb->rch.dch = pprio? 2 : 1; The vibra16X supports full duplex. I traced the Windows driver, and what is does is that it programs one DMA channel 8-bit, and the other 16-bit. There might be some kind of auto detection logic here, because it always uses 8-bit for playback, even if I play 16-bit sound ... 3) Missing PCI-ID: *** sbc.orig Wed Dec 25 21:34:52 2002 --- sbc.c Wed Dec 25 18:53:21 2002 *************** *** 251,256 **** --- 251,257 ---- {0x81167316, "ESS ES1681"}, /* ESS1681 */ {0x02017316, "ESS ES1688"}, /* ESS1688 */ + {0x68097316, "ESS ES1688"}, /* ESS1688 */ {0x68187316, "ESS ES1868"}, /* ESS1868 */ {0x03007316, "ESS ES1869"}, /* ESS1869 */ {0x69187316, "ESS ES1869"}, /* ESS1869 */ 4) There is a bug regarding the setting of the SIMPLEX flag (which is currently not working!) Several device drivers call "pcm_setflags" before "pcm_register". The problem is that "pcm_register" clears these flags. Maybe the device drivers should be changed, or maybe "pcm_register" should be changed. Here is my solution: In the file "pcm/sound.c" in the function "pcm_register()" "d->flags = 0;" should be changed into: /* d->flags = 0; should be cleared by allocator of softc; * cannot clear this field here, because several devices set * this flag before calling pcm_register() */ For example see sb8.c: pcm_setflags(dev, pcm_getflags(dev) | SD_F_SIMPLEX); 5) I have a problem with one of my soundcards. When I try to "cat /dev/dsp0.0", the samplerate is always 48000Hz instead of 8000Hz. Is this a bug in the driver? How can I fix it? pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem 0xe0100c00-0xe0100dff,0xe0100800-0xe01008ff irq 10 at device 31.5 on pci0 pcm0: [GIANT-LOCKED] pcm0: 6) I have modified the sound driver so that it can be opened from within the kernel. This enables me to make a sound-bridge that moves data from an ISDN/telephony device to a sound device (full duplex). This works very well and the delay is very little. Are there any plans to make such support generic or what do you think? Yours HPS From owner-freebsd-multimedia@FreeBSD.ORG Tue Apr 19 17:43:20 2005 Return-Path: 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 A140F16A4CE for ; Tue, 19 Apr 2005 17:43:20 +0000 (GMT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 536AE43D4C for ; Tue, 19 Apr 2005 17:43:20 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.8) with ESMTP id j3JHhHUU048625; Tue, 19 Apr 2005 10:43:17 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id j3JHhHKM048624; Tue, 19 Apr 2005 10:43:17 -0700 (PDT) (envelope-from rizzo) Date: Tue, 19 Apr 2005 10:43:17 -0700 From: Luigi Rizzo To: Hans Petter Selasky Message-ID: <20050419104317.A48574@xorpc.icir.org> References: <200504192036.12201.hselasky@c2i.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5.1i In-Reply-To: <200504192036.12201.hselasky@c2i.net>; from hselasky@c2i.net on Tue, Apr 19, 2005 at 08:36:11PM +0200 cc: FreeBSD Multimedia Subject: Re: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 19 Apr 2005 17:43:20 -0000 hi, you should surely post submit a PR so the patches are archived. I suggest to post the things separately so people can deal with them one at the time. cheers luigi On Tue, Apr 19, 2005 at 08:36:11PM +0200, Hans Petter Selasky wrote: > Hi, > > Do I have to post a PR or can I just post patches like this to get it > committed? > > 1) I have some problems with an old soundblaster-8 (original) > > *** sys/dev/sound/isa/sb8.c.ref Wed Oct 20 22:10:18 2004 > --- sys/dev/sound/isa/sb8.c Wed Oct 20 22:20:09 2004 > *************** > *** 565,571 **** > if (sb->bd_flags & BD_F_HISPEED) > sb_reset_dsp(sb); > else > ! sb_cmd(sb, DSP_CMD_DMAEXIT_8); > > if (play) > sb_cmd(sb, DSP_CMD_SPKOFF); /* speaker off */ > --- 565,578 ---- > if (sb->bd_flags & BD_F_HISPEED) > sb_reset_dsp(sb); > else > ! { > ! /* sb_cmd(sb, DSP_CMD_DMAEXIT_8); > ! * NOTE: DSP_CMD_DMAEXIT_8 > ! * does not work with old > ! * soundblaster > ! */ > ! sb_reset_dsp(sb); > ! } > > if (play) > sb_cmd(sb, DSP_CMD_SPKOFF); /* speaker off */ > > > 2) there is panic with the vibra16x when trying to record: > > *** sys/dev/sound/isa/sb16.c.ref Wed Oct 20 22:10:18 2004 > --- sys/dev/sound/isa/sb16.c Mon Nov 22 17:56:05 2004 > *************** > *** 478,484 **** > sb_intr(void *arg) > { > struct sb_info *sb = (struct sb_info *)arg; > ! int reason = 3, c; > > /* > * The Vibra16X has separate flags for 8 and 16 bit transfers, but > --- 478,484 ---- > sb_intr(void *arg) > { > struct sb_info *sb = (struct sb_info *)arg; > ! int reason, c; > > /* > * The Vibra16X has separate flags for 8 and 16 bit transfers, but > *************** > *** 554,561 **** > sb_reset_dsp(sb); > > if (sb->bd_flags & BD_F_SB16X) { > pprio = sb->pch.run? 1 : 0; > ! sndbuf_dmasetup(sb->pch.buffer, pprio? sb->drq1 : NULL); > sb->pch.dch = pprio? 1 : 0; > sndbuf_dmasetup(sb->rch.buffer, pprio? sb->drq2 : sb->drq1); > sb->rch.dch = pprio? 2 : 1; > --- 554,562 ---- > sb_reset_dsp(sb); > > if (sb->bd_flags & BD_F_SB16X) { > + /* full-duplex doesn't work! */ > pprio = sb->pch.run? 1 : 0; > ! sndbuf_dmasetup(sb->pch.buffer, pprio? sb->drq1 : sb->drq2); > sb->pch.dch = pprio? 1 : 0; > sndbuf_dmasetup(sb->rch.buffer, pprio? sb->drq2 : sb->drq1); > sb->rch.dch = pprio? 2 : 1; > > > The vibra16X supports full duplex. I traced the Windows driver, and what is > does is that it programs one DMA channel 8-bit, and the other 16-bit. There > might be some kind of auto detection logic here, because it always uses 8-bit > for playback, even if I play 16-bit sound ... > > 3) Missing PCI-ID: > > *** sbc.orig Wed Dec 25 21:34:52 2002 > --- sbc.c Wed Dec 25 18:53:21 2002 > *************** > *** 251,256 **** > --- 251,257 ---- > > {0x81167316, "ESS ES1681"}, /* ESS1681 */ > {0x02017316, "ESS ES1688"}, /* ESS1688 */ > + {0x68097316, "ESS ES1688"}, /* ESS1688 */ > {0x68187316, "ESS ES1868"}, /* ESS1868 */ > {0x03007316, "ESS ES1869"}, /* ESS1869 */ > {0x69187316, "ESS ES1869"}, /* ESS1869 */ > > > 4) There is a bug regarding the setting of the SIMPLEX flag (which is > currently not working!) > > Several device drivers call "pcm_setflags" before "pcm_register". The problem > is that "pcm_register" clears these flags. Maybe the device drivers should be > changed, or maybe "pcm_register" should be changed. > > Here is my solution: In the file "pcm/sound.c" in the function > "pcm_register()" "d->flags = 0;" should be changed into: > > /* d->flags = 0; should be cleared by allocator of softc; > * cannot clear this field here, because several devices set > * this flag before calling pcm_register() > */ > > For example see sb8.c: > pcm_setflags(dev, pcm_getflags(dev) | SD_F_SIMPLEX); > > > 5) I have a problem with one of my soundcards. When I try to > "cat /dev/dsp0.0", the samplerate is always 48000Hz instead of 8000Hz. Is > this a bug in the driver? How can I fix it? > > pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem > 0xe0100c00-0xe0100dff,0xe0100800-0xe01008ff irq 10 at device 31.5 on pci0 > pcm0: [GIANT-LOCKED] > pcm0: > > > 6) I have modified the sound driver so that it can be opened from within the > kernel. This enables me to make a sound-bridge that moves data from an > ISDN/telephony device to a sound device (full duplex). This works very well > and the delay is very little. Are there any plans to make such support > generic or what do you think? > > > Yours > HPS > _______________________________________________ > freebsd-multimedia@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-multimedia > To unsubscribe, send any mail to "freebsd-multimedia-unsubscribe@freebsd.org" From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 00:44:02 2005 Return-Path: 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 B355616A4CE for ; Wed, 20 Apr 2005 00:44:02 +0000 (GMT) Received: from mail.vicor-nb.com (bigwoop.vicor-nb.com [208.206.78.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 67D8443D46 for ; Wed, 20 Apr 2005 00:44:02 +0000 (GMT) (envelope-from julian@elischer.org) Received: from [208.206.78.97] (julian.vicor-nb.com [208.206.78.97]) by mail.vicor-nb.com (Postfix) with ESMTP id 33DBD7A41E; Tue, 19 Apr 2005 17:44:02 -0700 (PDT) Message-ID: <4265A5D1.5080908@elischer.org> Date: Tue, 19 Apr 2005 17:44:01 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050218 X-Accept-Language: en, hu MIME-Version: 1.0 To: Mathew Kanner References: <20050417172014.GM2178@cnd.mcgill.ca> <42636B1C.3090402@elischer.org> <20050418170156.GP2178@cnd.mcgill.ca> In-Reply-To: <20050418170156.GP2178@cnd.mcgill.ca> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: freebsd-multimedia@freebsd.org Subject: Re: please test uaudio capabilities patch X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 00:44:02 -0000 Mathew Kanner wrote: >On Apr 18, Julian Elischer wrote: > > >> >> >>note.. the device has only input endpoints and configs.. it's a microphone >>it has an audio 'mixer' interface as well but that seems to have been found. >> >> > > Hi Julian, > I removed the code on purpose as we should count the number of >inputs and outputs and not try and create a play channel if none >exist. Does it fail with any message? I'll take a closer look >tonight. > > BTW it doesn;t produce any erro messages that I saw. just no /dev device and nothing in sndstat except the mixer device. > --Mat > > From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 07:13:02 2005 Return-Path: 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 DF3BA16A4CE for ; Wed, 20 Apr 2005 07:13:02 +0000 (GMT) Received: from delight.idiom.com (delight.idiom.com [216.240.32.16]) by mx1.FreeBSD.org (Postfix) with ESMTP id C100F43D45 for ; Wed, 20 Apr 2005 07:13:02 +0000 (GMT) (envelope-from julian@elischer.org) Received: from idiom.com (idiom.com [216.240.32.1]) by delight.idiom.com (Postfix) with ESMTP id BA7911F470B; Wed, 20 Apr 2005 00:13:01 -0700 (PDT) Received: from [192.168.2.3] (home.elischer.org [216.240.48.38]) by idiom.com (8.12.11/8.12.11) with ESMTP id j3K7D0JE031984; Wed, 20 Apr 2005 00:13:01 -0700 (PDT) (envelope-from julian@elischer.org) Message-ID: <426600F4.6010408@elischer.org> Date: Wed, 20 Apr 2005 00:12:52 -0700 From: Julian Elischer User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.7.5) Gecko/20050214 X-Accept-Language: en, hu MIME-Version: 1.0 To: hselasky@c2i.net References: <200504192036.12201.hselasky@c2i.net> In-Reply-To: <200504192036.12201.hselasky@c2i.net> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit cc: FreeBSD Multimedia Subject: Re: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 07:13:03 -0000 Hans Petter Selasky wrote: > > > 6) I have modified the sound driver so that it can be opened from within the > kernel. This enables me to make a sound-bridge that moves data from an > ISDN/telephony device to a sound device (full duplex). This works very well > and the delay is very little. Are there any plans to make such support > generic or what do you think? may be useful for a video interface I'm contemplating. From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 13:48:42 2005 Return-Path: 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 8F7AF16A4CE for ; Wed, 20 Apr 2005 13:48:42 +0000 (GMT) Received: from swip.net (mailfe06.swip.net [212.247.154.161]) by mx1.FreeBSD.org (Postfix) with ESMTP id F1BA843D39 for ; Wed, 20 Apr 2005 13:48:41 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from mp-217-231-167.daxnet.no ([193.217.231.167] verified) by mailfe06.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 336677018 for freebsd-multimedia@freebsd.org; Wed, 20 Apr 2005 15:48:40 +0200 From: Hans Petter Selasky To: FreeBSD Multimedia Date: Wed, 20 Apr 2005 16:49:45 +0200 User-Agent: KMail/1.7 References: <200504192036.12201.hselasky@c2i.net> <20050419104317.A48574@xorpc.icir.org> In-Reply-To: <20050419104317.A48574@xorpc.icir.org> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200504201649.46419.hselasky@c2i.net> Subject: Re: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 13:48:42 -0000 On Tuesday 19 April 2005 19:43, Luigi Rizzo wrote: > hi, > you should surely post submit a PR so the patches are archived. > I suggest to post the things separately so people can deal with them > one at the time. > > cheers > luigi > After having sorted out the PR's one item remains, and that is the problem with my AC97 compatible sound-device. Has anyone verified that recording works with AC97? Is it likely that my soundcard uses a fixed samplerate and has to be soft-downsampled? Can it be that the samplerate is written to the wrong register? Does anyone have any patches or suggestions I might try to get this sound-device working? > > 5) I have a problem with one of my soundcards. When I try to > > "cat /dev/dsp0.0", the samplerate is always 48000Hz instead of 8000Hz. Is > > this a bug in the driver? How can I fix it? > > > > pcm0: port 0x1c00-0x1cff,0x18c0-0x18ff mem > > 0xe0100c00-0xe0100dff,0xe0100800-0xe01008ff irq 10 at device 31.5 on pci0 > > pcm0: [GIANT-LOCKED] > > pcm0: > > > > Yours HPS From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 13:56:47 2005 Return-Path: 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 3620416A4CE for ; Wed, 20 Apr 2005 13:56:47 +0000 (GMT) Received: from web41211.mail.yahoo.com (web41211.mail.yahoo.com [66.218.93.44]) by mx1.FreeBSD.org (Postfix) with SMTP id EA02F43D55 for ; Wed, 20 Apr 2005 13:56:46 +0000 (GMT) (envelope-from arne_woerner@yahoo.com) Received: (qmail 35775 invoked by uid 60001); 20 Apr 2005 13:56:46 -0000 Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; b=ctEpUWC13GkRQXT7ANaBNj9inh31w6p7bYgiDT8pIFApZHTsBsm2NYDFRjUi3wgCsrg3x5tXyAodsPSCKNiibTsQhphRJTQEO5YTL3bJBZM9Y57uP6uxcJtAMV++vc1wU6qfYvv6QUyZnAmTEotSRQlopBcoswIg3o07lhnUNZY= ; Message-ID: <20050420135646.35773.qmail@web41211.mail.yahoo.com> Received: from [83.129.192.39] by web41211.mail.yahoo.com via HTTP; Wed, 20 Apr 2005 06:56:46 PDT Date: Wed, 20 Apr 2005 06:56:46 -0700 (PDT) From: Arne "Wörner" To: hselasky@c2i.net, FreeBSD Multimedia In-Reply-To: 6667 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 13:56:47 -0000 > After having sorted out the PR's one item remains, and that is > the problem > with my AC97 compatible sound-device. Has anyone verified that > recording > works with AC97? > I do not know so much about sound devices... But my kernel says something about AC97 and I record each day several hours from the cd-in connector and I tested the microphone connector some months ago (both works/worked fine). Here is what my kernel says: neo kernel: pcm0: port 0xe000-0xe0ff irq 7 at device 17.5 on pci0 neo kernel: pcm0: [GIANT-LOCKED] neo kernel: pcm0: There is just one thing: I have two TV cards. Each TV card on one channel of CD-IN. Loud, high-frequency sound copies somehow to the other channel. I do not know why... But that is most likely an encoding problem (I use oggenc), or my wires are not connected arte legis. :-)) Or not? -Arne __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 14:08:10 2005 Return-Path: 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 931E916A4CE for ; Wed, 20 Apr 2005 14:08:10 +0000 (GMT) Received: from swip.net (mailfe01.swip.net [212.247.154.1]) by mx1.FreeBSD.org (Postfix) with ESMTP id F275143D3F for ; Wed, 20 Apr 2005 14:08:09 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: Y1QAsIk9O44SO+J/q9KNyQ== Received: from [193.217.231.45] (HELO mp-217-231-45.daxnet.no) by mailfe01.swip.net (CommuniGate Pro SMTP 4.2.9) with ESMTP id 348723310; Wed, 20 Apr 2005 16:08:08 +0200 From: Hans Petter Selasky To: Arne "=?iso-8859-1?q?W=F6rner?=" Date: Wed, 20 Apr 2005 17:09:12 +0200 User-Agent: KMail/1.7 References: <20050420135646.35773.qmail@web41211.mail.yahoo.com> In-Reply-To: <20050420135646.35773.qmail@web41211.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200504201709.13308.hselasky@c2i.net> cc: FreeBSD Multimedia Subject: Re: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: hselasky@c2i.net List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 14:08:10 -0000 On Wednesday 20 April 2005 15:56, Arne W=F6rner wrote: > > After having sorted out the PR's one item remains, and that is > > the problem > > with my AC97 compatible sound-device. Has anyone verified that > > recording > > works with AC97? > > I do not know so much about sound devices... But my kernel says > something about AC97 and I record each day several hours from the > cd-in connector and I tested the microphone connector some months > ago (both works/worked fine). What does "dd if=3D/dev/dspX.X of=3D/dev/null" say about bytes/sec? I get: dd if=3D/dev/dsp0.0 of=3D/dev/null 296+0 records in 296+0 records out 151552 bytes transferred in 3.166495 secs (47861 bytes/sec) > > Here is what my kernel says: > neo kernel: pcm0: port 0xe000-0xe0ff irq 7 at device > 17.5 on pci0 > neo kernel: pcm0: [GIANT-LOCKED] > neo kernel: pcm0: > Yours HPS From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 15:57:15 2005 Return-Path: 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 9246C16A4CE for ; Wed, 20 Apr 2005 15:57:15 +0000 (GMT) Received: from mailout08.sul.t-online.com (mailout08.sul.t-online.com [194.25.134.20]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3972643D4C for ; Wed, 20 Apr 2005 15:57:15 +0000 (GMT) (envelope-from Alexander@Leidinger.net) Received: from fwd19.aul.t-online.de by mailout08.sul.t-online.com with smtp id 1DOHZh-00020M-02; Wed, 20 Apr 2005 17:57:13 +0200 Received: from Andro-Beta.Leidinger.net (E1QhGvZYwe21h8dc+LDNScXwQB4dMnKZJaA3IWkctG1d0s-NYSZJZ5@[84.128.205.214]) by fwd19.sul.t-online.de with esmtp id 1DOHZV-03X9yi0; Wed, 20 Apr 2005 17:57:01 +0200 Received: from localhost (localhost [127.0.0.1])j3KFv2BX080720; Wed, 20 Apr 2005 17:57:02 +0200 (CEST) (envelope-from Alexander@Leidinger.net) Received: from 141.113.101.32 ([141.113.101.32]) by netchild.homeip.net (Horde MIME library) with HTTP for ; Wed, 20 Apr 2005 17:57:02 +0200 Message-ID: <20050420175702.0lj02elef4w44skw@netchild.homeip.net> X-Priority: 3 (Normal) Date: Wed, 20 Apr 2005 17:57:02 +0200 From: Alexander Leidinger To: Arne =?iso-8859-15?b?V/ZybmVy?= References: <20050420135646.35773.qmail@web41211.mail.yahoo.com> In-Reply-To: <20050420135646.35773.qmail@web41211.mail.yahoo.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format="flowed" Content-Disposition: inline Content-Transfer-Encoding: quoted-printable User-Agent: Internet Messaging Program (IMP) H3 (4.0.2) / FreeBSD-4.11 X-ID: E1QhGvZYwe21h8dc+LDNScXwQB4dMnKZJaA3IWkctG1d0s-NYSZJZ5@t-dialin.net X-TOI-MSGID: 953e1963-e283-4a18-b9e8-0dd3594260ff cc: FreeBSD Multimedia Subject: Re: Some bugs and patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 15:57:15 -0000 Arne W=F6rner wrote: > There is just one thing: I have two TV cards. Each TV card on one > channel of CD-IN. Loud, high-frequency sound copies somehow to the > other channel. I do not know why... But that is most likely an > encoding problem (I use oggenc), or my wires are not connected > arte legis. :-)) Or not? No, it's a problem of your hardware setup. Either your cabling is bad (not shielded) and the crosstalk happens there, or your soundcard isn't crosstal= k safe enough. This is "not uncommon" for an integrated soundcard on the mainboard since "the wires" (on the mainboard) run near each other and the analog audio signal cause changes in the magnetic field which causes induction of the signal into the other wire. Bye, Alexander. -- http://www.Leidinger.net Alexander @ Leidinger.net: PGP ID =3D B0063FE7 http://www.FreeBSD.org netchild @ FreeBSD.org : PGP ID =3D 72077137 Your supervisor is thinking about you. From owner-freebsd-multimedia@FreeBSD.ORG Wed Apr 20 17:27:10 2005 Return-Path: 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 9F38D16A4CE; Wed, 20 Apr 2005 17:27:10 +0000 (GMT) Received: from xorpc.icir.org (xorpc.icir.org [192.150.187.68]) by mx1.FreeBSD.org (Postfix) with ESMTP id 56E0C43D2F; Wed, 20 Apr 2005 17:27:08 +0000 (GMT) (envelope-from rizzo@icir.org) Received: from xorpc.icir.org (localhost [127.0.0.1]) by xorpc.icir.org (8.12.11/8.12.8) with ESMTP id j3KHR7m8020449; Wed, 20 Apr 2005 10:27:07 -0700 (PDT) (envelope-from rizzo@xorpc.icir.org) Received: (from rizzo@localhost) by xorpc.icir.org (8.12.11/8.12.3/Submit) id j3KHR7ET020448; Wed, 20 Apr 2005 10:27:07 -0700 (PDT) (envelope-from rizzo) Date: Wed, 20 Apr 2005 10:27:07 -0700 From: Luigi Rizzo To: multimedia@freebsd.org Message-ID: <20050420102707.B20180@xorpc.icir.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="tKW2IUtsqtDRztdT" Content-Disposition: inline User-Agent: Mutt/1.2.5.1i cc: net@freebsd.org Subject: asterisk and zaptel patches X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 20 Apr 2005 17:27:10 -0000 --tKW2IUtsqtDRztdT Content-Type: text/plain; charset=us-ascii Content-Disposition: inline [sorry for the crosspost to -net, but it's relevant there too; please followup to multimedia@ only] following a discussion on developers@, i am posting here some patches for asterisk and the zaptel drivers. If someone feels like committing these, please go ahead. I am attaching a description below. cheers luigi ------------------ These patches are useful to make asterisk and the zaptel drivers work better with FreeBSD. In particular: /usr/ports/net/asterisk: + The "wilcalu" module has a bug in the use of poll(). FreeBSD's poll() always checks for exceptions, even if they are not in the mask passed to the system call. The code in the module however does not handle this condition, resulting in an infinite loop around poll() using all available CPU cycles. The patch in ast20050420b.diff only implements a workaround -- if no data is readable, sleep for 1 second and saving the cpu for others. I suggest to disable the module, anyways, until a better fix is available. + The rtp module at times complains about invalid RTP checksums, when all it happens is that there is no data on a socket to read. I believe this is a perfectly normal event, so the patch in ast20050420b.diff removes the (misleading) error message altogether. + The chan_oss.c code is working very badly with the FreeBSD, partly because of issues in the driver and partly because the module itself was not very clean. ast20050420a.diff contains the diff wrt/ the version in the port, or if you like it better chan_oss.c contains the whole file. I have put in some workaround to limit the amount of data buffered in the driver (to keep the audio queue short), centralize repeated blocks of code, put global variables into the "oss" structure, and in general tried to clean the half-duplex support which, however, i suspect is still broken and probably useless anyways. /usr/ports/misc/zaptel + the zaptel device driver has bugs in the module loading glue which prevent it from probing the card appropriately in FreeBSD 4.x The patches patch-zz1 and patch-zz2 (suitable to be put in /usr/ports/misc/zaptel/files) fix the problem -- freebsd audio driver -- + some of the ioctls are not completely implemented causing unexpected results (e.g. setting block sizes etc). On top of this, individual device drivers also have issues in the handling of blocksizes, with results ranging from no or stuttering sound to large delays in the audio playback. While it would be great to fix the driver, the problem is that the issues affect so many versions of FreeBSD that a solution in user space is still preferable if possible. Nevertheless, a simple patch for sys/dev/sound/pci/ich.c is attached in ich.c.diff -- this driver (which supports the Intel 82801 chipset) in most cases defaults to using only 2 8K buffers, which at the speeds of interest for telephony result in interrupts being 250ms apart, way too slow. This patch uses the closest buffer size compatible with the request, guaranteeing up to 32 interrupts/s if small blocks are used. The driver still has a 500ms delay in the output channel at 8KHz, but fixing that requires a more complex change. --tKW2IUtsqtDRztdT Content-Type: application/octet-stream Content-Disposition: attachment; filename="ast.tgz" Content-Transfer-Encoding: base64 H4sIAMyPZkIAA+w7a3faSLLzlfyKHs9JApbACONH7Ng7doy9PtfBOYA3mc314QgQoBshsXoY e7L+71uP7tYDsD1zZ+d+uMtJDOpHdXVVdT1bdhRv/fBv/tTrzfrezg58w6/GNn3DR33Tb6ve 2LZ26nuWBf1WfbdR/0Hs/LsRw08SxXYoxA9e4k7cJ8Ytpo7j/RkI/bkfG/gP/xv1+g7wpm7X Ru54/AevAfys7zab6/jfAHYr/jet7QaM325Y1g+i/gfjsfLz/5z/yG5RTQaLUCyC8Fs/CN0J CoQTutG3qlWr13a35oN7/N9fuN7Q9pLakIY+O+pVtVr9DUBLXTsWJ/NQWLvCah40dw62dwTK 5SvDMF62YumzMyIQAkDsH1h7BzvbDOLnn0V1v2HuCgP+WnXx88+vRKk0HkVf67c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thu Apr 21 02:19:34 2005 Return-Path: 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 1D7D416A4CE for ; Thu, 21 Apr 2005 02:19:34 +0000 (GMT) Received: from vette.gigo.com (vette.gigo.com [216.218.228.114]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6723043D41 for ; Thu, 21 Apr 2005 02:19:33 +0000 (GMT) (envelope-from lioux@uol.com.br) Received: from 200.163.13.246 (unknown [200.163.13.246]) by vette.gigo.com (Postfix) with ESMTP id 12D655638 for ; Wed, 20 Apr 2005 19:19:32 -0700 (PDT) Received: (qmail 28545 invoked by uid 1001); 21 Apr 2005 02:19:09 -0000 Message-ID: <20050421021909.28497.qmail@exxodus.fedaykin.here> Date: Wed, 20 Apr 2005 23:18:47 -0300 From: Mario Sergio Fujikawa Ferreira To: FreeBSD-multimedia@FreeBSD.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UugvWAfsgieZRqgk" Content-Disposition: inline User-Agent: Mutt/1.5.9i Subject: Help with TV capture (mplayer/brooktree/audigy) X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Apr 2005 02:19:34 -0000 --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Hi, I am having a bit of trouble capturing/watching TV on my box. $ uname -a FreeBSD exxodus.fedaykin.here 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Apr 6 21:27:42 BRT 2005 root@exxodus.fedaykin.here:/usr/obj/usr/src/sys/LIOUX i386 For starters, neither fxtv nor xawtv work here. They both hard lock my system, it just freezes once I start either application. The system simply freezes. The power button does not work, I have to hit reset. I contacted fxtv's developer who told me that "Ouch. When this has happened in the past, it's typically been because the motherboard and/or video card isn't well supported by FreeBSD. Fxtv uses the very old trick of pointing the TV board output to the memory-mapped linear frame buffer of the video card "in the application". Back when it was written there wasn't any other option. Now we have Xv and other methods, which are much better and cleaner for TV apps to use. Fxtv was just never revised to use these." So I turned to mplayer :) Here goes my setup. I have satellite cable which means I cannot use the BrookTree's tunner since the tv input is encoded. I connected the satellite decoder to the video input connector. This is the mplayer line that is working: $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// 1) I was a getting enough image blurring to confuse codecs if I decided to record programming so I added some noise filtering $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf hqdn3d or $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf pp=hb/vb/dr/al 2) Every few seconds the video stream seems to choke; thus, giving me an effect similar to the famous interlaced "blinders effect" so I added a deinterlacer filter $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf filmdint or $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf pp=lb So the mixed lines were: $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf hqdn3d,filmdint or $ mplayer -tv driver=bsdbt848:noaudio:width=640:height=480:input=0:norm=ntsc tv:// -vf pp=hb/vb/dr/al/lb However, I am getting poor performance. The video stream seems to stutter. I would prefer not to loose a lot of resolution but I would appreciate any help on how to maintain a good compromise of performance vs quality. Only compromise enough quality to achieve a smooth video stream (standard fps without chokes). Furthermore, I am not sure how can I get audio input. I can listen to dvds, mp3s, ogms just fine though. I connected the audio output to the mic connector of the audigy sound card. Nonetheless, I am not sure how can I hear this audio. Yeah, I am a bit clueless. :) I am using the latest audigy driver found at http://chibis.persons.gfk.ru/audigy/ I used the following commands mixer rec 100 ## set record bus volume emuctrl amp 4 ## amplify every input four times emuctrl set out13 100 ## set recording volume for DSP output emuctrl rset in6 100 ## set recording volume for DSP input wavrec test.wav ## record 10s using wavrec from ports/audio/wavplay port. However, I got nothing :( $ cat /dev/emu10kx0 FreeBSD EMU10Kx Audio Driver Hardware resource usage: DSP General Purpose Registers: 154 used, 512 total DSP Instruction Registers: 168 used, 1024 total Card supports AC97 codec and 5.1 output, Audigy DSP code with Audigy2 hacks Installed devices: EMU10Kx Mixer Interface on emu10kx0 FX BUSes Inputs Outputs Playback 1 8 18 Recording 1 8 0 EMU10Kx PCM Interface on pcm0 Analog mode, S/PDIF output is PCM stereo $ cat /dev/sndstat FreeBSD Audio Driver (newpcm) Installed devices: pcm0: on emu10kx0 (16p/1r/4v channels duplex default) Help!!! :) Anyone? Regards, -- Mario S F Ferreira - DF - Brazil - "I guess this is a signature." feature, n: a documented bug | bug, n: an undocumented feature --UugvWAfsgieZRqgk Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="dmesg.boot" Copyright (c) 1992-2005 The FreeBSD Project. Copyright (c) 1979, 1980, 1983, 1986, 1988, 1989, 1991, 1992, 1993, 1994 The Regents of the University of California. All rights reserved. FreeBSD 5.4-STABLE #0: Wed Apr 6 21:27:42 BRT 2005 root@exxodus.fedaykin.here:/usr/obj/usr/src/sys/LIOUX Timecounter "i8254" frequency 1193182 Hz quality 0 CPU: AMD Athlon(tm) XP 2600+ (1917.81-MHz 686-class CPU) Origin = "AuthenticAMD" Id = 0x6a0 Stepping = 0 Features=0x383fbff AMD Features=0xc0400000 real memory = 2146697216 (2047 MB) avail memory = 2095230976 (1998 MB) ACPI APIC Table: MADT: Forcing active-low polarity and level trigger for SCI ioapic0 irqs 0-23 on motherboard npx0: on motherboard npx0: INT 16 interface acpi0: on motherboard acpi0: Power Button (fixed) Timecounter "ACPI-fast" frequency 3579545 Hz quality 1000 acpi_timer0: <24-bit timer at 3.579545MHz> port 0x808-0x80b on acpi0 cpu0: on acpi0 pcib0: port 0xcf8-0xcff on acpi0 pci0: on pcib0 agp0: mem 0xe0000000-0xefffffff at device 0.0 on pci0 pcib1: at device 1.0 on pci0 pci1: on pcib1 drm0: mem 0xfe000000-0xfe7fffff,0xfeafc000-0xfeafffff,0xfa000000-0xfbffffff irq 16 at device 0.0 on pci1 info: [drm] AGP at 0xe0000000 256MB info: [drm] Initialized mga 3.1.0 20021029 on minor 0 bktr0: mem 0xfd9fe000-0xfd9fefff irq 19 at device 7.0 on pci0 smbus0: on bktr0 iicbb0: on bktr0 iicbus0: on iicbb0 master-only iicsmb0: on iicbus0 smbus1: on iicsmb0 bktr0: Hauppauge Model 44001 C110 bktr0: Hauppauge WinCast/TV. pci0: at device 7.1 (no driver attached) fxp0: port 0xb800-0xb83f mem 0xfebc0000-0xfebdffff,0xfebfe000-0xfebfefff irq 18 at device 8.0 on pci0 miibus0: on fxp0 inphy0: on miibus0 inphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto fxp0: Ethernet address: 00:02:b3:2d:b2:de emu10kx0: port 0xbc00-0xbc3f irq 17 at device 10.0 on pci0 pcm0: on emu10kx0 pcm0: pci0: