Date: Thu, 28 Sep 2006 17:29:00 +0000 (UTC) From: Ariff Abdullah <ariff@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/dev/sound/pcm ac97.c ac97_patch.c ac97_patch.h channel.c mixer.c mixer.h sound.h src/sys/dev/sound/usb uaudio_pcm.c Message-ID: <200609281729.k8SHT0gg023157@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ariff 2006-09-28 17:29:00 UTC
FreeBSD src repository
Modified files:
sys/dev/sound/pcm ac97.c ac97_patch.c ac97_patch.h
channel.c mixer.c mixer.h sound.h
sys/dev/sound/usb uaudio_pcm.c
Log:
Various fixups, especially for the upcomming High Definition Audio
commit.
1) sys/dev/sound/pcm/sound.h
sys/dev/sound/pcm/channel.c
* Be more specific: SD_F_SOFTVOL -> SD_F_SOFTPCMVOL
2) sys/dev/sound/pcm/mixer.[ch]
* Implement
mix_setparentchild()
mix_setrealdev()
mix_getparent()
mix_getchild()
The purpose of these functions is implement relative volume
adjustment, such as to tie two or more mixer device into a
single logical device. Usefull for the upcoming HDA driver
and few AC97 codec (such as AD1981B) where the master volume
"vol" need to be implemented using this logical manner.
3) sys/dev/sound/pcm/ac97_patch.[ch]
* Patch for AD1981B codec to enable (automuting) headphone jack sense.
4) sys/dev/sound/pcm/ac97.c
* Implement proper logical master volume for AD9181B codec
through various mix_set{parentchild,realdev}(). Tie both
"ogain" (headphone volume) and "phone" (speaker/lineout) to
a logical "vol".
5) sys/dev/sound/pcm/usb/uaudio_pcm.c
* ditto, for "vol" -> { "pcm" }.
MFC after: 1 month
Revision Changes Path
1.62 +50 -40 src/sys/dev/sound/pcm/ac97.c
1.5 +6 -0 src/sys/dev/sound/pcm/ac97_patch.c
1.5 +1 -0 src/sys/dev/sound/pcm/ac97_patch.h
1.111 +24 -4 src/sys/dev/sound/pcm/channel.c
1.52 +164 -29 src/sys/dev/sound/pcm/mixer.c
1.17 +4 -0 src/sys/dev/sound/pcm/mixer.h
1.72 +1 -1 src/sys/dev/sound/pcm/sound.h
1.19 +14 -6 src/sys/dev/sound/usb/uaudio_pcm.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200609281729.k8SHT0gg023157>
