uaudio patch,

Mathew Kanner mat at cnd.mcgill.ca
Wed Apr 27 11:42:34 PDT 2005


On Apr 27, Julian Elischer wrote:
> Julian Elischer wrote:
> >Julian Elischer wrote:
> >
> >>Kazuhito HONDA wrote:
> >>
> >>>Hello,
> >>>
> >>>From: Pyun YongHyeon <yongari at kt-is.co.kr>
> >>>Subject: Re: uaudio patch, configurable buffer size
> >>>Date: Mon, 7 Mar 2005 12:04:19 +0900
> >>>
> >>>
> >>>>AFAIK, we already have format converter in kernel.
> >>>>See feeder_fmt.c. The converter detects differences between hardware
> >>>>capabilities and audio samples and automatically converts it(e.g.
> >>>>big endian <->little endian, mono <-> stereo, signed <-> unsigned,
> >>>>ulaw<->alow etc).
> >>>
> >>>
> >>>
> >>>
> >>>Ah, I haven't found it for a long time.  I tried to change the caps 
> >>>in uaudio_pcm.c, and a sampling rate can be converted correctly as 
> >>>you wrote.
> >>>
> >>>I'll challenge to use this converter in uaudio, too.
> >>>If I or someone will succeed in it, I'll write to PR usb/78028 that 
> >>>it should be closed except applied.
> >>
> >>
> >>
> >>while I closed this, I have sort of changed my mind..
> >>this  PR gives teh following result:
> >>
> >> At least they work and produce the following output:
> >> ---snip---
> >> pcm0: <USB Audio> at addr ? (1p/1r/0v channels duplex default)
> >>         playback: 2ch, 16/16bit, pcm, 44100Hz
> >>         playback: 2ch, 24/24bit, pcm, 44100Hz
> >>         playback: 4ch, 16/16bit, pcm, 44100Hz
> >>         playback: 4ch, 24/24bit, pcm, 44100Hz
> >>         playback: 6ch, 16/16bit, pcm, 44100Hz
> >>         playback: 6ch, 24/24bit, pcm, 44100Hz
> >>         playback: 2ch, 16/16bit, pcm, 48000Hz
> >>         playback: 2ch, 24/24bit, pcm, 48000Hz
> >>         playback: 4ch, 16/16bit, pcm, 48000Hz
> >>         playback: 4ch, 24/24bit, pcm, 48000Hz
> >>         playback: 6ch, 16/16bit, pcm, 48000Hz
> >>         playback: 6ch, 24/24bit, pcm, 48000Hz
> >>         playback: 2ch, 16/16bit, pcm, 96000Hz
> >>         playback: 2ch, 24/24bit, pcm, 96000Hz
> >>         recording: 2ch, 16/16bit, pcm, 44100Hz
> >>         recording: 2ch, 24/24bit, pcm, 44100Hz
> >>         recording: 2ch, 16/16bit, pcm, 48000Hz
> >>         recording: 2ch, 24/24bit, pcm, 48000Hz
> >>         recording: 2ch, 16/16bit, pcm, 96000Hz
> >>         recording: 2ch, 24/24bit, pcm, 96000Hz
> >>
> >>
> >>I think this information is important and not available anywhere else.
> >>
> >>I tried applying it but it didn't work on top of Matt's last patch.
> >>I'll have to try it with the unchanged version.

	This patch is no consistent with then rest of sound.  You will
notice that with my pending uaudio caps patch that I add this
information in boot_verbose which is where it belongs.
	--Mat


More information about the freebsd-multimedia mailing list