mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-20 11:11:24 +00:00
handle duplex properly in the AIOGCAP ioctl - this may (partially?) fix rat
This commit is contained in:
parent
30592a1799
commit
1a50bd2e37
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=61361
@ -275,6 +275,8 @@ dsp_ioctl(snddev_info *d, int chan, u_long cmd, caddr_t arg)
|
||||
/* XXX bad on sb16 */
|
||||
p->formats = (rcaps? rcaps->formats : 0xffffffff) &
|
||||
(pcaps? pcaps->formats : 0xffffffff);
|
||||
if (rdch && wrch)
|
||||
p->formats |= (d->flags & SD_F_SIMPLEX)? 0 : AFMT_FULLDUPLEX;
|
||||
p->mixers = 1; /* default: one mixer */
|
||||
p->inputs = d->mixer.devs;
|
||||
p->left = p->right = 100;
|
||||
|
Loading…
Reference in New Issue
Block a user