* hda_intel: too quiet sound (regression) @ 2010-07-26 14:42 Jiri Slaby 2010-07-26 14:48 ` Jiri Slaby 2010-07-26 15:04 ` Takashi Iwai 0 siblings, 2 replies; 5+ messages in thread From: Jiri Slaby @ 2010-07-26 14:42 UTC (permalink / raw) To: alsa-devel; +Cc: Jaroslav Kysela, Takashi Iwai, fengguang.wu, LKML 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? thanks, -- js ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hda_intel: too quiet sound (regression) 2010-07-26 14:42 hda_intel: too quiet sound (regression) Jiri Slaby @ 2010-07-26 14:48 ` Jiri Slaby 2010-07-26 15:04 ` Takashi Iwai 1 sibling, 0 replies; 5+ messages in thread From: Jiri Slaby @ 2010-07-26 14:48 UTC (permalink / raw) To: alsa-devel; +Cc: Jaroslav Kysela, Takashi Iwai, fengguang.wu, LKML On 07/26/2010 04:42 PM, Jiri Slaby wrote: > 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, -- js ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hda_intel: too quiet sound (regression) 2010-07-26 14:42 hda_intel: too quiet sound (regression) Jiri Slaby 2010-07-26 14:48 ` Jiri Slaby @ 2010-07-26 15:04 ` Takashi Iwai 2010-07-26 16:09 ` Jiri Slaby 2010-07-26 18:40 ` Valdis.Kletnieks 1 sibling, 2 replies; 5+ messages in thread From: Takashi Iwai @ 2010-07-26 15:04 UTC (permalink / raw) To: Jiri Slaby; +Cc: alsa-devel, Jaroslav Kysela, fengguang.wu, LKML At Mon, 26 Jul 2010 16:42:34 +0200, Jiri Slaby wrote: > > 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 --- >From 7ccc3eface57b6e1773fce009dac8a3da081b8b1 Mon Sep 17 00:00:00 2001 From: Takashi Iwai <tiwai@suse.de> 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. Signed-off-by: Takashi Iwai <tiwai@suse.de> --- sound/pci/hda/hda_codec.c | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/sound/pci/hda/hda_codec.c b/sound/pci/hda/hda_codec.c index 501cbc4..e5c3484 100644 --- a/sound/pci/hda/hda_codec.c +++ b/sound/pci/hda/hda_codec.c @@ -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, -- 1.7.2 ^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: hda_intel: too quiet sound (regression) 2010-07-26 15:04 ` Takashi Iwai @ 2010-07-26 16:09 ` Jiri Slaby 2010-07-26 18:40 ` Valdis.Kletnieks 1 sibling, 0 replies; 5+ messages in thread From: Jiri Slaby @ 2010-07-26 16:09 UTC (permalink / raw) To: Takashi Iwai; +Cc: alsa-devel, Jaroslav Kysela, fengguang.wu, LKML On 07/26/2010 05:04 PM, Takashi Iwai wrote: > Looks like a regression by the amp max value check. > The following patch should fix the problem. Works for me. > --- > From 7ccc3eface57b6e1773fce009dac8a3da081b8b1 Mon Sep 17 00:00:00 2001 > From: Takashi Iwai <tiwai@suse.de> > 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. > > Signed-off-by: Takashi Iwai <tiwai@suse.de> Tested-by: Jiri Slaby <jirislaby@gmail.com> thanks, -- js ^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: hda_intel: too quiet sound (regression) 2010-07-26 15:04 ` Takashi Iwai 2010-07-26 16:09 ` Jiri Slaby @ 2010-07-26 18:40 ` Valdis.Kletnieks 1 sibling, 0 replies; 5+ messages in thread From: Valdis.Kletnieks @ 2010-07-26 18:40 UTC (permalink / raw) To: Takashi Iwai; +Cc: Jiri Slaby, alsa-devel, Jaroslav Kysela, fengguang.wu, LKML [-- Attachment #1: Type: text/plain, Size: 882 bytes --] On Mon, 26 Jul 2010 17:04:43 +0200, Takashi Iwai said: > At Mon, 26 Jul 2010 16:42:34 +0200, Jiri Slaby wrote: > > 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. > --- > From 7ccc3eface57b6e1773fce009dac8a3da081b8b1 Mon Sep 17 00:00:00 2001 > From: Takashi Iwai <tiwai@suse.de> > 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... [-- Attachment #2: Type: application/pgp-signature, Size: 227 bytes --] ^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2010-07-26 18:40 UTC | newest] Thread overview: 5+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2010-07-26 14:42 hda_intel: too quiet sound (regression) Jiri Slaby 2010-07-26 14:48 ` Jiri Slaby 2010-07-26 15:04 ` Takashi Iwai 2010-07-26 16:09 ` Jiri Slaby 2010-07-26 18:40 ` Valdis.Kletnieks
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox