diff options
author | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:41:48 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2018-06-04 05:42:27 -0400 |
commit | cdbc653a04ee692a7105a96e8dd6055d9971d45c (patch) | |
tree | c1282680b3115edfd693a27bc6758208534ac557 /sound/pci/asihpi | |
parent | 009f8c90f571d87855914dbc20e6c0ea2a3b19ae (diff) | |
parent | ceec4684085a9e4dc60439d84ab47ce260444804 (diff) |
Merge branch 'for-next' into for-linus
4.18-rc1 merge material.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/asihpi')
-rw-r--r-- | sound/pci/asihpi/asihpi.c | 12 | ||||
-rw-r--r-- | sound/pci/asihpi/hpioctl.c | 4 |
2 files changed, 8 insertions, 8 deletions
diff --git a/sound/pci/asihpi/asihpi.c b/sound/pci/asihpi/asihpi.c index 720361455c60..64e0961f93ba 100644 --- a/sound/pci/asihpi/asihpi.c +++ b/sound/pci/asihpi/asihpi.c | |||
@@ -69,27 +69,27 @@ static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ | |||
69 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; | 69 | static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; |
70 | static bool enable_hpi_hwdep = 1; | 70 | static bool enable_hpi_hwdep = 1; |
71 | 71 | ||
72 | module_param_array(index, int, NULL, S_IRUGO); | 72 | module_param_array(index, int, NULL, 0444); |
73 | MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard."); | 73 | MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard."); |
74 | 74 | ||
75 | module_param_array(id, charp, NULL, S_IRUGO); | 75 | module_param_array(id, charp, NULL, 0444); |
76 | MODULE_PARM_DESC(id, "ALSA ID string for AudioScience soundcard."); | 76 | MODULE_PARM_DESC(id, "ALSA ID string for AudioScience soundcard."); |
77 | 77 | ||
78 | module_param_array(enable, bool, NULL, S_IRUGO); | 78 | module_param_array(enable, bool, NULL, 0444); |
79 | MODULE_PARM_DESC(enable, "ALSA enable AudioScience soundcard."); | 79 | MODULE_PARM_DESC(enable, "ALSA enable AudioScience soundcard."); |
80 | 80 | ||
81 | module_param(enable_hpi_hwdep, bool, S_IRUGO|S_IWUSR); | 81 | module_param(enable_hpi_hwdep, bool, 0644); |
82 | MODULE_PARM_DESC(enable_hpi_hwdep, | 82 | MODULE_PARM_DESC(enable_hpi_hwdep, |
83 | "ALSA enable HPI hwdep for AudioScience soundcard "); | 83 | "ALSA enable HPI hwdep for AudioScience soundcard "); |
84 | 84 | ||
85 | /* identify driver */ | 85 | /* identify driver */ |
86 | #ifdef KERNEL_ALSA_BUILD | 86 | #ifdef KERNEL_ALSA_BUILD |
87 | static char *build_info = "Built using headers from kernel source"; | 87 | static char *build_info = "Built using headers from kernel source"; |
88 | module_param(build_info, charp, S_IRUGO); | 88 | module_param(build_info, charp, 0444); |
89 | MODULE_PARM_DESC(build_info, "Built using headers from kernel source"); | 89 | MODULE_PARM_DESC(build_info, "Built using headers from kernel source"); |
90 | #else | 90 | #else |
91 | static char *build_info = "Built within ALSA source"; | 91 | static char *build_info = "Built within ALSA source"; |
92 | module_param(build_info, charp, S_IRUGO); | 92 | module_param(build_info, charp, 0444); |
93 | MODULE_PARM_DESC(build_info, "Built within ALSA source"); | 93 | MODULE_PARM_DESC(build_info, "Built within ALSA source"); |
94 | #endif | 94 | #endif |
95 | 95 | ||
diff --git a/sound/pci/asihpi/hpioctl.c b/sound/pci/asihpi/hpioctl.c index b1a2a7ea4172..7d049569012c 100644 --- a/sound/pci/asihpi/hpioctl.c +++ b/sound/pci/asihpi/hpioctl.c | |||
@@ -46,14 +46,14 @@ MODULE_FIRMWARE("asihpi/dsp8900.bin"); | |||
46 | #endif | 46 | #endif |
47 | 47 | ||
48 | static int prealloc_stream_buf; | 48 | static int prealloc_stream_buf; |
49 | module_param(prealloc_stream_buf, int, S_IRUGO); | 49 | module_param(prealloc_stream_buf, int, 0444); |
50 | MODULE_PARM_DESC(prealloc_stream_buf, | 50 | MODULE_PARM_DESC(prealloc_stream_buf, |
51 | "Preallocate size for per-adapter stream buffer"); | 51 | "Preallocate size for per-adapter stream buffer"); |
52 | 52 | ||
53 | /* Allow the debug level to be changed after module load. | 53 | /* Allow the debug level to be changed after module load. |
54 | E.g. echo 2 > /sys/module/asihpi/parameters/hpiDebugLevel | 54 | E.g. echo 2 > /sys/module/asihpi/parameters/hpiDebugLevel |
55 | */ | 55 | */ |
56 | module_param(hpi_debug_level, int, S_IRUGO | S_IWUSR); | 56 | module_param(hpi_debug_level, int, 0644); |
57 | MODULE_PARM_DESC(hpi_debug_level, "debug verbosity 0..5"); | 57 | MODULE_PARM_DESC(hpi_debug_level, "debug verbosity 0..5"); |
58 | 58 | ||
59 | /* List of adapters found */ | 59 | /* List of adapters found */ |