hc
2023-12-11 6778948f9de86c3cfaf36725a7c87dcff9ba247f
kernel/sound/isa/sb/emu8000_pcm.c
....@@ -1,21 +1,8 @@
1
+// SPDX-License-Identifier: GPL-2.0-or-later
12 /*
23 * pcm emulation on emu8000 wavetable
34 *
45 * Copyright (C) 2002 Takashi Iwai <tiwai@suse.de>
5
- *
6
- * This program is free software; you can redistribute it and/or modify
7
- * it under the terms of the GNU General Public License as published by
8
- * the Free Software Foundation; either version 2 of the License, or
9
- * (at your option) any later version.
10
- *
11
- * This program is distributed in the hope that it will be useful,
12
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
13
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14
- * GNU General Public License for more details.
15
- *
16
- * You should have received a copy of the GNU General Public License
17
- * along with this program; if not, write to the Free Software
18
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
196 */
207
218 #include "emu8000_local.h"
....@@ -448,7 +435,7 @@
448435 #define LOOP_WRITE(rec, offset, _buf, count, mode) \
449436 do { \
450437 struct snd_emu8000 *emu = (rec)->emu; \
451
- unsigned short *buf = (unsigned short *)(_buf); \
438
+ unsigned short *buf = (__force unsigned short *)(_buf); \
452439 snd_emu8000_write_wait(emu, 1); \
453440 EMU8000_SMALW_WRITE(emu, offset); \
454441 while (count > 0) { \
....@@ -505,7 +492,7 @@
505492 #define LOOP_WRITE(rec, pos, _buf, count, mode) \
506493 do { \
507494 struct snd_emu8000 *emu = rec->emu; \
508
- unsigned short *buf = (unsigned short *)(_buf); \
495
+ unsigned short *buf = (__force unsigned short *)(_buf); \
509496 snd_emu8000_write_wait(emu, 1); \
510497 EMU8000_SMALW_WRITE(emu, pos + rec->loop_start[0]); \
511498 if (rec->voices > 1) \
....@@ -673,7 +660,6 @@
673660 static const struct snd_pcm_ops emu8k_pcm_ops = {
674661 .open = emu8k_pcm_open,
675662 .close = emu8k_pcm_close,
676
- .ioctl = snd_pcm_lib_ioctl,
677663 .hw_params = emu8k_pcm_hw_params,
678664 .hw_free = emu8k_pcm_hw_free,
679665 .prepare = emu8k_pcm_prepare,