Gary Wong <gtw@xxxxxxxxx> wrote:
I believe that one of two fixes should be applied: either the
SNDCTL_DSP_SETTRIGGER ioctl handling should not enable the
PCM_ENABLE_{IN,OUT}PUT bits unless file->f_mode is compatible,
or i810_release() should ignore the PCM_ENABLE_* bits without
the corresponding FMODE_*.
The first option sounds more appropriate but I wonder if it could break
existing applications? Probably not, if it oopses.
Let's try option #1, please.