Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 27 Apr 2005 14:41:15 -0400
From:      Mathew Kanner <mat@cnd.mcgill.ca>
To:        Julian Elischer <julian@elischer.org>
Cc:        mat@cnd.mcgill.ca
Subject:   Re: uaudio patch,
Message-ID:  <20050427184115.GC11709@cnd.mcgill.ca>
In-Reply-To: <426F49C3.1020009@elischer.org>
References:  <20050306171027.GE4237@cnd.mcgill.ca> <20050306184416.5603976c@Magellan.Leidinger.net> <20050307030419.GC951@kt-is.co.kr> <20050308.121415.847025091.kazuhito@ph.noda.tus.ac.jp> <426F409D.6010007@elischer.org> <426F4280.9030206@elischer.org> <426F49C3.1020009@elischer.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Apr 27, Julian Elischer wrote:
> Julian Elischer wrote:
> >Julian Elischer wrote:
> >
> >>Kazuhito HONDA wrote:
> >>
> >>>Hello,
> >>>
> >>>From: Pyun YongHyeon <yongari@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



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