Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 12 May 2000 17:01:06 -0700 (PDT)
From:      Lars Eggert <larse@isi.edu>
To:        tanimura@r.dl.itc.u-tokyo.ac.jp, c.perkins@cs.ucl.ac.uk
Cc:        freebsd-multimedia@freebsd.org, rat-users@cs.ucl.ac.uk, freebsd-stable@freebsd.org
Subject:   Re: Fwd: Re: FreeBSD-4.0 & CS461x & rat/vat
Message-ID:  <14620.39746.774400.21559@hbo.isi.edu>
In-Reply-To: <14618.4634.680064.72159A@rina>
References:  <14616.18236.968899.283451@hbo.isi.edu> <14618.4634.680064.72159A@rina>

next in thread | previous in thread | raw e-mail | index | archive | help
  seigo> This is a problem of our pcm driver. We now simply return the
  seigo> statically defined capability of a driver to AIOGCAP. It
  seigo> would help you to add a workround done in SNDCTL_PCM_GETCAPS,
  seigo> attached below.

I've tried to use the patch, and the situation gets more confusing. On
a recent (built 5/10/00) FreeBSD-4.0-STABLE box, rat doesn't even
start correctly anymore EVEN WITHOUT THE PATCH:

[larse@hbo: ~] rat-4.2.3 hbo/7777
22919:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
22920:main_ui.c:106 rat-ui started argc=5
22920:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
22920:main_ui.c:120 Waiting for mbus.waiting(rat-token-5d54732b) from controller...

And this is where it hangs. I doubt this new problem is newpcm related. It
seems like rat cannot correctly set up the mcast bus between its helper
processes - have there been multicast/route/network changes been committed
to -STABLE recently that could explain this?


Second try. On a FreeBSD-4.0-RELEASE box, I've applied your dsp.c
patch, and I don't see the behavior above, even without the patch.
(This is why I think someone broke something in STABLE.) With the
patch, this is what rat tells me now:

[larse@tbs: ~] rat-4.2.3 hbo/7777
550:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
551:main_ui.c:106 rat-ui started argc=5
551:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
551:main_ui.c:120 Waiting for mbus.waiting(rat-token-2172cb85) from controller...
551:main_ui.c:122 ...got it
551:main_ui.c:128 Waiting for mbus.go(rat-token-2172cb85) from controller...
552:auddev_luigi.c:530 dev (0) name (CS461x PCM Audio)
552:auddev.c:1172 Added "CS461x PCM Audio" to audio device table
552:auddev.c:1172 Added "No Audio Device" to audio device table
552:main_engine.c:154 Initializing session 0
552:channel.c:204 Created encoder: "None"
552:audio.c:235 Change device requested.
552:auddev.c:552 Opened device: No Audio Device
552:auddev.c:577 Requested Input: 16-bit signed linear,8-kHz,Mono
552:auddev.c:579 Actual Input:    8-bit a-law,8-kHz,Mono
552:auddev.c:588 Requested Output: 16-bit signed linear,8-kHz,Mono
552:auddev.c:590 Actual Output:    8-bit a-law,8-kHz,Mono
552:transmit.c:134 Unit duration 160 channels 1
552:mix.c:106 Mixer created.  Aligned to 0 8000kHz
552:audio.c:296 0x00000000 0x00000201
552:mbus_config.c:656 using Addr:224.255.222.239 Port:47000 Scope:HOSTLOCAL for MBUS
552:main_engine.c:174 Waiting for mbus.waiting(rat-token-431d8f8b) from controller...
552:main_engine.c:176 ...got it
552:main_engine.c:180 Waiting for mbus.go(rat-token-431d8f8b) from controller...
552:rtp.c:551 Created database entry for ssrc 0x75d6b28a
552:main_engine.c:182 ...got it
552:audio.c:235 Change device requested.
552:mix.c:121 Mixer destroyed.  Head 0 8000kHz Tail 0 8000kHz
552:auddev_luigi.c:62 Opening /dev/audio0
552:auddev_luigi.c:70 soundcaps[0].rate_min = 11025
552:auddev_luigi.c:71 soundcaps[0].rate_max = 48000
552:auddev_luigi.c:72 soundcaps[0].formats  = 0x90000010
552:auddev_luigi.c:73 soundcaps[0].bufsize  = 320
552:auddev_luigi.c:74 soundcaps[0].mixers   = 0x00000001
552:auddev_luigi.c:75 soundcaps[0].inputs   = 0x004049f1
552:auddev_luigi.c:76 soundcaps[0].left     = 0x0064
552:auddev_luigi.c:77 soundcaps[0].right    = 0x0064
552:auddev_luigi.c:142 rec size 40, play size 40 bytes
552:auddev_luigi.c:178 Failed MIXER_WRITE(SOUND_MIXER_IMIX)
552:auddev.c:552 Opened device: CS461x PCM Audio
552:auddev.c:582 Input:  16-bit signed linear,8-kHz,Mono
552:auddev.c:593 Output: 16-bit signed linear,8-kHz,Mono
552:transmit.c:134 Unit duration 160 channels 1
552:mix.c:106 Mixer created.  Aligned to 0 8000kHz
552:audio.c:296 0x00000201 0x00000101
552:auddev_luigi.c:335 Failed MIXER_WRITE(SOUND_MIXER_IMIX)
552:channel.c:204 Created encoder: "None"
552:auddev_luigi.c:335 Failed MIXER_WRITE(SOUND_MIXER_IMIX)
552:settings.c:434 gecos Lars Eggert,1045,(310) 448-9185,(310) 827-3569 name larse
552:settings.c:473 username Lars Eggert Lars Eggert
552:audio.c:426 catch up! read_dur(992) > cushion_size(560)
552:mix.c:389 Getting new cushion 800 old 560
552:audio.c:426 catch up! read_dur(1824) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
551:main_ui.c:130 ...got it
551:main_ui.c:133 Waiting for mbus.waiting(rat-ui-requested) from media engine...
552:audio.c:426 catch up! read_dur(992) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(928) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(1920) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(1056) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(864) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
551:main_ui.c:146 ...got it
552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 800 old 800
552:auddev_luigi.c:505 Device error!552:audio.c:426 catch up! read_dur(960) > cushion_size(800)
552:mix.c:389 Getting new cushion 1040 old 800
552:audio.c:482 Increasing cushion.
552:audio.c:426 catch up! read_dur(1856) > cushion_size(1120)
552:mix.c:389 Getting new cushion 1200 old 1120
Error writing device.: Device not configured
552:audio.c:467 Decreasing cushion
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
Error writing device.: Device not configured
^C550:main_control.c:679 Caught signal 2
550:main_control.c:164 Killing process 551
550:main_control.c:164 Killing process 552
552:main_engine.c:64 Caught signal 2

The signals are due to me killing the process, otherwise it happily
executes spitting out error messages. So yes, your patch seems to fix
part of the problem, but rat still doesn't work. (Other audio
software, e.g. xmms, does; like before.)

Lars
________________________________________________________________________
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-stable" in the body of the message




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