Skip to contentSkip to conversation

hda_intel: too quiet sound (regression)

DISCUSSION Jiri Slaby 3 participants 5 messages Jul 26, 2010 Sound

lore
Share & tools
lore
author
#1 lore raw
Quoted 9 lines · Jiri Slaby

Hi,

after I upgraded from 2.6.34-rc5-mm1 to 2.6.35-rc5-mm1 (there were other issues in between them), the sound from my soundcard is very very quiet.

alsa-info:
http://www.alsa-project.org/db/?f=dcadb29a2d5d047ecf5545792ac3239dc0c8c7f0

Any ideas?

I've just find out that whatever value 1-64 is set the Master control to via amixer, it plays still the same. So the mixer (Master volume) is somehow screwed up.

These two are the same volumes:

# amixer -D hw sset Master,0 64
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 64 [100%] [0.00dB] [on]
# amixer -D hw sset Master,0 1
Simple mixer control 'Master',0
  Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
  Playback channels: Mono
  Limits: Playback 0 - 64
  Mono: Playback 1 [2%] [-47.25dB] [on]

This turns sound off, indeed:
amixer -D hw sset Master,0 0
Simple mixer control 'Master',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum Playback channels: Mono
Limits: Playback 0 - 64
Mono: Playback 0 [0%] [-48.00dB] [on]

regards,

Signature · 1 line
js
#2 lore raw
In reply to Jiri Slaby

At Mon, 26 Jul 2010 16:42:34 +0200,

Quoted 10 lines · Jiri Slaby

Hi,

after I upgraded from 2.6.34-rc5-mm1 to 2.6.35-rc5-mm1 (there were other issues in between them), the sound from my soundcard is very very quiet.

alsa-info:
http://www.alsa-project.org/db/?f=dcadb29a2d5d047ecf5545792ac3239dc0c8c7f0

Any ideas?

Looks like a regression by the amp max value check. The following patch should fix the problem.

thanks,

Takashi

---

Quoted 1 line

From 7ccc3eface57b6e1773fce009dac8a3da081b8b1 Mon Sep 17 00:00:00 2001

From: Takashi Iwai <[email protected]>
Date: Mon, 26 Jul 2010 17:00:15 +0200
Subject: [PATCH] ALSA: hda - Fix max amp cap calculation for IDT/STAC codecs

The commit afbd9b8448f4b7d15673c6858012f384f18d28b8
ALSA: hda - Limit the amp value to write
introduced a regression for codec setups with amp offsets like IDT/STAC codecs. The limit value should be a raw value without offset calculation.

---
 sound/pci/hda/hda_codec.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
sound/pci/hda/hda_codec.c +2 -1
index 501cbc4..e5c3484 100644
@@ -1629,7 +1629,8 @@ update_amp_value(struct hda_codec *codec, hda_nid_t nid,
 
 	if (val > 0)
 		val += ofs;
-	maxval = get_amp_max_value(codec, nid, dir, ofs);
+	/* ofs = 0: raw max value */
+	maxval = get_amp_max_value(codec, nid, dir, 0);
 	if (val > maxval)
 		val = maxval;
 	return snd_hda_codec_amp_update(codec, nid, ch, dir, idx,
Signature · 1 line
1.7.2
author Tested-by
#3 lore raw
Quoted 2 lines · Takashi Iwai

Looks like a regression by the amp max value check. The following patch should fix the problem.

Works for me.

Quoted 6 lines

---
From 7ccc3eface57b6e1773fce009dac8a3da081b8b1 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Mon, 26 Jul 2010 17:00:15 +0200
Subject: [PATCH] ALSA: hda - Fix max amp cap calculation for IDT/STAC codecs

Quoted 6 lines

The commit afbd9b8448f4b7d15673c6858012f384f18d28b8
ALSA: hda - Limit the amp value to write
introduced a regression for codec setups with amp offsets like IDT/STAC codecs. The limit value should be a raw value without offset calculation.

thanks,

Signature · 1 line
js
#4 lore raw
In reply to Takashi Iwai
Quoted 9 lines · Takashi Iwai
Quoted 7 lines · Jiri Slaby

after I upgraded from 2.6.34-rc5-mm1 to 2.6.35-rc5-mm1 (there were other issues in between them), the sound from my soundcard is very very quiet.

alsa-info:
http://www.alsa-project.org/db/?f=dcadb29a2d5d047ecf5545792ac3239dc0c8c7f0

Any ideas?

Quoted 8 lines

Looks like a regression by the amp max value check. The following patch should fix the problem.

---
From 7ccc3eface57b6e1773fce009dac8a3da081b8b1 Mon Sep 17 00:00:00 2001
From: Takashi Iwai <[email protected]>
Date: Mon, 26 Jul 2010 17:00:15 +0200
Subject: [PATCH] ALSA: hda - Fix max amp cap calculation for IDT/STAC codecs

Confirming - I saw the same issue but didn't get a chance to track it down. This patch fixes it. Feel free to stick a Tested-By: on it on its way upstream...

_______________________________________________
Alsa-devel mailing list
[email protected]
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel