mixart.c (efb0ad25d370344e61bb4fca8c3b9c3c6047922e) mixart.c (d25ff26840bd0af3283d8e478669abc104bb873a)
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Driver for Digigram miXart soundcards
4 *
5 * main file with alsa callbacks
6 *
7 * Copyright (c) 2003 by Digigram <alsa@digigram.com>
8 */

--- 1139 unchanged lines hidden (view full) ---

1148 struct mixart_mgr *mgr = entry->private_data;
1149
1150 count = count & ~3; /* make sure the read size is a multiple of 4 bytes */
1151 if (copy_to_user_fromio(buf, MIXART_REG(mgr, pos), count))
1152 return -EFAULT;
1153 return count;
1154}
1155
1// SPDX-License-Identifier: GPL-2.0-or-later
2/*
3 * Driver for Digigram miXart soundcards
4 *
5 * main file with alsa callbacks
6 *
7 * Copyright (c) 2003 by Digigram <alsa@digigram.com>
8 */

--- 1139 unchanged lines hidden (view full) ---

1148 struct mixart_mgr *mgr = entry->private_data;
1149
1150 count = count & ~3; /* make sure the read size is a multiple of 4 bytes */
1151 if (copy_to_user_fromio(buf, MIXART_REG(mgr, pos), count))
1152 return -EFAULT;
1153 return count;
1154}
1155
1156static struct snd_info_entry_ops snd_mixart_proc_ops_BA0 = {
1156static const struct snd_info_entry_ops snd_mixart_proc_ops_BA0 = {
1157 .read = snd_mixart_BA0_read,
1158};
1159
1157 .read = snd_mixart_BA0_read,
1158};
1159
1160static struct snd_info_entry_ops snd_mixart_proc_ops_BA1 = {
1160static const struct snd_info_entry_ops snd_mixart_proc_ops_BA1 = {
1161 .read = snd_mixart_BA1_read,
1162};
1163
1164
1165static void snd_mixart_proc_read(struct snd_info_entry *entry,
1166 struct snd_info_buffer *buffer)
1167{
1168 struct snd_mixart *chip = entry->private_data;

--- 234 unchanged lines hidden ---
1161 .read = snd_mixart_BA1_read,
1162};
1163
1164
1165static void snd_mixart_proc_read(struct snd_info_entry *entry,
1166 struct snd_info_buffer *buffer)
1167{
1168 struct snd_mixart *chip = entry->private_data;

--- 234 unchanged lines hidden ---