kern/152622: [pcm] uaudio recording problem

Hans Petter Selasky hselasky at c2i.net
Mon Apr 11 16:39:20 UTC 2011


On Monday 11 April 2011 18:27:21 Thierry Thomas wrote:
> On mon 11 apr 11 at 17:47:37 +0200, Hans Petter Selasky <hselasky at c2i.net>
> 
>  wrote:
> > Hi,
> 
> Hello,
> 
> > > uaudio_chan_record_callback: transferred 0 bytes Apr 10 14:33:05 graf
> > > last message repeated 623 times
> > 
> > Your device does not generate any data for recording.
> > 
> > Try setting:
> > 
> > sysctl hw.usb.uaudio.default_rate
> > 
> > To: 16000 or 32000
> > 
> > Then replug your device and re-test.
> 
> Still no success:
> 
> # sysctl hw.usb.uaudio.default_rate=16000
> hw.usb.uaudio.default_rate: 0 -> 16000
> # dd if=/dev/dsp1.0 of=/dev/dsp0.0 bs=64
> dd: /dev/dsp1.0: Invalid argument
> 0+0 records in
> 0+0 records out
> 0 bytes transferred in 5.000237 secs (0 bytes/sec)
> # sysctl hw.usb.uaudio.default_rate=32000

Did you reply the device after setting the sysctl. It should show a different 
rate.

> hw.usb.uaudio.default_rate: 16000 -> 32000
> # dd if=/dev/dsp1.0 of=/dev/dsp0.0 bs=64
> dd: /dev/dsp1.0: Invalid argument
> 0+0 records in
> 0+0 records out
> 0 bytes transferred in 5.002866 secs (0 bytes/sec)
> 

--HPS


More information about the freebsd-multimedia mailing list