Skip to content

Commit

Permalink
[ALSA] mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values
Browse files Browse the repository at this point in the history
mixart: Use SEEK_{SET,CUR,END} instead of hardcoded values

Signed-off-by: Josef 'Jeff' Sipek <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Takashi Iwai <[email protected]>
Signed-off-by: Jaroslav Kysela <[email protected]>
  • Loading branch information
jeffpc authored and Jaroslav Kysela committed Sep 23, 2006
1 parent d158da8 commit 7ffffec
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions sound/pci/mixart/mixart.c
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 7ffffec

Please sign in to comment.