Commit 9c30f2b6 authored by Dave Jones's avatar Dave Jones

[PATCH] sf16fmi janitor work

parent 4ea8da0b
......@@ -84,22 +84,13 @@ static inline int fmi_setfreq(struct fmi_device *dev)
{
int myport = dev->port;
unsigned long freq = dev->curfreq;
int i;
down(&lock);
outbits(16, RSF16_ENCODE(freq), myport);
outbits(8, 0xC0, myport);
for(i=0; i< 100; i++)
{
udelay(1400);
cond_resched();
}
/* If this becomes allowed use it ...
current->state = TASK_UNINTERRUPTIBLE;
schedule_timeout(HZ/7);
*/
up(&lock);
if (dev->curvol) fmi_unmute(myport);
return 0;
......@@ -110,7 +101,7 @@ static inline int fmi_getsigstr(struct fmi_device *dev)
int val;
int res;
int myport = dev->port;
int i;
down(&lock);
val = dev->curvol ? 0x08 : 0x00; /* unmute/mute */
......
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