Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 353276
b: refs/heads/master
c: 9a0869f
h: refs/heads/master
v: v3
  • Loading branch information
Takashi Iwai committed Feb 7, 2013
1 parent 16c432d commit b957dd2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 45acc86b2e47e255c4a6194dd69248a1bce71e48
refs/heads/master: 9a0869f4028916a164b1ba600e819c1dcd7c17a2
14 changes: 6 additions & 8 deletions trunk/sound/pci/hda/patch_ca0132.c
Original file line number Diff line number Diff line change
Expand Up @@ -3312,25 +3312,22 @@ static bool ca0132_is_vnode_effective(struct hda_codec *codec,
{
struct ca0132_spec *spec = codec->spec;
hda_nid_t nid;
bool effective = false;

switch (vnid) {
case VNID_SPK:
nid = spec->shared_out_nid;
effective = true;
break;
case VNID_MIC:
nid = spec->shared_mic_nid;
effective = true;
break;
default:
break;
return false;
}

if (effective && shared_nid)
if (shared_nid)
*shared_nid = nid;

return effective;
return true;
}

/*
Expand Down Expand Up @@ -4346,6 +4343,9 @@ static void ca0132_download_dsp(struct hda_codec *codec)
{
struct ca0132_spec *spec = codec->spec;

#ifndef CONFIG_SND_HDA_CODEC_CA0132_DSP
return; /* NOP */
#endif
spec->dsp_state = DSP_DOWNLOAD_INIT;

if (spec->dsp_state == DSP_DOWNLOAD_INIT) {
Expand Down Expand Up @@ -4530,9 +4530,7 @@ static int ca0132_init(struct hda_codec *codec)
ca0132_init_params(codec);
ca0132_init_flags(codec);
snd_hda_sequence_write(codec, spec->base_init_verbs);
#ifdef CONFIG_SND_HDA_CODEC_CA0132_DSP
ca0132_download_dsp(codec);
#endif
ca0132_refresh_widget_caps(codec);
ca0132_setup_defaults(codec);
ca0132_init_analog_mic2(codec);
Expand Down

0 comments on commit b957dd2

Please sign in to comment.