Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
L
linux
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
linux
Commits
45fae5c7
Commit
45fae5c7
authored
Sep 10, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/ali5451-cleanup' into for-linus
* topic/ali5451-cleanup: ALSA: ali5451: remove dead code
parents
74fca6a4
848bffef
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
65 deletions
+0
-65
sound/pci/ali5451/ali5451.c
sound/pci/ali5451/ali5451.c
+0
-65
No files found.
sound/pci/ali5451/ali5451.c
View file @
45fae5c7
...
...
@@ -478,45 +478,6 @@ static int snd_ali_reset_5451(struct snd_ali *codec)
return
0
;
}
#ifdef CODEC_RESET
static
int
snd_ali_reset_codec
(
struct
snd_ali
*
codec
)
{
struct
pci_dev
*
pci_dev
;
unsigned
char
bVal
;
unsigned
int
dwVal
;
unsigned
short
wCount
,
wReg
;
pci_dev
=
codec
->
pci_m1533
;
pci_read_config_dword
(
pci_dev
,
0x7c
,
&
dwVal
);
pci_write_config_dword
(
pci_dev
,
0x7c
,
dwVal
|
0x08000000
);
udelay
(
5000
);
pci_read_config_dword
(
pci_dev
,
0x7c
,
&
dwVal
);
pci_write_config_dword
(
pci_dev
,
0x7c
,
dwVal
&
0xf7ffffff
);
udelay
(
5000
);
bVal
=
inb
(
ALI_REG
(
codec
,
ALI_SCTRL
));
bVal
|=
0x02
;
outb
(
ALI_REG
(
codec
,
ALI_SCTRL
),
bVal
);
udelay
(
5000
);
bVal
=
inb
(
ALI_REG
(
codec
,
ALI_SCTRL
));
bVal
&=
0xfd
;
outb
(
ALI_REG
(
codec
,
ALI_SCTRL
),
bVal
);
udelay
(
15000
);
wCount
=
200
;
while
(
wCount
--
)
{
wReg
=
snd_ali_codec_read
(
codec
->
ac97
,
AC97_POWERDOWN
);
if
((
wReg
&
0x000f
)
==
0x000f
)
return
0
;
udelay
(
5000
);
}
return
-
1
;
}
#endif
/*
* ALI 5451 Controller
*/
...
...
@@ -561,22 +522,6 @@ static void snd_ali_disable_address_interrupt(struct snd_ali *codec)
outl
(
gc
,
ALI_REG
(
codec
,
ALI_GC_CIR
));
}
#if 0 /* not used */
static void snd_ali_enable_voice_irq(struct snd_ali *codec,
unsigned int channel)
{
unsigned int mask;
struct snd_ali_channel_control *pchregs = &(codec->chregs);
snd_ali_printk("enable_voice_irq channel=%d\n",channel);
mask = 1 << (channel & 0x1f);
pchregs->data.ainten = inl(ALI_REG(codec, pchregs->regs.ainten));
pchregs->data.ainten |= mask;
outl(pchregs->data.ainten, ALI_REG(codec, pchregs->regs.ainten));
}
#endif
static
void
snd_ali_disable_voice_irq
(
struct
snd_ali
*
codec
,
unsigned
int
channel
)
{
...
...
@@ -677,16 +622,6 @@ static void snd_ali_free_channel_pcm(struct snd_ali *codec, int channel)
}
}
#if 0 /* not used */
static void snd_ali_start_voice(struct snd_ali *codec, unsigned int channel)
{
unsigned int mask = 1 << (channel & 0x1f);
snd_ali_printk("start_voice: channel=%d\n",channel);
outl(mask, ALI_REG(codec,codec->chregs.regs.start));
}
#endif
static
void
snd_ali_stop_voice
(
struct
snd_ali
*
codec
,
unsigned
int
channel
)
{
unsigned
int
mask
=
1
<<
(
channel
&
0x1f
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment