forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/pci/asihpi/hpios.c
....@@ -1,20 +1,9 @@
1
+// SPDX-License-Identifier: GPL-2.0-only
12 /******************************************************************************
23
34 AudioScience HPI driver
45 Copyright (C) 1997-2012 AudioScience Inc. <support@audioscience.com>
56
6
- This program is free software; you can redistribute it and/or modify
7
- it under the terms of version 2 of the GNU General Public License as
8
- published by the Free Software Foundation;
9
-
10
- This program is distributed in the hope that it will be useful,
11
- but WITHOUT ANY WARRANTY; without even the implied warranty of
12
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13
- GNU General Public License for more details.
14
-
15
- You should have received a copy of the GNU General Public License
16
- along with this program; if not, write to the Free Software
17
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
187
198 HPI Operating System function implementation for Linux
209
....@@ -49,7 +38,7 @@
4938 /*?? any benefit in using managed dmam_alloc_coherent? */
5039 p_mem_area->vaddr =
5140 dma_alloc_coherent(&pdev->dev, size, &p_mem_area->dma_handle,
52
- GFP_DMA32 | GFP_KERNEL);
41
+ GFP_KERNEL);
5342
5443 if (p_mem_area->vaddr) {
5544 HPI_DEBUG_LOG(DEBUG, "allocated %d bytes, dma 0x%x vma %p\n",