diff mbox

[1/2] ALSA: hda - Print codec->chip_name in autoconfig

Message ID 1420638119-20885-1-git-send-email-david.henningsson@canonical.com (mailing list archive)
State Accepted
Commit 322b8af16f267a2bc027297ffa9b3b681325ed37
Headers show

Commit Message

David Henningsson Jan. 7, 2015, 1:41 p.m. UTC
This will help end users figure out what HDA codec they have.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
---
 sound/pci/hda/hda_auto_parser.c | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

Comments

Takashi Iwai Jan. 7, 2015, 2:58 p.m. UTC | #1
At Wed,  7 Jan 2015 14:41:58 +0100,
David Henningsson wrote:
> 
> This will help end users figure out what HDA codec they have.
> 
> Signed-off-by: David Henningsson <david.henningsson@canonical.com>

Applied, thanks.


Takashi

> ---
>  sound/pci/hda/hda_auto_parser.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c
> index 1ede822..6ec3775 100644
> --- a/sound/pci/hda/hda_auto_parser.c
> +++ b/sound/pci/hda/hda_auto_parser.c
> @@ -409,10 +409,10 @@ int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
>  	/*
>  	 * debug prints of the parsed results
>  	 */
> -	codec_info(codec, "autoconfig: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
> -		   cfg->line_outs, cfg->line_out_pins[0], cfg->line_out_pins[1],
> -		   cfg->line_out_pins[2], cfg->line_out_pins[3],
> -		   cfg->line_out_pins[4],
> +	codec_info(codec, "autoconfig for %s: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
> +		   codec->chip_name, cfg->line_outs, cfg->line_out_pins[0],
> +		   cfg->line_out_pins[1], cfg->line_out_pins[2],
> +		   cfg->line_out_pins[3], cfg->line_out_pins[4],
>  		   cfg->line_out_type == AUTO_PIN_HP_OUT ? "hp" :
>  		   (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT ?
>  		    "speaker" : "line"));
> -- 
> 1.9.1
>
diff mbox

Patch

diff --git a/sound/pci/hda/hda_auto_parser.c b/sound/pci/hda/hda_auto_parser.c
index 1ede822..6ec3775 100644
--- a/sound/pci/hda/hda_auto_parser.c
+++ b/sound/pci/hda/hda_auto_parser.c
@@ -409,10 +409,10 @@  int snd_hda_parse_pin_defcfg(struct hda_codec *codec,
 	/*
 	 * debug prints of the parsed results
 	 */
-	codec_info(codec, "autoconfig: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
-		   cfg->line_outs, cfg->line_out_pins[0], cfg->line_out_pins[1],
-		   cfg->line_out_pins[2], cfg->line_out_pins[3],
-		   cfg->line_out_pins[4],
+	codec_info(codec, "autoconfig for %s: line_outs=%d (0x%x/0x%x/0x%x/0x%x/0x%x) type:%s\n",
+		   codec->chip_name, cfg->line_outs, cfg->line_out_pins[0],
+		   cfg->line_out_pins[1], cfg->line_out_pins[2],
+		   cfg->line_out_pins[3], cfg->line_out_pins[4],
 		   cfg->line_out_type == AUTO_PIN_HP_OUT ? "hp" :
 		   (cfg->line_out_type == AUTO_PIN_SPEAKER_OUT ?
 		    "speaker" : "line"));