Commit 33712560 authored by Takashi Iwai's avatar Takashi Iwai Committed by Mercurial server

[ALSA] ca0106 - Fix write proc assignment

The driver assigns the write proc callback to read wrongly.
Fixed now.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@perex.cz>
parent 1700139a
...@@ -445,13 +445,11 @@ int __devinit snd_ca0106_proc_init(struct snd_ca0106 * emu) ...@@ -445,13 +445,11 @@ int __devinit snd_ca0106_proc_init(struct snd_ca0106 * emu)
snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read1); snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read1);
entry->c.text.write = snd_ca0106_proc_reg_write; entry->c.text.write = snd_ca0106_proc_reg_write;
entry->mode |= S_IWUSR; entry->mode |= S_IWUSR;
// entry->private_data = emu;
} }
if(! snd_card_proc_new(emu->card, "ca0106_i2c", &entry)) { if(! snd_card_proc_new(emu->card, "ca0106_i2c", &entry)) {
snd_info_set_text_ops(entry, emu, snd_ca0106_proc_i2c_write);
entry->c.text.write = snd_ca0106_proc_i2c_write; entry->c.text.write = snd_ca0106_proc_i2c_write;
entry->private_data = emu;
entry->mode |= S_IWUSR; entry->mode |= S_IWUSR;
// entry->private_data = emu;
} }
if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry)) if(! snd_card_proc_new(emu->card, "ca0106_regs2", &entry))
snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2); snd_info_set_text_ops(entry, emu, snd_ca0106_proc_reg_read2);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment