handle duplex properly in the AIOGCAP ioctl - this may (partially?) fix rat
This commit is contained in:
parent
30592a1799
commit
1a50bd2e37
@ -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