forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-09 b22da3d8526a935aa31e086e63f60ff3246cb61c
kernel/sound/oss/dmasound/dmasound_core.c
....@@ -384,6 +384,7 @@
384384 .owner = THIS_MODULE,
385385 .llseek = no_llseek,
386386 .unlocked_ioctl = mixer_unlocked_ioctl,
387
+ .compat_ioctl = compat_ptr_ioctl,
387388 .open = mixer_open,
388389 .release = mixer_release,
389390 };
....@@ -1167,6 +1168,7 @@
11671168 .write = sq_write,
11681169 .poll = sq_poll,
11691170 .unlocked_ioctl = sq_unlocked_ioctl,
1171
+ .compat_ioctl = compat_ptr_ioctl,
11701172 .open = sq_open,
11711173 .release = sq_release,
11721174 };
....@@ -1476,13 +1478,13 @@
14761478 printk("dmasound_setup: invalid catch radius, using default = %d\n", catchRadius);
14771479 else
14781480 catchRadius = ints[3];
1479
- /* fall through */
1481
+ fallthrough;
14801482 case 2:
14811483 if (ints[1] < MIN_BUFFERS)
14821484 printk("dmasound_setup: invalid number of buffers, using default = %d\n", numWriteBufs);
14831485 else
14841486 numWriteBufs = ints[1];
1485
- /* fall through */
1487
+ fallthrough;
14861488 case 1:
14871489 if ((size = ints[2]) < 256) /* check for small buffer specs */
14881490 size <<= 10 ;