aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sound/core/compress_offload.c2
-rw-r--r--sound/core/info.c6
-rw-r--r--sound/core/init.c4
-rw-r--r--sound/core/oss/mixer_oss.c2
-rw-r--r--sound/core/oss/pcm_oss.c2
-rw-r--r--sound/core/pcm.c10
-rw-r--r--sound/core/pcm_memory.c2
-rw-r--r--sound/drivers/dummy.c2
-rw-r--r--sound/drivers/mts64.c6
-rw-r--r--sound/drivers/opl4/opl4_proc.c2
-rw-r--r--sound/drivers/portman2x4.c6
-rw-r--r--sound/firewire/bebob/bebob_proc.c2
-rw-r--r--sound/firewire/dice/dice-proc.c2
-rw-r--r--sound/firewire/digi00x/digi00x-proc.c2
-rw-r--r--sound/firewire/fireface/ff-proc.c2
-rw-r--r--sound/firewire/fireworks/fireworks_proc.c2
-rw-r--r--sound/firewire/motu/motu-proc.c2
-rw-r--r--sound/firewire/oxfw/oxfw-proc.c2
-rw-r--r--sound/firewire/tascam/tascam-proc.c2
-rw-r--r--sound/isa/msnd/msnd_pinnacle.c32
-rw-r--r--sound/pci/ac97/ac97_proc.c4
-rw-r--r--sound/pci/asihpi/asihpi.c12
-rw-r--r--sound/pci/asihpi/hpioctl.c4
-rw-r--r--sound/pci/ca0106/ca0106_proc.c6
-rw-r--r--sound/pci/cs46xx/cs46xx_lib.c2
-rw-r--r--sound/pci/cs46xx/dsp_spos.c14
-rw-r--r--sound/pci/cs46xx/dsp_spos_scb_lib.c2
-rw-r--r--sound/pci/ctxfi/cttimer.c2
-rw-r--r--sound/pci/ctxfi/xfi.c4
-rw-r--r--sound/pci/emu10k1/emu10k1x.c2
-rw-r--r--sound/pci/emu10k1/emuproc.c22
-rw-r--r--sound/pci/hda/patch_hdmi.c2
-rw-r--r--sound/pci/ice1712/pontis.c2
-rw-r--r--sound/pci/ice1712/prodigy_hifi.c2
-rw-r--r--sound/pci/lola/lola_proc.c2
-rw-r--r--sound/pci/pcxhr/pcxhr.c2
-rw-r--r--sound/soc/codecs/cs43130.c8
-rw-r--r--sound/soc/codecs/wm_adsp.c11
-rw-r--r--sound/soc/fsl/fsl_ssi_dbg.c2
-rw-r--r--sound/sound_core.c6
-rw-r--r--sound/sparc/dbri.c2
41 files changed, 102 insertions, 103 deletions
diff --git a/sound/core/compress_offload.c b/sound/core/compress_offload.c
index 4563432badba..4b01a37c836e 100644
--- a/sound/core/compress_offload.c
+++ b/sound/core/compress_offload.c
@@ -1001,7 +1001,7 @@ static int snd_compress_proc_init(struct snd_compr *compr)
1001 compr->card->proc_root); 1001 compr->card->proc_root);
1002 if (!entry) 1002 if (!entry)
1003 return -ENOMEM; 1003 return -ENOMEM;
1004 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 1004 entry->mode = S_IFDIR | 0555;
1005 if (snd_info_register(entry) < 0) { 1005 if (snd_info_register(entry) < 0) {
1006 snd_info_free_entry(entry); 1006 snd_info_free_entry(entry);
1007 return -ENOMEM; 1007 return -ENOMEM;
diff --git a/sound/core/info.c b/sound/core/info.c
index 4b36767af9e1..fe502bc5e6d2 100644
--- a/sound/core/info.c
+++ b/sound/core/info.c
@@ -454,7 +454,7 @@ static struct snd_info_entry *create_subdir(struct module *mod,
454 entry = snd_info_create_module_entry(mod, name, NULL); 454 entry = snd_info_create_module_entry(mod, name, NULL);
455 if (!entry) 455 if (!entry)
456 return NULL; 456 return NULL;
457 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 457 entry->mode = S_IFDIR | 0555;
458 if (snd_info_register(entry) < 0) { 458 if (snd_info_register(entry) < 0) {
459 snd_info_free_entry(entry); 459 snd_info_free_entry(entry);
460 return NULL; 460 return NULL;
@@ -470,7 +470,7 @@ int __init snd_info_init(void)
470 snd_proc_root = snd_info_create_entry("asound", NULL); 470 snd_proc_root = snd_info_create_entry("asound", NULL);
471 if (!snd_proc_root) 471 if (!snd_proc_root)
472 return -ENOMEM; 472 return -ENOMEM;
473 snd_proc_root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 473 snd_proc_root->mode = S_IFDIR | 0555;
474 snd_proc_root->p = proc_mkdir("asound", NULL); 474 snd_proc_root->p = proc_mkdir("asound", NULL);
475 if (!snd_proc_root->p) 475 if (!snd_proc_root->p)
476 goto error; 476 goto error;
@@ -716,7 +716,7 @@ snd_info_create_entry(const char *name, struct snd_info_entry *parent)
716 kfree(entry); 716 kfree(entry);
717 return NULL; 717 return NULL;
718 } 718 }
719 entry->mode = S_IFREG | S_IRUGO; 719 entry->mode = S_IFREG | 0444;
720 entry->content = SNDRV_INFO_CONTENT_TEXT; 720 entry->content = SNDRV_INFO_CONTENT_TEXT;
721 mutex_init(&entry->access); 721 mutex_init(&entry->access);
722 INIT_LIST_HEAD(&entry->children); 722 INIT_LIST_HEAD(&entry->children);
diff --git a/sound/core/init.c b/sound/core/init.c
index 79b4df1c1dc7..4849c611c0fe 100644
--- a/sound/core/init.c
+++ b/sound/core/init.c
@@ -703,7 +703,7 @@ card_id_store_attr(struct device *dev, struct device_attribute *attr,
703 return count; 703 return count;
704} 704}
705 705
706static DEVICE_ATTR(id, S_IRUGO | S_IWUSR, card_id_show_attr, card_id_store_attr); 706static DEVICE_ATTR(id, 0644, card_id_show_attr, card_id_store_attr);
707 707
708static ssize_t 708static ssize_t
709card_number_show_attr(struct device *dev, 709card_number_show_attr(struct device *dev,
@@ -713,7 +713,7 @@ card_number_show_attr(struct device *dev,
713 return scnprintf(buf, PAGE_SIZE, "%i\n", card->number); 713 return scnprintf(buf, PAGE_SIZE, "%i\n", card->number);
714} 714}
715 715
716static DEVICE_ATTR(number, S_IRUGO, card_number_show_attr, NULL); 716static DEVICE_ATTR(number, 0444, card_number_show_attr, NULL);
717 717
718static struct attribute *card_dev_attrs[] = { 718static struct attribute *card_dev_attrs[] = {
719 &dev_attr_id.attr, 719 &dev_attr_id.attr,
diff --git a/sound/core/oss/mixer_oss.c b/sound/core/oss/mixer_oss.c
index 379bf486ccc7..64d904bee8bb 100644
--- a/sound/core/oss/mixer_oss.c
+++ b/sound/core/oss/mixer_oss.c
@@ -1247,7 +1247,7 @@ static void snd_mixer_oss_proc_init(struct snd_mixer_oss *mixer)
1247 if (! entry) 1247 if (! entry)
1248 return; 1248 return;
1249 entry->content = SNDRV_INFO_CONTENT_TEXT; 1249 entry->content = SNDRV_INFO_CONTENT_TEXT;
1250 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 1250 entry->mode = S_IFREG | 0644;
1251 entry->c.text.read = snd_mixer_oss_proc_read; 1251 entry->c.text.read = snd_mixer_oss_proc_read;
1252 entry->c.text.write = snd_mixer_oss_proc_write; 1252 entry->c.text.write = snd_mixer_oss_proc_write;
1253 entry->private_data = mixer; 1253 entry->private_data = mixer;
diff --git a/sound/core/oss/pcm_oss.c b/sound/core/oss/pcm_oss.c
index 1980f68246cb..905a53c1cde5 100644
--- a/sound/core/oss/pcm_oss.c
+++ b/sound/core/oss/pcm_oss.c
@@ -3045,7 +3045,7 @@ static void snd_pcm_oss_proc_init(struct snd_pcm *pcm)
3045 continue; 3045 continue;
3046 if ((entry = snd_info_create_card_entry(pcm->card, "oss", pstr->proc_root)) != NULL) { 3046 if ((entry = snd_info_create_card_entry(pcm->card, "oss", pstr->proc_root)) != NULL) {
3047 entry->content = SNDRV_INFO_CONTENT_TEXT; 3047 entry->content = SNDRV_INFO_CONTENT_TEXT;
3048 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 3048 entry->mode = S_IFREG | 0644;
3049 entry->c.text.read = snd_pcm_oss_proc_read; 3049 entry->c.text.read = snd_pcm_oss_proc_read;
3050 entry->c.text.write = snd_pcm_oss_proc_write; 3050 entry->c.text.write = snd_pcm_oss_proc_write;
3051 entry->private_data = pstr; 3051 entry->private_data = pstr;
diff --git a/sound/core/pcm.c b/sound/core/pcm.c
index 66ac89aad681..c352bfb973cc 100644
--- a/sound/core/pcm.c
+++ b/sound/core/pcm.c
@@ -530,7 +530,7 @@ static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
530 pcm->card->proc_root); 530 pcm->card->proc_root);
531 if (!entry) 531 if (!entry)
532 return -ENOMEM; 532 return -ENOMEM;
533 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 533 entry->mode = S_IFDIR | 0555;
534 if (snd_info_register(entry) < 0) { 534 if (snd_info_register(entry) < 0) {
535 snd_info_free_entry(entry); 535 snd_info_free_entry(entry);
536 return -ENOMEM; 536 return -ENOMEM;
@@ -552,7 +552,7 @@ static int snd_pcm_stream_proc_init(struct snd_pcm_str *pstr)
552 if (entry) { 552 if (entry) {
553 entry->c.text.read = snd_pcm_xrun_debug_read; 553 entry->c.text.read = snd_pcm_xrun_debug_read;
554 entry->c.text.write = snd_pcm_xrun_debug_write; 554 entry->c.text.write = snd_pcm_xrun_debug_write;
555 entry->mode |= S_IWUSR; 555 entry->mode |= 0200;
556 entry->private_data = pstr; 556 entry->private_data = pstr;
557 if (snd_info_register(entry) < 0) { 557 if (snd_info_register(entry) < 0) {
558 snd_info_free_entry(entry); 558 snd_info_free_entry(entry);
@@ -590,7 +590,7 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
590 substream->pstr->proc_root); 590 substream->pstr->proc_root);
591 if (!entry) 591 if (!entry)
592 return -ENOMEM; 592 return -ENOMEM;
593 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 593 entry->mode = S_IFDIR | 0555;
594 if (snd_info_register(entry) < 0) { 594 if (snd_info_register(entry) < 0) {
595 snd_info_free_entry(entry); 595 snd_info_free_entry(entry);
596 return -ENOMEM; 596 return -ENOMEM;
@@ -647,7 +647,7 @@ static int snd_pcm_substream_proc_init(struct snd_pcm_substream *substream)
647 entry->private_data = substream; 647 entry->private_data = substream;
648 entry->c.text.read = NULL; 648 entry->c.text.read = NULL;
649 entry->c.text.write = snd_pcm_xrun_injection_write; 649 entry->c.text.write = snd_pcm_xrun_injection_write;
650 entry->mode = S_IFREG | S_IWUSR; 650 entry->mode = S_IFREG | 0200;
651 if (snd_info_register(entry) < 0) { 651 if (snd_info_register(entry) < 0) {
652 snd_info_free_entry(entry); 652 snd_info_free_entry(entry);
653 entry = NULL; 653 entry = NULL;
@@ -1087,7 +1087,7 @@ static ssize_t show_pcm_class(struct device *dev,
1087 return snprintf(buf, PAGE_SIZE, "%s\n", str); 1087 return snprintf(buf, PAGE_SIZE, "%s\n", str);
1088} 1088}
1089 1089
1090static DEVICE_ATTR(pcm_class, S_IRUGO, show_pcm_class, NULL); 1090static DEVICE_ATTR(pcm_class, 0444, show_pcm_class, NULL);
1091static struct attribute *pcm_dev_attrs[] = { 1091static struct attribute *pcm_dev_attrs[] = {
1092 &dev_attr_pcm_class.attr, 1092 &dev_attr_pcm_class.attr,
1093 NULL 1093 NULL
diff --git a/sound/core/pcm_memory.c b/sound/core/pcm_memory.c
index ae33e456708c..4b5356a10315 100644
--- a/sound/core/pcm_memory.c
+++ b/sound/core/pcm_memory.c
@@ -201,7 +201,7 @@ static inline void preallocate_info_init(struct snd_pcm_substream *substream)
201 if ((entry = snd_info_create_card_entry(substream->pcm->card, "prealloc", substream->proc_root)) != NULL) { 201 if ((entry = snd_info_create_card_entry(substream->pcm->card, "prealloc", substream->proc_root)) != NULL) {
202 entry->c.text.read = snd_pcm_lib_preallocate_proc_read; 202 entry->c.text.read = snd_pcm_lib_preallocate_proc_read;
203 entry->c.text.write = snd_pcm_lib_preallocate_proc_write; 203 entry->c.text.write = snd_pcm_lib_preallocate_proc_write;
204 entry->mode |= S_IWUSR; 204 entry->mode |= 0200;
205 entry->private_data = substream; 205 entry->private_data = substream;
206 if (snd_info_register(entry) < 0) { 206 if (snd_info_register(entry) < 0) {
207 snd_info_free_entry(entry); 207 snd_info_free_entry(entry);
diff --git a/sound/drivers/dummy.c b/sound/drivers/dummy.c
index 8fb9a54fe8ba..9af154db530a 100644
--- a/sound/drivers/dummy.c
+++ b/sound/drivers/dummy.c
@@ -1042,7 +1042,7 @@ static void dummy_proc_init(struct snd_dummy *chip)
1042 if (!snd_card_proc_new(chip->card, "dummy_pcm", &entry)) { 1042 if (!snd_card_proc_new(chip->card, "dummy_pcm", &entry)) {
1043 snd_info_set_text_ops(entry, chip, dummy_proc_read); 1043 snd_info_set_text_ops(entry, chip, dummy_proc_read);
1044 entry->c.text.write = dummy_proc_write; 1044 entry->c.text.write = dummy_proc_write;
1045 entry->mode |= S_IWUSR; 1045 entry->mode |= 0200;
1046 entry->private_data = chip; 1046 entry->private_data = chip;
1047 } 1047 }
1048} 1048}
diff --git a/sound/drivers/mts64.c b/sound/drivers/mts64.c
index f32e81342247..b68e71ca7abd 100644
--- a/sound/drivers/mts64.c
+++ b/sound/drivers/mts64.c
@@ -41,11 +41,11 @@ static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
41static struct platform_device *platform_devices[SNDRV_CARDS]; 41static struct platform_device *platform_devices[SNDRV_CARDS];
42static int device_count; 42static int device_count;
43 43
44module_param_array(index, int, NULL, S_IRUGO); 44module_param_array(index, int, NULL, 0444);
45MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); 45MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard.");
46module_param_array(id, charp, NULL, S_IRUGO); 46module_param_array(id, charp, NULL, 0444);
47MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard."); 47MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard.");
48module_param_array(enable, bool, NULL, S_IRUGO); 48module_param_array(enable, bool, NULL, 0444);
49MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard."); 49MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard.");
50 50
51MODULE_AUTHOR("Matthias Koenig <mk@phasorlab.de>"); 51MODULE_AUTHOR("Matthias Koenig <mk@phasorlab.de>");
diff --git a/sound/drivers/opl4/opl4_proc.c b/sound/drivers/opl4/opl4_proc.c
index cd2c07fa2ef4..16b24091d799 100644
--- a/sound/drivers/opl4/opl4_proc.c
+++ b/sound/drivers/opl4/opl4_proc.c
@@ -104,7 +104,7 @@ int snd_opl4_create_proc(struct snd_opl4 *opl4)
104 if (entry) { 104 if (entry) {
105 if (opl4->hardware < OPL3_HW_OPL4_ML) { 105 if (opl4->hardware < OPL3_HW_OPL4_ML) {
106 /* OPL4 can access 4 MB external ROM/SRAM */ 106 /* OPL4 can access 4 MB external ROM/SRAM */
107 entry->mode |= S_IWUSR; 107 entry->mode |= 0200;
108 entry->size = 4 * 1024 * 1024; 108 entry->size = 4 * 1024 * 1024;
109 } else { 109 } else {
110 /* OPL4-ML has 1 MB internal ROM */ 110 /* OPL4-ML has 1 MB internal ROM */
diff --git a/sound/drivers/portman2x4.c b/sound/drivers/portman2x4.c
index ec8a94325ef6..3cdf0a88d71b 100644
--- a/sound/drivers/portman2x4.c
+++ b/sound/drivers/portman2x4.c
@@ -60,11 +60,11 @@ static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
60static struct platform_device *platform_devices[SNDRV_CARDS]; 60static struct platform_device *platform_devices[SNDRV_CARDS];
61static int device_count; 61static int device_count;
62 62
63module_param_array(index, int, NULL, S_IRUGO); 63module_param_array(index, int, NULL, 0444);
64MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard."); 64MODULE_PARM_DESC(index, "Index value for " CARD_NAME " soundcard.");
65module_param_array(id, charp, NULL, S_IRUGO); 65module_param_array(id, charp, NULL, 0444);
66MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard."); 66MODULE_PARM_DESC(id, "ID string for " CARD_NAME " soundcard.");
67module_param_array(enable, bool, NULL, S_IRUGO); 67module_param_array(enable, bool, NULL, 0444);
68MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard."); 68MODULE_PARM_DESC(enable, "Enable " CARD_NAME " soundcard.");
69 69
70MODULE_AUTHOR("Levent Guendogdu, Tobias Gehrig, Matthias Koenig"); 70MODULE_AUTHOR("Levent Guendogdu, Tobias Gehrig, Matthias Koenig");
diff --git a/sound/firewire/bebob/bebob_proc.c b/sound/firewire/bebob/bebob_proc.c
index ec24f96794f5..8096891af913 100644
--- a/sound/firewire/bebob/bebob_proc.c
+++ b/sound/firewire/bebob/bebob_proc.c
@@ -183,7 +183,7 @@ void snd_bebob_proc_init(struct snd_bebob *bebob)
183 bebob->card->proc_root); 183 bebob->card->proc_root);
184 if (root == NULL) 184 if (root == NULL)
185 return; 185 return;
186 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 186 root->mode = S_IFDIR | 0555;
187 if (snd_info_register(root) < 0) { 187 if (snd_info_register(root) < 0) {
188 snd_info_free_entry(root); 188 snd_info_free_entry(root);
189 return; 189 return;
diff --git a/sound/firewire/dice/dice-proc.c b/sound/firewire/dice/dice-proc.c
index faf8c854d256..bb870fc73f99 100644
--- a/sound/firewire/dice/dice-proc.c
+++ b/sound/firewire/dice/dice-proc.c
@@ -305,7 +305,7 @@ void snd_dice_create_proc(struct snd_dice *dice)
305 dice->card->proc_root); 305 dice->card->proc_root);
306 if (!root) 306 if (!root)
307 return; 307 return;
308 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 308 root->mode = S_IFDIR | 0555;
309 if (snd_info_register(root) < 0) { 309 if (snd_info_register(root) < 0) {
310 snd_info_free_entry(root); 310 snd_info_free_entry(root);
311 return; 311 return;
diff --git a/sound/firewire/digi00x/digi00x-proc.c b/sound/firewire/digi00x/digi00x-proc.c
index a1d601f31165..6996d5a6ff5f 100644
--- a/sound/firewire/digi00x/digi00x-proc.c
+++ b/sound/firewire/digi00x/digi00x-proc.c
@@ -79,7 +79,7 @@ void snd_dg00x_proc_init(struct snd_dg00x *dg00x)
79 if (root == NULL) 79 if (root == NULL)
80 return; 80 return;
81 81
82 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 82 root->mode = S_IFDIR | 0555;
83 if (snd_info_register(root) < 0) { 83 if (snd_info_register(root) < 0) {
84 snd_info_free_entry(root); 84 snd_info_free_entry(root);
85 return; 85 return;
diff --git a/sound/firewire/fireface/ff-proc.c b/sound/firewire/fireface/ff-proc.c
index 69441d121f71..40ccbfd8ef89 100644
--- a/sound/firewire/fireface/ff-proc.c
+++ b/sound/firewire/fireface/ff-proc.c
@@ -52,7 +52,7 @@ void snd_ff_proc_init(struct snd_ff *ff)
52 ff->card->proc_root); 52 ff->card->proc_root);
53 if (root == NULL) 53 if (root == NULL)
54 return; 54 return;
55 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 55 root->mode = S_IFDIR | 0555;
56 if (snd_info_register(root) < 0) { 56 if (snd_info_register(root) < 0) {
57 snd_info_free_entry(root); 57 snd_info_free_entry(root);
58 return; 58 return;
diff --git a/sound/firewire/fireworks/fireworks_proc.c b/sound/firewire/fireworks/fireworks_proc.c
index 9c21f31b8b21..779ecec5af62 100644
--- a/sound/firewire/fireworks/fireworks_proc.c
+++ b/sound/firewire/fireworks/fireworks_proc.c
@@ -219,7 +219,7 @@ void snd_efw_proc_init(struct snd_efw *efw)
219 efw->card->proc_root); 219 efw->card->proc_root);
220 if (root == NULL) 220 if (root == NULL)
221 return; 221 return;
222 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 222 root->mode = S_IFDIR | 0555;
223 if (snd_info_register(root) < 0) { 223 if (snd_info_register(root) < 0) {
224 snd_info_free_entry(root); 224 snd_info_free_entry(root);
225 return; 225 return;
diff --git a/sound/firewire/motu/motu-proc.c b/sound/firewire/motu/motu-proc.c
index 4edc064999ed..ab6830a6d242 100644
--- a/sound/firewire/motu/motu-proc.c
+++ b/sound/firewire/motu/motu-proc.c
@@ -107,7 +107,7 @@ void snd_motu_proc_init(struct snd_motu *motu)
107 motu->card->proc_root); 107 motu->card->proc_root);
108 if (root == NULL) 108 if (root == NULL)
109 return; 109 return;
110 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 110 root->mode = S_IFDIR | 0555;
111 if (snd_info_register(root) < 0) { 111 if (snd_info_register(root) < 0) {
112 snd_info_free_entry(root); 112 snd_info_free_entry(root);
113 return; 113 return;
diff --git a/sound/firewire/oxfw/oxfw-proc.c b/sound/firewire/oxfw/oxfw-proc.c
index 8ba4f9f262b8..27dac071bc73 100644
--- a/sound/firewire/oxfw/oxfw-proc.c
+++ b/sound/firewire/oxfw/oxfw-proc.c
@@ -103,7 +103,7 @@ void snd_oxfw_proc_init(struct snd_oxfw *oxfw)
103 oxfw->card->proc_root); 103 oxfw->card->proc_root);
104 if (root == NULL) 104 if (root == NULL)
105 return; 105 return;
106 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 106 root->mode = S_IFDIR | 0555;
107 if (snd_info_register(root) < 0) { 107 if (snd_info_register(root) < 0) {
108 snd_info_free_entry(root); 108 snd_info_free_entry(root);
109 return; 109 return;
diff --git a/sound/firewire/tascam/tascam-proc.c b/sound/firewire/tascam/tascam-proc.c
index bfd4a4c06914..fee3bf32a0da 100644
--- a/sound/firewire/tascam/tascam-proc.c
+++ b/sound/firewire/tascam/tascam-proc.c
@@ -78,7 +78,7 @@ void snd_tscm_proc_init(struct snd_tscm *tscm)
78 tscm->card->proc_root); 78 tscm->card->proc_root);
79 if (root == NULL) 79 if (root == NULL)
80 return; 80 return;
81 root->mode = S_IFDIR | S_IRUGO | S_IXUGO; 81 root->mode = S_IFDIR | 0555;
82 if (snd_info_register(root) < 0) { 82 if (snd_info_register(root) < 0) {
83 snd_info_free_entry(root); 83 snd_info_free_entry(root);
84 return; 84 return;
diff --git a/sound/isa/msnd/msnd_pinnacle.c b/sound/isa/msnd/msnd_pinnacle.c
index 45e561c425bf..6c584d9b6c42 100644
--- a/sound/isa/msnd/msnd_pinnacle.c
+++ b/sound/isa/msnd/msnd_pinnacle.c
@@ -757,9 +757,9 @@ static int snd_msnd_pinnacle_cfg_reset(int cfg)
757static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */ 757static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; /* Index 0-MAX */
758static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */ 758static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; /* ID for this card */
759 759
760module_param_array(index, int, NULL, S_IRUGO); 760module_param_array(index, int, NULL, 0444);
761MODULE_PARM_DESC(index, "Index value for msnd_pinnacle soundcard."); 761MODULE_PARM_DESC(index, "Index value for msnd_pinnacle soundcard.");
762module_param_array(id, charp, NULL, S_IRUGO); 762module_param_array(id, charp, NULL, 0444);
763MODULE_PARM_DESC(id, "ID string for msnd_pinnacle soundcard."); 763MODULE_PARM_DESC(id, "ID string for msnd_pinnacle soundcard.");
764 764
765static long io[SNDRV_CARDS] = SNDRV_DEFAULT_PORT; 765static long io[SNDRV_CARDS] = SNDRV_DEFAULT_PORT;
@@ -801,22 +801,22 @@ MODULE_LICENSE("GPL");
801MODULE_FIRMWARE(INITCODEFILE); 801MODULE_FIRMWARE(INITCODEFILE);
802MODULE_FIRMWARE(PERMCODEFILE); 802MODULE_FIRMWARE(PERMCODEFILE);
803 803
804module_param_hw_array(io, long, ioport, NULL, S_IRUGO); 804module_param_hw_array(io, long, ioport, NULL, 0444);
805MODULE_PARM_DESC(io, "IO port #"); 805MODULE_PARM_DESC(io, "IO port #");
806module_param_hw_array(irq, int, irq, NULL, S_IRUGO); 806module_param_hw_array(irq, int, irq, NULL, 0444);
807module_param_hw_array(mem, long, iomem, NULL, S_IRUGO); 807module_param_hw_array(mem, long, iomem, NULL, 0444);
808module_param_array(write_ndelay, int, NULL, S_IRUGO); 808module_param_array(write_ndelay, int, NULL, 0444);
809module_param(calibrate_signal, int, S_IRUGO); 809module_param(calibrate_signal, int, 0444);
810#ifndef MSND_CLASSIC 810#ifndef MSND_CLASSIC
811module_param_array(digital, int, NULL, S_IRUGO); 811module_param_array(digital, int, NULL, 0444);
812module_param_hw_array(cfg, long, ioport, NULL, S_IRUGO); 812module_param_hw_array(cfg, long, ioport, NULL, 0444);
813module_param_array(reset, int, 0, S_IRUGO); 813module_param_array(reset, int, 0, 0444);
814module_param_hw_array(mpu_io, long, ioport, NULL, S_IRUGO); 814module_param_hw_array(mpu_io, long, ioport, NULL, 0444);
815module_param_hw_array(mpu_irq, int, irq, NULL, S_IRUGO); 815module_param_hw_array(mpu_irq, int, irq, NULL, 0444);
816module_param_hw_array(ide_io0, long, ioport, NULL, S_IRUGO); 816module_param_hw_array(ide_io0, long, ioport, NULL, 0444);
817module_param_hw_array(ide_io1, long, ioport, NULL, S_IRUGO); 817module_param_hw_array(ide_io1, long, ioport, NULL, 0444);
818module_param_hw_array(ide_irq, int, irq, NULL, S_IRUGO); 818module_param_hw_array(ide_irq, int, irq, NULL, 0444);
819module_param_hw_array(joystick_io, long, ioport, NULL, S_IRUGO); 819module_param_hw_array(joystick_io, long, ioport, NULL, 0444);
820#endif 820#endif
821 821
822 822
diff --git a/sound/pci/ac97/ac97_proc.c b/sound/pci/ac97/ac97_proc.c
index 6320bf084e47..e120a11c69e8 100644
--- a/sound/pci/ac97/ac97_proc.c
+++ b/sound/pci/ac97/ac97_proc.c
@@ -448,7 +448,7 @@ void snd_ac97_proc_init(struct snd_ac97 * ac97)
448 if ((entry = snd_info_create_card_entry(ac97->bus->card, name, ac97->bus->proc)) != NULL) { 448 if ((entry = snd_info_create_card_entry(ac97->bus->card, name, ac97->bus->proc)) != NULL) {
449 snd_info_set_text_ops(entry, ac97, snd_ac97_proc_regs_read); 449 snd_info_set_text_ops(entry, ac97, snd_ac97_proc_regs_read);
450#ifdef CONFIG_SND_DEBUG 450#ifdef CONFIG_SND_DEBUG
451 entry->mode |= S_IWUSR; 451 entry->mode |= 0200;
452 entry->c.text.write = snd_ac97_proc_regs_write; 452 entry->c.text.write = snd_ac97_proc_regs_write;
453#endif 453#endif
454 if (snd_info_register(entry) < 0) { 454 if (snd_info_register(entry) < 0) {
@@ -474,7 +474,7 @@ void snd_ac97_bus_proc_init(struct snd_ac97_bus * bus)
474 474
475 sprintf(name, "codec97#%d", bus->num); 475 sprintf(name, "codec97#%d", bus->num);
476 if ((entry = snd_info_create_card_entry(bus->card, name, bus->card->proc_root)) != NULL) { 476 if ((entry = snd_info_create_card_entry(bus->card, name, bus->card->proc_root)) != NULL) {
477 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 477 entry->mode = S_IFDIR | 0555;
478 if (snd_info_register(entry) < 0) { 478 if (snd_info_register(entry) < 0) {
479 snd_info_free_entry(entry); 479 snd_info_free_entry(entry);
480 entry = NULL; 480 entry = NULL;
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 */
69static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP; 69static bool enable[SNDRV_CARDS] = SNDRV_DEFAULT_ENABLE_PNP;
70static bool enable_hpi_hwdep = 1; 70static bool enable_hpi_hwdep = 1;
71 71
72module_param_array(index, int, NULL, S_IRUGO); 72module_param_array(index, int, NULL, 0444);
73MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard."); 73MODULE_PARM_DESC(index, "ALSA index value for AudioScience soundcard.");
74 74
75module_param_array(id, charp, NULL, S_IRUGO); 75module_param_array(id, charp, NULL, 0444);
76MODULE_PARM_DESC(id, "ALSA ID string for AudioScience soundcard."); 76MODULE_PARM_DESC(id, "ALSA ID string for AudioScience soundcard.");
77 77
78module_param_array(enable, bool, NULL, S_IRUGO); 78module_param_array(enable, bool, NULL, 0444);
79MODULE_PARM_DESC(enable, "ALSA enable AudioScience soundcard."); 79MODULE_PARM_DESC(enable, "ALSA enable AudioScience soundcard.");
80 80
81module_param(enable_hpi_hwdep, bool, S_IRUGO|S_IWUSR); 81module_param(enable_hpi_hwdep, bool, 0644);
82MODULE_PARM_DESC(enable_hpi_hwdep, 82MODULE_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
87static char *build_info = "Built using headers from kernel source"; 87static char *build_info = "Built using headers from kernel source";
88module_param(build_info, charp, S_IRUGO); 88module_param(build_info, charp, 0444);
89MODULE_PARM_DESC(build_info, "Built using headers from kernel source"); 89MODULE_PARM_DESC(build_info, "Built using headers from kernel source");
90#else 90#else
91static char *build_info = "Built within ALSA source"; 91static char *build_info = "Built within ALSA source";
92module_param(build_info, charp, S_IRUGO); 92module_param(build_info, charp, 0444);
93MODULE_PARM_DESC(build_info, "Built within ALSA source"); 93MODULE_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
48static int prealloc_stream_buf; 48static int prealloc_stream_buf;
49module_param(prealloc_stream_buf, int, S_IRUGO); 49module_param(prealloc_stream_buf, int, 0444);
50MODULE_PARM_DESC(prealloc_stream_buf, 50MODULE_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*/
56module_param(hpi_debug_level, int, S_IRUGO | S_IWUSR); 56module_param(hpi_debug_level, int, 0644);
57MODULE_PARM_DESC(hpi_debug_level, "debug verbosity 0..5"); 57MODULE_PARM_DESC(hpi_debug_level, "debug verbosity 0..5");
58 58
59/* List of adapters found */ 59/* List of adapters found */
diff --git a/sound/pci/ca0106/ca0106_proc.c b/sound/pci/ca0106/ca0106_proc.c
index 9b2b8b38122f..a2c85cc37972 100644
--- a/sound/pci/ca0106/ca0106_proc.c
+++ b/sound/pci/ca0106/ca0106_proc.c
@@ -431,7 +431,7 @@ int snd_ca0106_proc_init(struct snd_ca0106 *emu)
431 if(! snd_card_proc_new(emu->card, "ca0106_reg32", &entry)) { 431 if(! snd_card_proc_new(emu->card, "ca0106_reg32", &entry)) {
432 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read32); 432 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read32);
433 entry->c.text.write = snd_ca0106_proc_reg_write32; 433 entry->c.text.write = snd_ca0106_proc_reg_write32;
434 entry->mode |= S_IWUSR; 434 entry->mode |= 0200;
435 } 435 }
436 if(! snd_card_proc_new(emu->card, "ca0106_reg16", &entry)) 436 if(! snd_card_proc_new(emu->card, "ca0106_reg16", &entry))
437 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read16); 437 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read16);
@@ -440,12 +440,12 @@ int snd_ca0106_proc_init(struct snd_ca0106 *emu)
440 if(! snd_card_proc_new(emu->card, "ca0106_regs1", &entry)) { 440 if(! snd_card_proc_new(emu->card, "ca0106_regs1", &entry)) {
441 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read1); 441 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read1);
442 entry->c.text.write = snd_ca0106_proc_reg_write; 442 entry->c.text.write = snd_ca0106_proc_reg_write;
443 entry->mode |= S_IWUSR; 443 entry->mode |= 0200;
444 } 444 }
445 if(! snd_card_proc_new(emu->card, "ca0106_i2c", &entry)) { 445 if(! snd_card_proc_new(emu->card, "ca0106_i2c", &entry)) {
446 entry->c.text.write = snd_ca0106_proc_i2c_write; 446 entry->c.text.write = snd_ca0106_proc_i2c_write;
447 entry->private_data = emu; 447 entry->private_data = emu;
448 entry->mode |= S_IWUSR; 448 entry->mode |= 0200;
449 } 449 }
450 if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry)) 450 if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry))
451 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2); 451 snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2);
diff --git a/sound/pci/cs46xx/cs46xx_lib.c b/sound/pci/cs46xx/cs46xx_lib.c
index 0020fd0efc46..ed1251c5f449 100644
--- a/sound/pci/cs46xx/cs46xx_lib.c
+++ b/sound/pci/cs46xx/cs46xx_lib.c
@@ -2849,7 +2849,7 @@ static int snd_cs46xx_proc_init(struct snd_card *card, struct snd_cs46xx *chip)
2849 entry->private_data = chip; 2849 entry->private_data = chip;
2850 entry->c.ops = &snd_cs46xx_proc_io_ops; 2850 entry->c.ops = &snd_cs46xx_proc_io_ops;
2851 entry->size = region->size; 2851 entry->size = region->size;
2852 entry->mode = S_IFREG | S_IRUSR; 2852 entry->mode = S_IFREG | 0400;
2853 } 2853 }
2854 } 2854 }
2855#ifdef CONFIG_SND_CS46XX_NEW_DSP 2855#ifdef CONFIG_SND_CS46XX_NEW_DSP
diff --git a/sound/pci/cs46xx/dsp_spos.c b/sound/pci/cs46xx/dsp_spos.c
index aa61615288ff..c44eadef64ae 100644
--- a/sound/pci/cs46xx/dsp_spos.c
+++ b/sound/pci/cs46xx/dsp_spos.c
@@ -798,7 +798,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
798 798
799 if ((entry = snd_info_create_card_entry(card, "dsp", card->proc_root)) != NULL) { 799 if ((entry = snd_info_create_card_entry(card, "dsp", card->proc_root)) != NULL) {
800 entry->content = SNDRV_INFO_CONTENT_TEXT; 800 entry->content = SNDRV_INFO_CONTENT_TEXT;
801 entry->mode = S_IFDIR | S_IRUGO | S_IXUGO; 801 entry->mode = S_IFDIR | 0555;
802 802
803 if (snd_info_register(entry) < 0) { 803 if (snd_info_register(entry) < 0) {
804 snd_info_free_entry(entry); 804 snd_info_free_entry(entry);
@@ -814,7 +814,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
814 if ((entry = snd_info_create_card_entry(card, "spos_symbols", ins->proc_dsp_dir)) != NULL) { 814 if ((entry = snd_info_create_card_entry(card, "spos_symbols", ins->proc_dsp_dir)) != NULL) {
815 entry->content = SNDRV_INFO_CONTENT_TEXT; 815 entry->content = SNDRV_INFO_CONTENT_TEXT;
816 entry->private_data = chip; 816 entry->private_data = chip;
817 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 817 entry->mode = S_IFREG | 0644;
818 entry->c.text.read = cs46xx_dsp_proc_symbol_table_read; 818 entry->c.text.read = cs46xx_dsp_proc_symbol_table_read;
819 if (snd_info_register(entry) < 0) { 819 if (snd_info_register(entry) < 0) {
820 snd_info_free_entry(entry); 820 snd_info_free_entry(entry);
@@ -826,7 +826,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
826 if ((entry = snd_info_create_card_entry(card, "spos_modules", ins->proc_dsp_dir)) != NULL) { 826 if ((entry = snd_info_create_card_entry(card, "spos_modules", ins->proc_dsp_dir)) != NULL) {
827 entry->content = SNDRV_INFO_CONTENT_TEXT; 827 entry->content = SNDRV_INFO_CONTENT_TEXT;
828 entry->private_data = chip; 828 entry->private_data = chip;
829 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 829 entry->mode = S_IFREG | 0644;
830 entry->c.text.read = cs46xx_dsp_proc_modules_read; 830 entry->c.text.read = cs46xx_dsp_proc_modules_read;
831 if (snd_info_register(entry) < 0) { 831 if (snd_info_register(entry) < 0) {
832 snd_info_free_entry(entry); 832 snd_info_free_entry(entry);
@@ -838,7 +838,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
838 if ((entry = snd_info_create_card_entry(card, "parameter", ins->proc_dsp_dir)) != NULL) { 838 if ((entry = snd_info_create_card_entry(card, "parameter", ins->proc_dsp_dir)) != NULL) {
839 entry->content = SNDRV_INFO_CONTENT_TEXT; 839 entry->content = SNDRV_INFO_CONTENT_TEXT;
840 entry->private_data = chip; 840 entry->private_data = chip;
841 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 841 entry->mode = S_IFREG | 0644;
842 entry->c.text.read = cs46xx_dsp_proc_parameter_dump_read; 842 entry->c.text.read = cs46xx_dsp_proc_parameter_dump_read;
843 if (snd_info_register(entry) < 0) { 843 if (snd_info_register(entry) < 0) {
844 snd_info_free_entry(entry); 844 snd_info_free_entry(entry);
@@ -850,7 +850,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
850 if ((entry = snd_info_create_card_entry(card, "sample", ins->proc_dsp_dir)) != NULL) { 850 if ((entry = snd_info_create_card_entry(card, "sample", ins->proc_dsp_dir)) != NULL) {
851 entry->content = SNDRV_INFO_CONTENT_TEXT; 851 entry->content = SNDRV_INFO_CONTENT_TEXT;
852 entry->private_data = chip; 852 entry->private_data = chip;
853 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 853 entry->mode = S_IFREG | 0644;
854 entry->c.text.read = cs46xx_dsp_proc_sample_dump_read; 854 entry->c.text.read = cs46xx_dsp_proc_sample_dump_read;
855 if (snd_info_register(entry) < 0) { 855 if (snd_info_register(entry) < 0) {
856 snd_info_free_entry(entry); 856 snd_info_free_entry(entry);
@@ -862,7 +862,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
862 if ((entry = snd_info_create_card_entry(card, "task_tree", ins->proc_dsp_dir)) != NULL) { 862 if ((entry = snd_info_create_card_entry(card, "task_tree", ins->proc_dsp_dir)) != NULL) {
863 entry->content = SNDRV_INFO_CONTENT_TEXT; 863 entry->content = SNDRV_INFO_CONTENT_TEXT;
864 entry->private_data = chip; 864 entry->private_data = chip;
865 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 865 entry->mode = S_IFREG | 0644;
866 entry->c.text.read = cs46xx_dsp_proc_task_tree_read; 866 entry->c.text.read = cs46xx_dsp_proc_task_tree_read;
867 if (snd_info_register(entry) < 0) { 867 if (snd_info_register(entry) < 0) {
868 snd_info_free_entry(entry); 868 snd_info_free_entry(entry);
@@ -874,7 +874,7 @@ int cs46xx_dsp_proc_init (struct snd_card *card, struct snd_cs46xx *chip)
874 if ((entry = snd_info_create_card_entry(card, "scb_info", ins->proc_dsp_dir)) != NULL) { 874 if ((entry = snd_info_create_card_entry(card, "scb_info", ins->proc_dsp_dir)) != NULL) {
875 entry->content = SNDRV_INFO_CONTENT_TEXT; 875 entry->content = SNDRV_INFO_CONTENT_TEXT;
876 entry->private_data = chip; 876 entry->private_data = chip;
877 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 877 entry->mode = S_IFREG | 0644;
878 entry->c.text.read = cs46xx_dsp_proc_scb_read; 878 entry->c.text.read = cs46xx_dsp_proc_scb_read;
879 if (snd_info_register(entry) < 0) { 879 if (snd_info_register(entry) < 0) {
880 snd_info_free_entry(entry); 880 snd_info_free_entry(entry);
diff --git a/sound/pci/cs46xx/dsp_spos_scb_lib.c b/sound/pci/cs46xx/dsp_spos_scb_lib.c
index 7488e1b7a770..abb01ce66983 100644
--- a/sound/pci/cs46xx/dsp_spos_scb_lib.c
+++ b/sound/pci/cs46xx/dsp_spos_scb_lib.c
@@ -271,7 +271,7 @@ void cs46xx_dsp_proc_register_scb_desc (struct snd_cs46xx *chip,
271 271
272 entry->content = SNDRV_INFO_CONTENT_TEXT; 272 entry->content = SNDRV_INFO_CONTENT_TEXT;
273 entry->private_data = scb_info; 273 entry->private_data = scb_info;
274 entry->mode = S_IFREG | S_IRUGO | S_IWUSR; 274 entry->mode = S_IFREG | 0644;
275 275
276 entry->c.text.read = cs46xx_dsp_proc_scb_info_read; 276 entry->c.text.read = cs46xx_dsp_proc_scb_info_read;
277 277
diff --git a/sound/pci/ctxfi/cttimer.c b/sound/pci/ctxfi/cttimer.c
index 08e874e9a7f6..2099e9ce441a 100644
--- a/sound/pci/ctxfi/cttimer.c
+++ b/sound/pci/ctxfi/cttimer.c
@@ -17,7 +17,7 @@
17 17
18static bool use_system_timer; 18static bool use_system_timer;
19MODULE_PARM_DESC(use_system_timer, "Force to use system-timer"); 19MODULE_PARM_DESC(use_system_timer, "Force to use system-timer");
20module_param(use_system_timer, bool, S_IRUGO); 20module_param(use_system_timer, bool, 0444);
21 21
22struct ct_timer_ops { 22struct ct_timer_ops {
23 void (*init)(struct ct_timer_instance *); 23 void (*init)(struct ct_timer_instance *);
diff --git a/sound/pci/ctxfi/xfi.c b/sound/pci/ctxfi/xfi.c
index f2f32779de98..b2874220be1b 100644
--- a/sound/pci/ctxfi/xfi.c
+++ b/sound/pci/ctxfi/xfi.c
@@ -26,9 +26,9 @@ MODULE_SUPPORTED_DEVICE("{{Creative Labs, Sound Blaster X-Fi}");
26static unsigned int reference_rate = 48000; 26static unsigned int reference_rate = 48000;
27static unsigned int multiple = 2; 27static unsigned int multiple = 2;
28MODULE_PARM_DESC(reference_rate, "Reference rate (default=48000)"); 28MODULE_PARM_DESC(reference_rate, "Reference rate (default=48000)");
29module_param(reference_rate, uint, S_IRUGO); 29module_param(reference_rate, uint, 0444);
30MODULE_PARM_DESC(multiple, "Rate multiplier (default=2)"); 30MODULE_PARM_DESC(multiple, "Rate multiplier (default=2)");
31module_param(multiple, uint, S_IRUGO); 31module_param(multiple, uint, 0444);
32 32
33static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX; 33static int index[SNDRV_CARDS] = SNDRV_DEFAULT_IDX;
34static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR; 34static char *id[SNDRV_CARDS] = SNDRV_DEFAULT_STR;
diff --git a/sound/pci/emu10k1/emu10k1x.c b/sound/pci/emu10k1/emu10k1x.c
index 2c2b12a06177..611589cbdad6 100644
--- a/sound/pci/emu10k1/emu10k1x.c
+++ b/sound/pci/emu10k1/emu10k1x.c
@@ -1070,7 +1070,7 @@ static int snd_emu10k1x_proc_init(struct emu10k1x *emu)
1070 if(! snd_card_proc_new(emu->card, "emu10k1x_regs", &entry)) { 1070 if(! snd_card_proc_new(emu->card, "emu10k1x_regs", &entry)) {
1071 snd_info_set_text_ops(entry, emu, snd_emu10k1x_proc_reg_read); 1071 snd_info_set_text_ops(entry, emu, snd_emu10k1x_proc_reg_read);
1072 entry->c.text.write = snd_emu10k1x_proc_reg_write; 1072 entry->c.text.write = snd_emu10k1x_proc_reg_write;
1073 entry->mode |= S_IWUSR; 1073 entry->mode |= 0200;
1074 entry->private_data = emu; 1074 entry->private_data = emu;
1075 } 1075 }
1076 1076
diff --git a/sound/pci/emu10k1/emuproc.c b/sound/pci/emu10k1/emuproc.c
index 055227caa7ca..b57008031792 100644
--- a/sound/pci/emu10k1/emuproc.c
+++ b/sound/pci/emu10k1/emuproc.c
@@ -574,32 +574,32 @@ int snd_emu10k1_proc_init(struct snd_emu10k1 *emu)
574 if (! snd_card_proc_new(emu->card, "io_regs", &entry)) { 574 if (! snd_card_proc_new(emu->card, "io_regs", &entry)) {
575 snd_info_set_text_ops(entry, emu, snd_emu_proc_io_reg_read); 575 snd_info_set_text_ops(entry, emu, snd_emu_proc_io_reg_read);
576 entry->c.text.write = snd_emu_proc_io_reg_write; 576 entry->c.text.write = snd_emu_proc_io_reg_write;
577 entry->mode |= S_IWUSR; 577 entry->mode |= 0200;
578 } 578 }
579 if (! snd_card_proc_new(emu->card, "ptr_regs00a", &entry)) { 579 if (! snd_card_proc_new(emu->card, "ptr_regs00a", &entry)) {
580 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00a); 580 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00a);
581 entry->c.text.write = snd_emu_proc_ptr_reg_write00; 581 entry->c.text.write = snd_emu_proc_ptr_reg_write00;
582 entry->mode |= S_IWUSR; 582 entry->mode |= 0200;
583 } 583 }
584 if (! snd_card_proc_new(emu->card, "ptr_regs00b", &entry)) { 584 if (! snd_card_proc_new(emu->card, "ptr_regs00b", &entry)) {
585 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00b); 585 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read00b);
586 entry->c.text.write = snd_emu_proc_ptr_reg_write00; 586 entry->c.text.write = snd_emu_proc_ptr_reg_write00;
587 entry->mode |= S_IWUSR; 587 entry->mode |= 0200;
588 } 588 }
589 if (! snd_card_proc_new(emu->card, "ptr_regs20a", &entry)) { 589 if (! snd_card_proc_new(emu->card, "ptr_regs20a", &entry)) {
590 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20a); 590 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20a);
591 entry->c.text.write = snd_emu_proc_ptr_reg_write20; 591 entry->c.text.write = snd_emu_proc_ptr_reg_write20;
592 entry->mode |= S_IWUSR; 592 entry->mode |= 0200;
593 } 593 }
594 if (! snd_card_proc_new(emu->card, "ptr_regs20b", &entry)) { 594 if (! snd_card_proc_new(emu->card, "ptr_regs20b", &entry)) {
595 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20b); 595 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20b);
596 entry->c.text.write = snd_emu_proc_ptr_reg_write20; 596 entry->c.text.write = snd_emu_proc_ptr_reg_write20;
597 entry->mode |= S_IWUSR; 597 entry->mode |= 0200;
598 } 598 }
599 if (! snd_card_proc_new(emu->card, "ptr_regs20c", &entry)) { 599 if (! snd_card_proc_new(emu->card, "ptr_regs20c", &entry)) {
600 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20c); 600 snd_info_set_text_ops(entry, emu, snd_emu_proc_ptr_reg_read20c);
601 entry->c.text.write = snd_emu_proc_ptr_reg_write20; 601 entry->c.text.write = snd_emu_proc_ptr_reg_write20;
602 entry->mode |= S_IWUSR; 602 entry->mode |= 0200;
603 } 603 }
604#endif 604#endif
605 605
@@ -621,35 +621,35 @@ int snd_emu10k1_proc_init(struct snd_emu10k1 *emu)
621 if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) { 621 if (! snd_card_proc_new(emu->card, "fx8010_gpr", &entry)) {
622 entry->content = SNDRV_INFO_CONTENT_DATA; 622 entry->content = SNDRV_INFO_CONTENT_DATA;
623 entry->private_data = emu; 623 entry->private_data = emu;
624 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; 624 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/;
625 entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR; 625 entry->size = emu->audigy ? A_TOTAL_SIZE_GPR : TOTAL_SIZE_GPR;
626 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; 626 entry->c.ops = &snd_emu10k1_proc_ops_fx8010;
627 } 627 }
628 if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) { 628 if (! snd_card_proc_new(emu->card, "fx8010_tram_data", &entry)) {
629 entry->content = SNDRV_INFO_CONTENT_DATA; 629 entry->content = SNDRV_INFO_CONTENT_DATA;
630 entry->private_data = emu; 630 entry->private_data = emu;
631 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; 631 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/;
632 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ; 632 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_DATA : TOTAL_SIZE_TANKMEM_DATA ;
633 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; 633 entry->c.ops = &snd_emu10k1_proc_ops_fx8010;
634 } 634 }
635 if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) { 635 if (! snd_card_proc_new(emu->card, "fx8010_tram_addr", &entry)) {
636 entry->content = SNDRV_INFO_CONTENT_DATA; 636 entry->content = SNDRV_INFO_CONTENT_DATA;
637 entry->private_data = emu; 637 entry->private_data = emu;
638 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; 638 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/;
639 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ; 639 entry->size = emu->audigy ? A_TOTAL_SIZE_TANKMEM_ADDR : TOTAL_SIZE_TANKMEM_ADDR ;
640 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; 640 entry->c.ops = &snd_emu10k1_proc_ops_fx8010;
641 } 641 }
642 if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) { 642 if (! snd_card_proc_new(emu->card, "fx8010_code", &entry)) {
643 entry->content = SNDRV_INFO_CONTENT_DATA; 643 entry->content = SNDRV_INFO_CONTENT_DATA;
644 entry->private_data = emu; 644 entry->private_data = emu;
645 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; 645 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/;
646 entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE; 646 entry->size = emu->audigy ? A_TOTAL_SIZE_CODE : TOTAL_SIZE_CODE;
647 entry->c.ops = &snd_emu10k1_proc_ops_fx8010; 647 entry->c.ops = &snd_emu10k1_proc_ops_fx8010;
648 } 648 }
649 if (! snd_card_proc_new(emu->card, "fx8010_acode", &entry)) { 649 if (! snd_card_proc_new(emu->card, "fx8010_acode", &entry)) {
650 entry->content = SNDRV_INFO_CONTENT_TEXT; 650 entry->content = SNDRV_INFO_CONTENT_TEXT;
651 entry->private_data = emu; 651 entry->private_data = emu;
652 entry->mode = S_IFREG | S_IRUGO /*| S_IWUSR*/; 652 entry->mode = S_IFREG | 0444 /*| S_IWUSR*/;
653 entry->c.text.read = snd_emu10k1_proc_acode_read; 653 entry->c.text.read = snd_emu10k1_proc_acode_read;
654 } 654 }
655 return 0; 655 return 0;
diff --git a/sound/pci/hda/patch_hdmi.c b/sound/pci/hda/patch_hdmi.c
index 7d7eb1354eee..8840daf9c6a3 100644
--- a/sound/pci/hda/patch_hdmi.c
+++ b/sound/pci/hda/patch_hdmi.c
@@ -510,7 +510,7 @@ static int eld_proc_new(struct hdmi_spec_per_pin *per_pin, int index)
510 510
511 snd_info_set_text_ops(entry, per_pin, print_eld_info); 511 snd_info_set_text_ops(entry, per_pin, print_eld_info);
512 entry->c.text.write = write_eld_info; 512 entry->c.text.write = write_eld_info;
513 entry->mode |= S_IWUSR; 513 entry->mode |= 0200;
514 per_pin->proc_entry = entry; 514 per_pin->proc_entry = entry;
515 515
516 return 0; 516 return 0;
diff --git a/sound/pci/ice1712/pontis.c b/sound/pci/ice1712/pontis.c
index 5101f40f6fbd..93b8cfc6636f 100644
--- a/sound/pci/ice1712/pontis.c
+++ b/sound/pci/ice1712/pontis.c
@@ -662,7 +662,7 @@ static void wm_proc_init(struct snd_ice1712 *ice)
662 struct snd_info_entry *entry; 662 struct snd_info_entry *entry;
663 if (! snd_card_proc_new(ice->card, "wm_codec", &entry)) { 663 if (! snd_card_proc_new(ice->card, "wm_codec", &entry)) {
664 snd_info_set_text_ops(entry, ice, wm_proc_regs_read); 664 snd_info_set_text_ops(entry, ice, wm_proc_regs_read);
665 entry->mode |= S_IWUSR; 665 entry->mode |= 0200;
666 entry->c.text.write = wm_proc_regs_write; 666 entry->c.text.write = wm_proc_regs_write;
667 } 667 }
668} 668}
diff --git a/sound/pci/ice1712/prodigy_hifi.c b/sound/pci/ice1712/prodigy_hifi.c
index 8dabd4d0211d..d7366ade5a25 100644
--- a/sound/pci/ice1712/prodigy_hifi.c
+++ b/sound/pci/ice1712/prodigy_hifi.c
@@ -926,7 +926,7 @@ static void wm_proc_init(struct snd_ice1712 *ice)
926 struct snd_info_entry *entry; 926 struct snd_info_entry *entry;
927 if (!snd_card_proc_new(ice->card, "wm_codec", &entry)) { 927 if (!snd_card_proc_new(ice->card, "wm_codec", &entry)) {
928 snd_info_set_text_ops(entry, ice, wm_proc_regs_read); 928 snd_info_set_text_ops(entry, ice, wm_proc_regs_read);
929 entry->mode |= S_IWUSR; 929 entry->mode |= 0200;
930 entry->c.text.write = wm_proc_regs_write; 930 entry->c.text.write = wm_proc_regs_write;
931 } 931 }
932} 932}
diff --git a/sound/pci/lola/lola_proc.c b/sound/pci/lola/lola_proc.c
index c241dc06dd92..904e3c4f4dfe 100644
--- a/sound/pci/lola/lola_proc.c
+++ b/sound/pci/lola/lola_proc.c
@@ -214,7 +214,7 @@ void lola_proc_debug_new(struct lola *chip)
214 snd_info_set_text_ops(entry, chip, lola_proc_codec_read); 214 snd_info_set_text_ops(entry, chip, lola_proc_codec_read);
215 if (!snd_card_proc_new(chip->card, "codec_rw", &entry)) { 215 if (!snd_card_proc_new(chip->card, "codec_rw", &entry)) {
216 snd_info_set_text_ops(entry, chip, lola_proc_codec_rw_read); 216 snd_info_set_text_ops(entry, chip, lola_proc_codec_rw_read);
217 entry->mode |= S_IWUSR; 217 entry->mode |= 0200;
218 entry->c.text.write = lola_proc_codec_rw_write; 218 entry->c.text.write = lola_proc_codec_rw_write;
219 } 219 }
220 if (!snd_card_proc_new(chip->card, "regs", &entry)) 220 if (!snd_card_proc_new(chip->card, "regs", &entry))
diff --git a/sound/pci/pcxhr/pcxhr.c b/sound/pci/pcxhr/pcxhr.c
index f9ae72f28ddc..e57da4036231 100644
--- a/sound/pci/pcxhr/pcxhr.c
+++ b/sound/pci/pcxhr/pcxhr.c
@@ -1465,7 +1465,7 @@ static void pcxhr_proc_init(struct snd_pcxhr *chip)
1465 !snd_card_proc_new(chip->card, "gpio", &entry)) { 1465 !snd_card_proc_new(chip->card, "gpio", &entry)) {
1466 snd_info_set_text_ops(entry, chip, pcxhr_proc_gpio_read); 1466 snd_info_set_text_ops(entry, chip, pcxhr_proc_gpio_read);
1467 entry->c.text.write = pcxhr_proc_gpo_write; 1467 entry->c.text.write = pcxhr_proc_gpo_write;
1468 entry->mode |= S_IWUSR; 1468 entry->mode |= 0200;
1469 } 1469 }
1470 if (!snd_card_proc_new(chip->card, "ltc", &entry)) 1470 if (!snd_card_proc_new(chip->card, "ltc", &entry))
1471 snd_info_set_text_ops(entry, chip, pcxhr_proc_ltc); 1471 snd_info_set_text_ops(entry, chip, pcxhr_proc_ltc);
diff --git a/sound/soc/codecs/cs43130.c b/sound/soc/codecs/cs43130.c
index feca0a672976..80dc42197154 100644
--- a/sound/soc/codecs/cs43130.c
+++ b/sound/soc/codecs/cs43130.c
@@ -1733,10 +1733,10 @@ static ssize_t cs43130_show_ac_r(struct device *dev,
1733 return cs43130_show_ac(dev, buf, HP_RIGHT); 1733 return cs43130_show_ac(dev, buf, HP_RIGHT);
1734} 1734}
1735 1735
1736static DEVICE_ATTR(hpload_dc_l, S_IRUGO, cs43130_show_dc_l, NULL); 1736static DEVICE_ATTR(hpload_dc_l, 0444, cs43130_show_dc_l, NULL);
1737static DEVICE_ATTR(hpload_dc_r, S_IRUGO, cs43130_show_dc_r, NULL); 1737static DEVICE_ATTR(hpload_dc_r, 0444, cs43130_show_dc_r, NULL);
1738static DEVICE_ATTR(hpload_ac_l, S_IRUGO, cs43130_show_ac_l, NULL); 1738static DEVICE_ATTR(hpload_ac_l, 0444, cs43130_show_ac_l, NULL);
1739static DEVICE_ATTR(hpload_ac_r, S_IRUGO, cs43130_show_ac_r, NULL); 1739static DEVICE_ATTR(hpload_ac_r, 0444, cs43130_show_ac_r, NULL);
1740 1740
1741static struct reg_sequence hp_en_cal_seq[] = { 1741static struct reg_sequence hp_en_cal_seq[] = {
1742 {CS43130_INT_MASK_4, CS43130_INT_MASK_ALL}, 1742 {CS43130_INT_MASK_4, CS43130_INT_MASK_ALL},
diff --git a/sound/soc/codecs/wm_adsp.c b/sound/soc/codecs/wm_adsp.c
index 82b0927e6ed7..af062c4f4017 100644
--- a/sound/soc/codecs/wm_adsp.c
+++ b/sound/soc/codecs/wm_adsp.c
@@ -627,22 +627,21 @@ static void wm_adsp2_init_debugfs(struct wm_adsp *dsp,
627 if (!root) 627 if (!root)
628 goto err; 628 goto err;
629 629
630 if (!debugfs_create_bool("booted", S_IRUGO, root, &dsp->booted)) 630 if (!debugfs_create_bool("booted", 0444, root, &dsp->booted))
631 goto err; 631 goto err;
632 632
633 if (!debugfs_create_bool("running", S_IRUGO, root, &dsp->running)) 633 if (!debugfs_create_bool("running", 0444, root, &dsp->running))
634 goto err; 634 goto err;
635 635
636 if (!debugfs_create_x32("fw_id", S_IRUGO, root, &dsp->fw_id)) 636 if (!debugfs_create_x32("fw_id", 0444, root, &dsp->fw_id))
637 goto err; 637 goto err;
638 638
639 if (!debugfs_create_x32("fw_version", S_IRUGO, root, 639 if (!debugfs_create_x32("fw_version", 0444, root, &dsp->fw_id_version))
640 &dsp->fw_id_version))
641 goto err; 640 goto err;
642 641
643 for (i = 0; i < ARRAY_SIZE(wm_adsp_debugfs_fops); ++i) { 642 for (i = 0; i < ARRAY_SIZE(wm_adsp_debugfs_fops); ++i) {
644 if (!debugfs_create_file(wm_adsp_debugfs_fops[i].name, 643 if (!debugfs_create_file(wm_adsp_debugfs_fops[i].name,
645 S_IRUGO, root, dsp, 644 0444, root, dsp,
646 &wm_adsp_debugfs_fops[i].fops)) 645 &wm_adsp_debugfs_fops[i].fops))
647 goto err; 646 goto err;
648 } 647 }
diff --git a/sound/soc/fsl/fsl_ssi_dbg.c b/sound/soc/fsl/fsl_ssi_dbg.c
index 7aac63e2c561..0ff469c027dd 100644
--- a/sound/soc/fsl/fsl_ssi_dbg.c
+++ b/sound/soc/fsl/fsl_ssi_dbg.c
@@ -146,7 +146,7 @@ int fsl_ssi_debugfs_create(struct fsl_ssi_dbg *ssi_dbg, struct device *dev)
146 if (!ssi_dbg->dbg_dir) 146 if (!ssi_dbg->dbg_dir)
147 return -ENOMEM; 147 return -ENOMEM;
148 148
149 ssi_dbg->dbg_stats = debugfs_create_file("stats", S_IRUGO, 149 ssi_dbg->dbg_stats = debugfs_create_file("stats", 0444,
150 ssi_dbg->dbg_dir, ssi_dbg, 150 ssi_dbg->dbg_dir, ssi_dbg,
151 &fsl_ssi_stats_ops); 151 &fsl_ssi_stats_ops);
152 if (!ssi_dbg->dbg_stats) { 152 if (!ssi_dbg->dbg_stats) {
diff --git a/sound/sound_core.c b/sound/sound_core.c
index b4efb22db561..40ad000c2e3c 100644
--- a/sound/sound_core.c
+++ b/sound/sound_core.c
@@ -413,7 +413,7 @@ int register_sound_special_device(const struct file_operations *fops, int unit,
413 break; 413 break;
414 } 414 }
415 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit, 415 return sound_insert_unit(&chains[chain], fops, -1, unit, max_unit,
416 name, S_IRUSR | S_IWUSR, dev); 416 name, 0600, dev);
417} 417}
418 418
419EXPORT_SYMBOL(register_sound_special_device); 419EXPORT_SYMBOL(register_sound_special_device);
@@ -440,7 +440,7 @@ EXPORT_SYMBOL(register_sound_special);
440int register_sound_mixer(const struct file_operations *fops, int dev) 440int register_sound_mixer(const struct file_operations *fops, int dev)
441{ 441{
442 return sound_insert_unit(&chains[0], fops, dev, 0, 128, 442 return sound_insert_unit(&chains[0], fops, dev, 0, 128,
443 "mixer", S_IRUSR | S_IWUSR, NULL); 443 "mixer", 0600, NULL);
444} 444}
445 445
446EXPORT_SYMBOL(register_sound_mixer); 446EXPORT_SYMBOL(register_sound_mixer);
@@ -468,7 +468,7 @@ EXPORT_SYMBOL(register_sound_mixer);
468int register_sound_dsp(const struct file_operations *fops, int dev) 468int register_sound_dsp(const struct file_operations *fops, int dev)
469{ 469{
470 return sound_insert_unit(&chains[3], fops, dev, 3, 131, 470 return sound_insert_unit(&chains[3], fops, dev, 3, 131,
471 "dsp", S_IWUSR | S_IRUSR, NULL); 471 "dsp", 0600, NULL);
472} 472}
473 473
474EXPORT_SYMBOL(register_sound_dsp); 474EXPORT_SYMBOL(register_sound_dsp);
diff --git a/sound/sparc/dbri.c b/sound/sparc/dbri.c
index f0e713527e91..7609eceba1a2 100644
--- a/sound/sparc/dbri.c
+++ b/sound/sparc/dbri.c
@@ -2518,7 +2518,7 @@ static void snd_dbri_proc(struct snd_card *card)
2518#ifdef DBRI_DEBUG 2518#ifdef DBRI_DEBUG
2519 if (!snd_card_proc_new(card, "debug", &entry)) { 2519 if (!snd_card_proc_new(card, "debug", &entry)) {
2520 snd_info_set_text_ops(entry, dbri, dbri_debug_read); 2520 snd_info_set_text_ops(entry, dbri, dbri_debug_read);
2521 entry->mode = S_IFREG | S_IRUGO; /* Readable only. */ 2521 entry->mode = S_IFREG | 0444; /* Readable only. */
2522 } 2522 }
2523#endif 2523#endif
2524} 2524}