Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 9 May 2000 10:13:32 -0700 (PDT)
From:      Lars Eggert <larse@isi.edu>
To:        freebsd-multimedia@freebsd.org
Subject:   Fwd: Re: FreeBSD-4.0 & CS461x & rat/vat
Message-ID:  <14616.18236.968899.283451@hbo.isi.edu>

next in thread | raw e-mail | index | archive | help
Is there any documentation online on how to enable full duplex audio
with newpcm? (See Colin's question below.)

Thanks,
Lars
________________________________________________________________________
Lars Eggert <larse@isi.edu>               Information Sciences Institute
http://www.isi.edu/~larse/             University of Southern California


------- start of forwarded message (RFC 934 encapsulation) -------
From: Colin Perkins <C.Perkins@cs.ucl.ac.uk>
To: Lars Eggert <larse@ISI.EDU>
Subject: Re: FreeBSD-4.0 & CS461x & rat/vat
Date: Tue, 09 May 2000 18:01:37 +0100

- --> Lars Eggert writes:
>  colin> I've built a debugging version of rat, which might yield more
>  colin> light on the problem. If you can try running
>  colin> http://www.cs.ucl.ac.uk/staff/c.perkins/miscellaneous/rat-4.2.3-freebsd3.1.tar.gz
>  colin> and mail me the output, it might be helpful.
>
>Here's what I see after starting the debug-rat, sent it some audio and
>then quit:
>
>[larse@hbo: ~/bin] ./rat-4.2.3 dum/7777
>740:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
>741:main_ui.c:106 rat-ui started argc=5
>741:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
>741:main_ui.c:120 Waiting for mbus.waiting(rat-token-5b5c4df8) from controller...
>741:main_ui.c:122 ...got it
>741:main_ui.c:128 Waiting for mbus.go(rat-token-5b5c4df8) from controller...
>742:auddev_luigi.c:530 dev (0) name (CS461x PCM Audio)
>742:auddev.c:1172 Added "CS461x PCM Audio" to audio device table
>742:auddev.c:1172 Added "No Audio Device" to audio device table
>742:main_engine.c:154 Initializing session 0
>742:channel.c:204 Created encoder: "None"
>742:audio.c:235 Change device requested.
>742:auddev.c:552 Opened device: No Audio Device
>742:auddev.c:577 Requested Input: 16-bit signed linear,8-kHz,Mono
>742:auddev.c:579 Actual Input:    8-bit a-law,8-kHz,Mono
>742:auddev.c:588 Requested Output: 16-bit signed linear,8-kHz,Mono
>742:auddev.c:590 Actual Output:    8-bit a-law,8-kHz,Mono
>742:transmit.c:134 Unit duration 160 channels 1
>742:mix.c:106 Mixer created.  Aligned to 0 8000kHz
>742:audio.c:296 0x00000000 0x00000201
>742:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
>742:main_engine.c:174 Waiting for mbus.waiting(rat-token-32c16c82) from controller...
>742:main_engine.c:176 ...got it
>742:main_engine.c:180 Waiting for mbus.go(rat-token-32c16c82) from controller...
>742:rtp.c:551 Created database entry for ssrc 0x6ed35030
>742:main_engine.c:182 ...got it
>742:audio.c:235 Change device requested.
>742:mix.c:121 Mixer destroyed.  Head 0 8000kHz Tail 0 8000kHz
>742:auddev_luigi.c:62 Opening /dev/audio0
>742:auddev_luigi.c:70 soundcaps[0].rate_min = 11025
>742:auddev_luigi.c:71 soundcaps[0].rate_max = 48000
>742:auddev_luigi.c:72 soundcaps[0].formats  = 0x10000010
                                               ^^^^^^^^^^
This indicates the problem: rat is expecting that a full duplex card has
the high order bit set (i.e. AFMT_FULLDUPLEX in <machine/soundcard.h>),
such that this should read 0x90000010.

Do you know if there's any documentation for the changes in the audio API
in FreeBSD 4.0 available online? Probably there's now an ioctl() which is
needed to enable full duplex, like on other platforms.

Cheers,
Colin

------- end -------


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-multimedia" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14616.18236.968899.283451>