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
d30e6caa
Commit
d30e6caa
authored
Jan 21, 2009
by
Takashi Iwai
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'topic/hda' into next/hda
parents
e64f14f4
65557f35
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
sound/pci/hda/patch_sigmatel.c
sound/pci/hda/patch_sigmatel.c
+11
-5
No files found.
sound/pci/hda/patch_sigmatel.c
View file @
d30e6caa
...
@@ -841,10 +841,6 @@ static struct hda_verb stac92hd73xx_10ch_core_init[] = {
...
@@ -841,10 +841,6 @@ static struct hda_verb stac92hd73xx_10ch_core_init[] = {
};
};
static
struct
hda_verb
stac92hd83xxx_core_init
[]
=
{
static
struct
hda_verb
stac92hd83xxx_core_init
[]
=
{
/* start of config #1 */
{
0xe
,
AC_VERB_SET_CONNECT_SEL
,
0x3
},
/* start of config #2 */
{
0xa
,
AC_VERB_SET_CONNECT_SEL
,
0x0
},
{
0xa
,
AC_VERB_SET_CONNECT_SEL
,
0x0
},
{
0xb
,
AC_VERB_SET_CONNECT_SEL
,
0x0
},
{
0xb
,
AC_VERB_SET_CONNECT_SEL
,
0x0
},
{
0xd
,
AC_VERB_SET_CONNECT_SEL
,
0x1
},
{
0xd
,
AC_VERB_SET_CONNECT_SEL
,
0x1
},
...
@@ -4754,7 +4750,9 @@ static struct hda_input_mux stac92hd83xxx_dmux = {
...
@@ -4754,7 +4750,9 @@ static struct hda_input_mux stac92hd83xxx_dmux = {
static
int
patch_stac92hd83xxx
(
struct
hda_codec
*
codec
)
static
int
patch_stac92hd83xxx
(
struct
hda_codec
*
codec
)
{
{
struct
sigmatel_spec
*
spec
;
struct
sigmatel_spec
*
spec
;
hda_nid_t
conn
[
STAC92HD83_DAC_COUNT
+
1
];
int
err
;
int
err
;
int
num_dacs
;
spec
=
kzalloc
(
sizeof
(
*
spec
),
GFP_KERNEL
);
spec
=
kzalloc
(
sizeof
(
*
spec
),
GFP_KERNEL
);
if
(
spec
==
NULL
)
if
(
spec
==
NULL
)
...
@@ -4773,13 +4771,21 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
...
@@ -4773,13 +4771,21 @@ static int patch_stac92hd83xxx(struct hda_codec *codec)
spec
->
num_pwrs
=
ARRAY_SIZE
(
stac92hd83xxx_pwr_nids
);
spec
->
num_pwrs
=
ARRAY_SIZE
(
stac92hd83xxx_pwr_nids
);
spec
->
multiout
.
dac_nids
=
spec
->
dac_nids
;
spec
->
multiout
.
dac_nids
=
spec
->
dac_nids
;
/* set port 0xe to select the last DAC
*/
num_dacs
=
snd_hda_get_connections
(
codec
,
0x0e
,
conn
,
STAC92HD83_DAC_COUNT
+
1
)
-
1
;
snd_hda_codec_write_cache
(
codec
,
0xe
,
0
,
AC_VERB_SET_CONNECT_SEL
,
num_dacs
);
spec
->
init
=
stac92hd83xxx_core_init
;
spec
->
init
=
stac92hd83xxx_core_init
;
switch
(
codec
->
vendor_id
)
{
switch
(
codec
->
vendor_id
)
{
case
0x111d7605
:
case
0x111d7605
:
break
;
break
;
default:
default:
spec
->
num_pwrs
--
;
spec
->
num_pwrs
--
;
spec
->
init
++
;
/* switch to config #2 */
}
}
spec
->
mixer
=
stac92hd83xxx_mixer
;
spec
->
mixer
=
stac92hd83xxx_mixer
;
...
...
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