diff options
Diffstat (limited to 'sound/pci/hda/patch_conexant.c')
-rw-r--r-- | sound/pci/hda/patch_conexant.c | 32 |
1 files changed, 16 insertions, 16 deletions
diff --git a/sound/pci/hda/patch_conexant.c b/sound/pci/hda/patch_conexant.c index 13a416060eb8..09d6d0db2b06 100644 --- a/sound/pci/hda/patch_conexant.c +++ b/sound/pci/hda/patch_conexant.c | |||
@@ -1900,7 +1900,8 @@ static void cxt5066_update_speaker(struct hda_codec *codec) | |||
1900 | struct conexant_spec *spec = codec->spec; | 1900 | struct conexant_spec *spec = codec->spec; |
1901 | unsigned int pinctl; | 1901 | unsigned int pinctl; |
1902 | 1902 | ||
1903 | snd_printdd("CXT5066: update speaker, hp_present=%d, cur_eapd=%d\n", | 1903 | codec_dbg(codec, |
1904 | "CXT5066: update speaker, hp_present=%d, cur_eapd=%d\n", | ||
1904 | spec->hp_present, spec->cur_eapd); | 1905 | spec->hp_present, spec->cur_eapd); |
1905 | 1906 | ||
1906 | /* Port A (HP) */ | 1907 | /* Port A (HP) */ |
@@ -1969,10 +1970,10 @@ static void cxt5066_vostro_automic(struct hda_codec *codec) | |||
1969 | 1970 | ||
1970 | present = snd_hda_jack_detect(codec, 0x1a); | 1971 | present = snd_hda_jack_detect(codec, 0x1a); |
1971 | if (present) { | 1972 | if (present) { |
1972 | snd_printdd("CXT5066: external microphone detected\n"); | 1973 | codec_dbg(codec, "CXT5066: external microphone detected\n"); |
1973 | snd_hda_sequence_write(codec, ext_mic_present); | 1974 | snd_hda_sequence_write(codec, ext_mic_present); |
1974 | } else { | 1975 | } else { |
1975 | snd_printdd("CXT5066: external microphone absent\n"); | 1976 | codec_dbg(codec, "CXT5066: external microphone absent\n"); |
1976 | snd_hda_sequence_write(codec, ext_mic_absent); | 1977 | snd_hda_sequence_write(codec, ext_mic_absent); |
1977 | } | 1978 | } |
1978 | } | 1979 | } |
@@ -1997,10 +1998,10 @@ static void cxt5066_ideapad_automic(struct hda_codec *codec) | |||
1997 | 1998 | ||
1998 | present = snd_hda_jack_detect(codec, 0x1b); | 1999 | present = snd_hda_jack_detect(codec, 0x1b); |
1999 | if (present) { | 2000 | if (present) { |
2000 | snd_printdd("CXT5066: external microphone detected\n"); | 2001 | codec_dbg(codec, "CXT5066: external microphone detected\n"); |
2001 | snd_hda_sequence_write(codec, ext_mic_present); | 2002 | snd_hda_sequence_write(codec, ext_mic_present); |
2002 | } else { | 2003 | } else { |
2003 | snd_printdd("CXT5066: external microphone absent\n"); | 2004 | codec_dbg(codec, "CXT5066: external microphone absent\n"); |
2004 | snd_hda_sequence_write(codec, ext_mic_absent); | 2005 | snd_hda_sequence_write(codec, ext_mic_absent); |
2005 | } | 2006 | } |
2006 | } | 2007 | } |
@@ -2012,7 +2013,7 @@ static void cxt5066_asus_automic(struct hda_codec *codec) | |||
2012 | unsigned int present; | 2013 | unsigned int present; |
2013 | 2014 | ||
2014 | present = snd_hda_jack_detect(codec, 0x1b); | 2015 | present = snd_hda_jack_detect(codec, 0x1b); |
2015 | snd_printdd("CXT5066: external microphone present=%d\n", present); | 2016 | codec_dbg(codec, "CXT5066: external microphone present=%d\n", present); |
2016 | snd_hda_codec_write(codec, 0x17, 0, AC_VERB_SET_CONNECT_SEL, | 2017 | snd_hda_codec_write(codec, 0x17, 0, AC_VERB_SET_CONNECT_SEL, |
2017 | present ? 1 : 0); | 2018 | present ? 1 : 0); |
2018 | } | 2019 | } |
@@ -2024,7 +2025,7 @@ static void cxt5066_hp_laptop_automic(struct hda_codec *codec) | |||
2024 | unsigned int present; | 2025 | unsigned int present; |
2025 | 2026 | ||
2026 | present = snd_hda_jack_detect(codec, 0x1b); | 2027 | present = snd_hda_jack_detect(codec, 0x1b); |
2027 | snd_printdd("CXT5066: external microphone present=%d\n", present); | 2028 | codec_dbg(codec, "CXT5066: external microphone present=%d\n", present); |
2028 | snd_hda_codec_write(codec, 0x17, 0, AC_VERB_SET_CONNECT_SEL, | 2029 | snd_hda_codec_write(codec, 0x17, 0, AC_VERB_SET_CONNECT_SEL, |
2029 | present ? 1 : 3); | 2030 | present ? 1 : 3); |
2030 | } | 2031 | } |
@@ -2063,13 +2064,13 @@ static void cxt5066_thinkpad_automic(struct hda_codec *codec) | |||
2063 | ext_present = snd_hda_jack_detect(codec, 0x1b); | 2064 | ext_present = snd_hda_jack_detect(codec, 0x1b); |
2064 | dock_present = snd_hda_jack_detect(codec, 0x1a); | 2065 | dock_present = snd_hda_jack_detect(codec, 0x1a); |
2065 | if (ext_present) { | 2066 | if (ext_present) { |
2066 | snd_printdd("CXT5066: external microphone detected\n"); | 2067 | codec_dbg(codec, "CXT5066: external microphone detected\n"); |
2067 | snd_hda_sequence_write(codec, ext_mic_present); | 2068 | snd_hda_sequence_write(codec, ext_mic_present); |
2068 | } else if (dock_present) { | 2069 | } else if (dock_present) { |
2069 | snd_printdd("CXT5066: dock microphone detected\n"); | 2070 | codec_dbg(codec, "CXT5066: dock microphone detected\n"); |
2070 | snd_hda_sequence_write(codec, dock_mic_present); | 2071 | snd_hda_sequence_write(codec, dock_mic_present); |
2071 | } else { | 2072 | } else { |
2072 | snd_printdd("CXT5066: external microphone absent\n"); | 2073 | codec_dbg(codec, "CXT5066: external microphone absent\n"); |
2073 | snd_hda_sequence_write(codec, ext_mic_absent); | 2074 | snd_hda_sequence_write(codec, ext_mic_absent); |
2074 | } | 2075 | } |
2075 | } | 2076 | } |
@@ -2088,7 +2089,7 @@ static void cxt5066_hp_automute(struct hda_codec *codec) | |||
2088 | 2089 | ||
2089 | spec->hp_present = portA ? HP_PRESENT_PORT_A : 0; | 2090 | spec->hp_present = portA ? HP_PRESENT_PORT_A : 0; |
2090 | spec->hp_present |= portD ? HP_PRESENT_PORT_D : 0; | 2091 | spec->hp_present |= portD ? HP_PRESENT_PORT_D : 0; |
2091 | snd_printdd("CXT5066: hp automute portA=%x portD=%x present=%d\n", | 2092 | codec_dbg(codec, "CXT5066: hp automute portA=%x portD=%x present=%d\n", |
2092 | portA, portD, spec->hp_present); | 2093 | portA, portD, spec->hp_present); |
2093 | cxt5066_update_speaker(codec); | 2094 | cxt5066_update_speaker(codec); |
2094 | } | 2095 | } |
@@ -2113,7 +2114,7 @@ static void cxt5066_automic(struct hda_codec *codec) | |||
2113 | /* unsolicited event for jack sensing */ | 2114 | /* unsolicited event for jack sensing */ |
2114 | static void cxt5066_unsol_event(struct hda_codec *codec, unsigned int res) | 2115 | static void cxt5066_unsol_event(struct hda_codec *codec, unsigned int res) |
2115 | { | 2116 | { |
2116 | snd_printdd("CXT5066: unsol event %x (%x)\n", res, res >> 26); | 2117 | codec_dbg(codec, "CXT5066: unsol event %x (%x)\n", res, res >> 26); |
2117 | switch (res >> 26) { | 2118 | switch (res >> 26) { |
2118 | case CONEXANT_HP_EVENT: | 2119 | case CONEXANT_HP_EVENT: |
2119 | cxt5066_hp_automute(codec); | 2120 | cxt5066_hp_automute(codec); |
@@ -2509,7 +2510,7 @@ static const struct hda_verb cxt5066_init_verbs_hp_laptop[] = { | |||
2509 | /* initialize jack-sensing, too */ | 2510 | /* initialize jack-sensing, too */ |
2510 | static int cxt5066_init(struct hda_codec *codec) | 2511 | static int cxt5066_init(struct hda_codec *codec) |
2511 | { | 2512 | { |
2512 | snd_printdd("CXT5066: init\n"); | 2513 | codec_dbg(codec, "CXT5066: init\n"); |
2513 | conexant_init(codec); | 2514 | conexant_init(codec); |
2514 | if (codec->patch_ops.unsol_event) { | 2515 | if (codec->patch_ops.unsol_event) { |
2515 | cxt5066_hp_automute(codec); | 2516 | cxt5066_hp_automute(codec); |
@@ -3401,8 +3402,7 @@ static int patch_conexant_auto(struct hda_codec *codec) | |||
3401 | struct conexant_spec *spec; | 3402 | struct conexant_spec *spec; |
3402 | int err; | 3403 | int err; |
3403 | 3404 | ||
3404 | printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n", | 3405 | codec_info(codec, "%s: BIOS auto-probing.\n", codec->chip_name); |
3405 | codec->chip_name); | ||
3406 | 3406 | ||
3407 | spec = kzalloc(sizeof(*spec), GFP_KERNEL); | 3407 | spec = kzalloc(sizeof(*spec), GFP_KERNEL); |
3408 | if (!spec) | 3408 | if (!spec) |
@@ -3474,7 +3474,7 @@ static int patch_conexant_auto(struct hda_codec *codec) | |||
3474 | * Better to make reset, then. | 3474 | * Better to make reset, then. |
3475 | */ | 3475 | */ |
3476 | if (!codec->bus->sync_write) { | 3476 | if (!codec->bus->sync_write) { |
3477 | snd_printd("hda_codec: " | 3477 | codec_info(codec, |
3478 | "Enable sync_write for stable communication\n"); | 3478 | "Enable sync_write for stable communication\n"); |
3479 | codec->bus->sync_write = 1; | 3479 | codec->bus->sync_write = 1; |
3480 | codec->bus->allow_bus_reset = 1; | 3480 | codec->bus->allow_bus_reset = 1; |