mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
Emulate pcm mixer controller for any uaudio device without it.
Submitted by: Ariff Abdullah <skywizard@MyBSD.org.my>
This commit is contained in:
parent
d793e09c95
commit
f84e94870d
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=150830
@ -249,11 +249,20 @@ ua_mixer_init(struct snd_mixer *m)
|
||||
{
|
||||
u_int32_t mask;
|
||||
device_t pa_dev;
|
||||
struct snddev_info *d;
|
||||
struct ua_info *ua = mix_getdevinfo(m);
|
||||
|
||||
pa_dev = device_get_parent(ua->sc_dev);
|
||||
d = device_get_softc(ua->sc_dev);
|
||||
|
||||
mask = uaudio_query_mix_info(pa_dev);
|
||||
if (d && !(mask & SOUND_MIXER_PCM)) {
|
||||
/*
|
||||
* Emulate missing pcm mixer controller
|
||||
* through FEEDER_VOLUME
|
||||
*/
|
||||
d->flags |= SD_F_SOFTVOL;
|
||||
}
|
||||
mix_setdevs(m, mask);
|
||||
|
||||
mask = uaudio_query_recsrc_info(pa_dev);
|
||||
|
Loading…
Reference in New Issue
Block a user