提交 7ffffecc 编写于 作者: J Josef 'Jeff' Sipek 提交者: Jaroslav Kysela

[ALSA] mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values

mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values
Signed-off-by: NJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NTakashi Iwai <tiwai@suse.de>
Signed-off-by: NJaroslav Kysela <perex@suse.cz>
上级 d158da81
......@@ -1109,13 +1109,13 @@ static long long snd_mixart_BA0_llseek(struct snd_info_entry *entry,
offset = offset & ~3; /* 4 bytes aligned */
switch(orig) {
case 0: /* SEEK_SET */
case SEEK_SET:
file->f_pos = offset;
break;
case 1: /* SEEK_CUR */
case SEEK_CUR:
file->f_pos += offset;
break;
case 2: /* SEEK_END, offset is negative */
case SEEK_END: /* offset is negative */
file->f_pos = MIXART_BA0_SIZE + offset;
break;
default:
......@@ -1135,13 +1135,13 @@ static long long snd_mixart_BA1_llseek(struct snd_info_entry *entry,
offset = offset & ~3; /* 4 bytes aligned */
switch(orig) {
case 0: /* SEEK_SET */
case SEEK_SET:
file->f_pos = offset;
break;
case 1: /* SEEK_CUR */
case SEEK_CUR:
file->f_pos += offset;
break;
case 2: /* SEEK_END, offset is negative */
case SEEK_END: /* offset is negative */
file->f_pos = MIXART_BA1_SIZE + offset;
break;
default:
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册