Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Mar 2005 05:22:38 +0900 (JST)
From:      Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
To:        freebsd-misuser@dyndns.dk
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: Which USB-Soundcards work?
Message-ID:  <20050312.052238.343190976.kazuhito@ph.noda.tus.ac.jp>
In-Reply-To: <20050207.144135.343184916.kazuhito@ph.noda.tus.ac.jp>
References:  <20050202.125013.343181897.kazuhito@ph.noda.tus.ac.jp> <200502040227.j142Rnw4000784@Mail.NOSPAM.DynDNS.dK> <20050207.144135.343184916.kazuhito@ph.noda.tus.ac.jp>

next in thread | previous in thread | raw e-mail | index | archive | help
From: Kazuhito HONDA <kazuhito@ph.noda.tus.ac.jp>
Subject: Re: Which USB-Soundcards work?
Date: Mon, 07 Feb 2005 14:41:35 +0900 (JST)

> Oh, I couldn't have that idea to use FreeBSD sysctl knob 
> when my coding.  It's a nice idea, 
> and mixer system for USB audios should be.

All controllers of USB audio devices come to be able to control
through FreeBSD sysctl knob.

http://sobarally.dyndns.org/~trench/uaudio/uaudio-mixer-sysctl.gz

For example, when SB Digital Music and SB Live! 24-bit External are
connected after applying the patch above, sysctl says:

hw.snd.pcm0.record@sel8-i10i11i12: 1
hw.snd.pcm0.outputs@speaker-mute: 0
hw.snd.pcm0.outputs@speaker: 7474
hw.snd.pcm0.record@mic-mute: 0
hw.snd.pcm0.record@mic: 26976600
hw.snd.pcm0.record@mic-agc: 0
hw.snd.pcm0.record@line-mute: 0
hw.snd.pcm0.record@line: 7474
hw.snd.pcm0.record@aux-mute: 0
hw.snd.pcm0.inputs@mic-mute: 0
hw.snd.pcm0.inputs@mic: 7400
hw.snd.pcm0.inputs@line-mute: 1
hw.snd.pcm0.inputs@line: 7474
hw.snd.pcm1.outputs@speaker-mute: 0
hw.snd.pcm1.outputs@speaker: 7400
hw.snd.pcm1.record@line: 7700

`*@*-mute's are mute controllers. 0 is OFF and 1 is ON.

`*@sel*-*' is a source selector.  
each `i[num]' corresponds to each input source.
`hw.snd.pcm0.record@sel8-i10i11i12' shows three input source,
and we can select them by 1,2 or 3.

Almost others are volumes. 
first two orders correspond to a left or mono's volume.
last two orders correspond to a right volume.
their values are from 0 to  99.
`hw.snd.pcm0.record@mic: 26976600' is ...... a bug, 
I'll research sometime.


`sysctl -w' changes behaviors of the USB audio device, 
but this isn't reflected by FreeBSD mixer command.

Sincerely
Kazuhito HONDA



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