.. | .. |
---|
| 1 | +// SPDX-License-Identifier: GPL-2.0-or-later |
---|
1 | 2 | /* |
---|
2 | 3 | * pcm emulation on emu8000 wavetable |
---|
3 | 4 | * |
---|
4 | 5 | * 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 |
---|
19 | 6 | */ |
---|
20 | 7 | |
---|
21 | 8 | #include "emu8000_local.h" |
---|
.. | .. |
---|
448 | 435 | #define LOOP_WRITE(rec, offset, _buf, count, mode) \ |
---|
449 | 436 | do { \ |
---|
450 | 437 | struct snd_emu8000 *emu = (rec)->emu; \ |
---|
451 | | - unsigned short *buf = (unsigned short *)(_buf); \ |
---|
| 438 | + unsigned short *buf = (__force unsigned short *)(_buf); \ |
---|
452 | 439 | snd_emu8000_write_wait(emu, 1); \ |
---|
453 | 440 | EMU8000_SMALW_WRITE(emu, offset); \ |
---|
454 | 441 | while (count > 0) { \ |
---|
.. | .. |
---|
505 | 492 | #define LOOP_WRITE(rec, pos, _buf, count, mode) \ |
---|
506 | 493 | do { \ |
---|
507 | 494 | struct snd_emu8000 *emu = rec->emu; \ |
---|
508 | | - unsigned short *buf = (unsigned short *)(_buf); \ |
---|
| 495 | + unsigned short *buf = (__force unsigned short *)(_buf); \ |
---|
509 | 496 | snd_emu8000_write_wait(emu, 1); \ |
---|
510 | 497 | EMU8000_SMALW_WRITE(emu, pos + rec->loop_start[0]); \ |
---|
511 | 498 | if (rec->voices > 1) \ |
---|
.. | .. |
---|
673 | 660 | static const struct snd_pcm_ops emu8k_pcm_ops = { |
---|
674 | 661 | .open = emu8k_pcm_open, |
---|
675 | 662 | .close = emu8k_pcm_close, |
---|
676 | | - .ioctl = snd_pcm_lib_ioctl, |
---|
677 | 663 | .hw_params = emu8k_pcm_hw_params, |
---|
678 | 664 | .hw_free = emu8k_pcm_hw_free, |
---|
679 | 665 | .prepare = emu8k_pcm_prepare, |
---|