aboutsummaryrefslogtreecommitdiffstats
path: root/sound/drivers/opl4
diff options
context:
space:
mode:
authorJosef 'Jeff' Sipek <jeffpc@josefsipek.net>2006-09-21 05:32:43 -0400
committerJaroslav Kysela <perex@suse.cz>2006-09-23 04:47:47 -0400
commitdd47a33806bfe93c08b071c4d26a2390cbbc9e65 (patch)
tree3bdc72c997302c222105838945d91ad921807889 /sound/drivers/opl4
parente6f8f108a19638d7c6535ab393a228ed9d4804a6 (diff)
[ALSA] opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values
opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@suse.cz>
Diffstat (limited to 'sound/drivers/opl4')
-rw-r--r--sound/drivers/opl4/opl4_proc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/drivers/opl4/opl4_proc.c b/sound/drivers/opl4/opl4_proc.c
index 11dd811771a4..1679300b7583 100644
--- a/sound/drivers/opl4/opl4_proc.c
+++ b/sound/drivers/opl4/opl4_proc.c
@@ -105,13 +105,13 @@ static long long snd_opl4_mem_proc_llseek(struct snd_info_entry *entry, void *fi
105 struct file *file, long long offset, int orig) 105 struct file *file, long long offset, int orig)
106{ 106{
107 switch (orig) { 107 switch (orig) {
108 case 0: /* SEEK_SET */ 108 case SEEK_SET:
109 file->f_pos = offset; 109 file->f_pos = offset;
110 break; 110 break;
111 case 1: /* SEEK_CUR */ 111 case SEEK_CUR:
112 file->f_pos += offset; 112 file->f_pos += offset;
113 break; 113 break;
114 case 2: /* SEEK_END, offset is negative */ 114 case SEEK_END: /* offset is negative */
115 file->f_pos = entry->size + offset; 115 file->f_pos = entry->size + offset;
116 break; 116 break;
117 default: 117 default: