Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 7 Feb 2002 11:25:06 -0800
From:      "Eugene M. Kim" <gene@nttmcl.com>
To:        Cameron Grant <cg@freebsd.org>
Cc:        FreeBSD Multimedia Mailing List <multimedia@freebsd.org>
Subject:   Recording on ICH
Message-ID:  <20020207112506.A3815@alicia.nttmcl.com>

next in thread | raw e-mail | index | archive | help
Hello,

I have a question about ICH recording (and partly the general newpcm
structure as well).

The ICH driver registers two recording channels, one that can record
every possible source such as line-in, microphone and CD-ROM, and the
other that can record only microphone input.  These two channels are not
equivalent or symmetric; one can't be used in placed of the other, e.g.
you have to use the former channel if you want to record from line
input.

But pcm_chnalloc() just picks one out of the two available channels
blindly, so the user would not know what channel will be used nor have
control over what channel to use.  (And confusingly, the first program
to open the recording device will have the microphone-only channel
allocated because that channel is added to the device last.)

What would be the best solution against things like this (having
multiple incompatible channels)?

One possible solution that I could think of was to create multiple pcm
devices for different classes of channels; in the ICH case, it would be
like:

	pcmN	for the playback and the generic recording channel
	pcmN+1	for the microphone recording channel (no playback)

Regards,
Eugene

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?20020207112506.A3815>