usb/128977: uaudio is not full duplex

Luiz Pasqual pasquall at terra.com.br
Tue Nov 18 15:50:02 PST 2008


>Number:         128977
>Category:       usb
>Synopsis:       uaudio is not full duplex
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-usb
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Nov 18 23:50:01 UTC 2008
>Closed-Date:
>Last-Modified:
>Originator:     Luiz Pasqual
>Release:        7.1-PRERELEASE
>Organization:
>Environment:
FreeBSD renault 7.1-PRERELEASE FreeBSD 7.1-PRERELEASE #1: Tue Nov 18 19:10:43 BRST 2008     root at renault:/usr/obj/usr/src/sys/PASQUALL  i386
>Description:
When a Headset USB is attached it is impossible to hear and speak at the same time, it is a problem if we are using softphones.
>How-To-Repeat:
- Attach a headset USB
- And try to make a conversation via some softphone
>Fix:
In the file: /usr/src/sys/dev/sound/usb/uaudio.c

Commenting this lines and rebuild kernel, should solve this problem:

--- uaudio.c    2008-11-18 21:13:30.000000000 -0200
+++ uaudio.c.new        2008-11-18 21:09:31.000000000 -0200
@@ -3828,14 +3828,16 @@
 int
 uaudio_init_params(struct uaudio_softc *sc, struct chan *ch, int mode)
 {
        int i, j, enc;
        int samples_per_frame, sample_size;

+/*
        if ((sc->sc_playchan.pipe != NULL) || (sc->sc_recchan.pipe != NULL))
                return (-1);
+*/

        switch(ch->format & 0x000FFFFF) {
        case AFMT_U8:
                enc = AUDIO_ENCODING_ULINEAR_LE;
                ch->precision = 8;
                break;


>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-usb mailing list