Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 27 Jul 2000 22:10:44 +0100
From:      Orion Hodson <O.Hodson@cs.ucl.ac.uk>
To:        Lars Eggert <larse@ISI.EDU>
Cc:        "rat-users@cs.ucl.ac.uk" <rat-users@cs.ucl.ac.uk>, multimedia@freebsd.org
Subject:   Re: rat & FreeBSD-4.1
Message-ID:  <16073.964732244@cs.ucl.ac.uk>
In-Reply-To: Your message of "Thu, 27 Jul 2000 12:35:10 PDT." <39808EEE.894B6DA7@isi.edu>

next in thread | previous in thread | raw e-mail | index | archive | help

Lars (and all)

The main problem is that AFMT_FULLDUPLEX appears to be a deprecated
device capability flag under newpcm.  Rat-4 is designed around full
duplex hardware.  The previous pcm driver would open (some?all?) half
duplex cards with open(.., O_RDWR).  Querying the device caps check
was the only way to be sure of full duplex capability.

I committed a change last weekend that checks whether the driver is
pcm or newpcm, and moderates it's behaviour accordingly.  I've not had
time (or access) to check this with other hardware yet.  If you want
to play the repository is anonymously accessible:

	http://www-mice.cs.ucl.ac.uk/multimedia/software/cvsanon.html

If you test this and it'd be good to know if this works on other
drivers.  Alternatively if you have the code for an earlier RAT
version you should be able to comment out the AFMT_FULLDUPLEX and
AFMT_WEIRD checks in auddev_luigi.c.

There's also a minor problem in the way rat attempts to deal with
mixer loopback (at least with ES1370).  The existing method worked for
pcm, but does not for newpcm.  I'm not yet sure if this is specific to
this card, the way rat talks to the mixer, or it's just a change in
the driver interface.  The last code I looked at was 4.0-20000703
(newpcm looks great, btw).  There look to be some new mixer goodies on
the way.  Unless someone picks up the gauntlet I'll wait and what
happens with the new mixer calls before making changes.

Kind Regards
- Orion.

<39808EEE.894B6DA7@isi.edu>Lars Eggert writes:
> I've just compiled rat (from CVS) under FreeBSD-4.1. Problems:
> 
> UDP loopback multicast checksums are wrong (bug in FreeBSD), thanks to
> Yasuhito Futatsuki for alerting me to this a while ago. 
> Workaround: sysctl -w net.inet.udp.checksum=0
> 
> There's still a problem with the newpcm code in FreeBSD-4.x, it seems (see
> the !!!!! lines below) - any ideas?
> 
> 26248:mbus_config.c:656 using Addr:224.255.222.239 Port:47000
> Scope:HOSTLOCAL for MBUS
> 26249:main_ui.c:106 rat-ui started argc=5
> 26249:mbus_config.c:656 using Addr:224.255.222.239 Port:47000
> Scope:HOSTLOCAL for MBUS
> 26249:main_ui.c:120 Waiting for mbus.waiting(rat-token-4ccae662) from
> controller...
> 26250:auddev_luigi.c:555 dev (0) name (CS461x PCM Audio)
> 26250:auddev_luigi.c:567 Audio driver is newpcm
> 26250:auddev_trans.c:107 Cannot open transcoder audio device: not a
> transcoder
> 26250:auddev.c:1169 Added "CS461x PCM Audio" to audio device table
> 26250:auddev.c:1169 Added "No Audio Device" to audio device table
> 26250:main_engine.c:227 Initializing session 0
> 26250:channel.c:204 Created encoder: "None"
> 26250:audio.c:235 Change device requested.
> 26250:auddev.c:549 Opened device: No Audio Device
> 26250:auddev.c:579 Input:  16-bit signed linear,8-kHz,Mono
> 26250:auddev.c:590 Output: 16-bit signed linear,8-kHz,Mono
> 26250:transmit.c:165 Unit duration 160 channels 1
> 26250:mix.c:106 Mixer created.  Aligned to 0 8000kHz
> 26250:audio.c:296 0x00000000 0x00000201
> 26250:mbus_config.c:656 using Addr:224.255.222.239 Port:47000
> Scope:HOSTLOCAL for MBUS
> 26250:main_engine.c:133 Waiting for mbus.waiting(rat-token-497f8da4) from
> controller...
> 26249:main_ui.c:122 ...got it
> 26249:main_ui.c:128 Waiting for mbus.go(rat-token-4ccae662) from
> controller...
> 26250:main_engine.c:150 ...got it
> 26250:main_engine.c:152 Sending mbus.go(rat-token-497f8da4) to
> controller...
> 26250:main_engine.c:168 ...done
> 26250:main_engine.c:176 Waiting for mbus.go("rat-token-497f8da4") from
> controller...
> 26250:rtp.c:551 Created database entry for ssrc 0x2543329a
> 26250:main_engine.c:190 ...got it
> 26250:audio.c:235 Change device requested.
> 26250:mix.c:121 Mixer destroyed.  Head 0 8000kHz Tail 0 8000kHz
> 
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> 26250:auddev_luigi.c:82 Opening /dev/audio0
> Could not open device: CS461x PCM Audio (half-duplex?)
> luigi_audio_open: Device busy
> 26250:auddev_luigi.c:220 Device already closed!
> !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
> 
> 26250:auddev.c:549 Opened device: No Audio Device
> 26250:auddev.c:579 Input:  16-bit signed linear,8-kHz,Mono
> 26250:auddev.c:590 Output: 16-bit signed linear,8-kHz,Mono
> 26250:transmit.c:165 Unit duration 160 channels 1
> 26250:mix.c:106 Mixer created.  Aligned to 0 8000kHz
> 26250:audio.c:280 Fellback to old dev config
> 26250:audio.c:296 0x00000201 0x00000201
> 26250:audio.c:299 Restoring ports
> 26250:channel.c:204 Created encoder: "None"
> 26250:settings.c:434 gecos Lars Eggert,707,(310) 448-9185,(310) 827-3569
> name larse
> 26250:settings.c:474 username Lars Eggert Lars Eggert
> 26250:audio.c:482 Increasing cushion.
> 26249:main_ui.c:130 ...got it
> 26249:main_ui.c:133 Waiting for mbus.waiting(rat-ui-requested) from media
> engine...
> 26249:main_ui.c:146 ...got it
> 26250:mbus_engine.c:1484 Got mbus.waiting(rat-ui-requested)
> 26249:main_ui.c:186 Waiting for tool.rat.ui.detach() from media engine...
> 26249:main_ui.c:195 ...got it
> 26248:mbus_control.c:55 Got quit (media:audio module:ui app:rat id:26248)
> 26249:main_ui.c:211 Waiting for mbus.quit() from controller...
> 26250:audio.c:467 Decreasing cushion
> 26250:audio.c:467 Decreasing cushion
> 26250:mbus_engine.c:1484 Got mbus.waiting(rat-ui-requested)
> 26248:main_control.c:290 Sending mbus.quit() to (media:audio module:ui
> app:rat id:26248)...
> 26249:mbus_ui.c:82 Got mbus.quit() from (media:audio module:control app:rat
> id:26248)
> 26249:main_ui.c:220 ...got it
> 26248:main_control.c:301 Freeing memory: 
> 0  addr: 0x84cce00  size:    41  age:    632  file: mbus.c:477
> 1  addr: 0x84d1880  size:    46  age:    603  file: mbus.c:923
> 2  addr: 0x84d1900  size:    46  age:    519  file: mbus.c:933
> Program initialisation finished at age    650
> 26249:main_ui.c:244 User interface exit
> 26248:main_control.c:326 Caught signal SIGCHLD: 20
> ...done
> 26248:main_control.c:290 Sending mbus.quit() to (media:audio module:engine
> app:rat id:26248)...
> 26250:mbus_engine.c:1459 Media engine got mbus.quit()
> 26248:main_control.c:301 ...done
> 26248:process.c:83 Process already dead
> 26248:process.c:83 Process already dead
> 26248:main_control.c:511 Controller exit
> 26250:mix.c:121 Mixer destroyed.  Head 55896 8000kHz Tail 55896 8000kHz
> 26250:auddev.c:1183 audio_free_interfaces 4
> 26250:auddev.c:1185 0x0
> 26250:auddev.c:1185 0x0
> 26250:auddev.c:1185 0x0
> 26250:auddev.c:1185 0x0
> 26250:pdb.c:201 Removing persistent database entry for SSRC 0x2543329a
> Freeing memory: 
> 0  addr: 0x8287480  size:    45  age:   1758  file: mbus.c:477
> 1  addr: 0x8286840  size:     9  age:    643  file: mbus_parser.c:237
> Program initialisation finished at age   1236
> 26250:main_engine.c:485 Media engine exit
> 
> -- 
> Lars Eggert <larse@isi.edu>                 Information Sciences Institute
> http://www.isi.edu/larse/                University of Southern California
> 
> 
> To Unsubscribe: send mail to majordomo@FreeBSD.org
> with "unsubscribe freebsd-multimedia" in the body of the message


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?16073.964732244>