Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
linux-davinci
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
linux
linux-davinci
Commits
277a57c7
Commit
277a57c7
authored
Jul 08, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ALSA: hda - Fix compile warnings in patch_cirrus.c
Signed-off-by:
Takashi Iwai
<
tiwai@suse.de
>
parent
b4dabfc4
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
10 deletions
+5
-10
sound/pci/hda/patch_cirrus.c
sound/pci/hda/patch_cirrus.c
+5
-10
No files found.
sound/pci/hda/patch_cirrus.c
View file @
277a57c7
...
...
@@ -110,7 +110,7 @@ enum {
/* 0x0015 - visibility reg */
static
int
cs_vendor_coef_get
(
struct
hda_codec
*
codec
,
unsigned
int
idx
)
static
in
line
in
t
cs_vendor_coef_get
(
struct
hda_codec
*
codec
,
unsigned
int
idx
)
{
snd_hda_codec_write
(
codec
,
CS420X_VENDOR_NID
,
0
,
AC_VERB_SET_COEF_INDEX
,
idx
);
...
...
@@ -118,8 +118,8 @@ static int cs_vendor_coef_get(struct hda_codec *codec, unsigned int idx)
AC_VERB_GET_PROC_COEF
,
0
);
}
static
void
cs_vendor_coef_set
(
struct
hda_codec
*
codec
,
unsigned
int
idx
,
unsigned
int
coef
)
static
inline
void
cs_vendor_coef_set
(
struct
hda_codec
*
codec
,
unsigned
int
idx
,
unsigned
int
coef
)
{
snd_hda_codec_write
(
codec
,
CS420X_VENDOR_NID
,
0
,
AC_VERB_SET_COEF_INDEX
,
idx
);
...
...
@@ -367,7 +367,6 @@ static hda_nid_t get_adc(struct hda_codec *codec, hda_nid_t pin,
static
int
is_active_pin
(
struct
hda_codec
*
codec
,
hda_nid_t
nid
)
{
struct
cs_spec
*
spec
=
codec
->
spec
;
unsigned
int
val
;
val
=
snd_hda_codec_get_pincfg
(
codec
,
nid
);
return
(
get_defcfg_connect
(
val
)
!=
AC_JACK_PORT_NONE
);
...
...
@@ -377,7 +376,7 @@ static int parse_output(struct hda_codec *codec)
{
struct
cs_spec
*
spec
=
codec
->
spec
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
int
i
,
e
rr
,
e
xtra_nids
;
int
i
,
extra_nids
;
hda_nid_t
dac
;
for
(
i
=
0
;
i
<
cfg
->
line_outs
;
i
++
)
{
...
...
@@ -422,11 +421,10 @@ static int parse_input(struct hda_codec *codec)
{
struct
cs_spec
*
spec
=
codec
->
spec
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
int
i
,
n
,
err
;
int
i
;
for
(
i
=
0
;
i
<
AUTO_PIN_LAST
;
i
++
)
{
hda_nid_t
pin
=
cfg
->
input_pins
[
i
];
struct
snd_kcontrol
*
kctl
;
if
(
!
pin
)
continue
;
spec
->
input_idx
[
spec
->
num_inputs
]
=
i
;
...
...
@@ -461,7 +459,6 @@ static int parse_digital_output(struct hda_codec *codec)
struct
cs_spec
*
spec
=
codec
->
spec
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
hda_nid_t
nid
;
int
err
;
if
(
!
cfg
->
dig_outs
)
return
0
;
...
...
@@ -651,7 +648,6 @@ static int change_cur_input(struct hda_codec *codec, unsigned int idx,
int
force
)
{
struct
cs_spec
*
spec
=
codec
->
spec
;
struct
auto_pin_cfg
*
cfg
=
&
spec
->
autocfg
;
if
(
spec
->
cur_input
==
idx
&&
!
force
)
return
0
;
...
...
@@ -1003,7 +999,6 @@ static int cs_init(struct hda_codec *codec)
static
int
cs_build_controls
(
struct
hda_codec
*
codec
)
{
struct
cs_spec
*
spec
=
codec
->
spec
;
int
err
;
err
=
build_output
(
codec
);
...
...
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