forked from ~ljy/RK356X_SDK_RELEASE

hc
2023-12-11 1f93a7dfd1f8d5ff7a5c53246c7534fe2332d6f4
kernel/sound/pci/ctxfi/cthw20k1.c
....@@ -1,9 +1,6 @@
1
-/**
1
+// SPDX-License-Identifier: GPL-2.0-only
2
+/*
23 * Copyright (C) 2008, Creative Technology Ltd. All Rights Reserved.
3
- *
4
- * This source file is released under GPL v2 license (no other versions).
5
- * See the COPYING file included in the main directory of this source
6
- * distribution for the license terms and conditions.
74 *
85 * @File cthw20k1.c
96 *
....@@ -12,7 +9,6 @@
129 *
1310 * @Author Liu Chun
1411 * @Date Jun 24 2008
15
- *
1612 */
1713
1814 #include <linux/types.h>
....@@ -172,7 +168,7 @@
172168
173169 static int src_put_rsc_ctrl_blk(void *blk)
174170 {
175
- kfree((struct src_rsc_ctrl_blk *)blk);
171
+ kfree(blk);
176172
177173 return 0;
178174 }
....@@ -498,7 +494,7 @@
498494
499495 static int src_mgr_put_ctrl_blk(void *blk)
500496 {
501
- kfree((struct src_mgr_ctrl_blk *)blk);
497
+ kfree(blk);
502498
503499 return 0;
504500 }
....@@ -519,7 +515,7 @@
519515
520516 static int srcimp_mgr_put_ctrl_blk(void *blk)
521517 {
522
- kfree((struct srcimp_mgr_ctrl_blk *)blk);
518
+ kfree(blk);
523519
524520 return 0;
525521 }
....@@ -706,7 +702,7 @@
706702
707703 static int amixer_rsc_put_ctrl_blk(void *blk)
708704 {
709
- kfree((struct amixer_rsc_ctrl_blk *)blk);
705
+ kfree(blk);
710706
711707 return 0;
712708 }
....@@ -913,7 +909,7 @@
913909
914910 static int dai_put_ctrl_blk(void *blk)
915911 {
916
- kfree((struct dai_ctrl_blk *)blk);
912
+ kfree(blk);
917913
918914 return 0;
919915 }
....@@ -962,7 +958,7 @@
962958
963959 static int dao_put_ctrl_blk(void *blk)
964960 {
965
- kfree((struct dao_ctrl_blk *)blk);
961
+ kfree(blk);
966962
967963 return 0;
968964 }
....@@ -1160,7 +1156,7 @@
11601156
11611157 static int daio_mgr_put_ctrl_blk(void *blk)
11621158 {
1163
- kfree((struct daio_mgr_ctrl_blk *)blk);
1159
+ kfree(blk);
11641160
11651161 return 0;
11661162 }
....@@ -1941,6 +1937,7 @@
19411937 goto error2;
19421938 }
19431939 hw->irq = pci->irq;
1940
+ hw->card->sync_irq = hw->irq;
19441941 }
19451942
19461943 pci_set_master(pci);
....@@ -1966,9 +1963,6 @@
19661963 data = hw_read_20kx(hw, PLLCTL);
19671964 hw_write_20kx(hw, PLLCTL, (data & (~(0x0F<<12))));
19681965
1969
- /* TODO: Disable interrupt and so on... */
1970
- if (hw->irq >= 0)
1971
- synchronize_irq(hw->irq);
19721966 return 0;
19731967 }
19741968