[alsa-devel] Intel-HDA ALC262 (again)
![](https://secure.gravatar.com/avatar/78ca427d88b16967ec471f28bdbd53f0.jpg?s=120&d=mm&r=g)
Alas, I spoke too soon. The headphone jack and internal speakers work as expected, until I adjust the main volume (labeled in alsamixer as 'front') at which point both the internal speakers and headphones play!
Unplugging the headphones and reconnecting them makes everything OK again.
Any ideas? (patch against 2.6.22 that makes my chip mostly work is attached). I guess that alc262_hippo_automute() needs to be called somewhere it isn't, but I couldn't see where.
Thanks again! Andy
Yep, I'm happy to report that does indeed fix it! Thank-you Takashi! :) Andy.
At Wed, 25 Jul 2007 16:51:25 +0100 (BST), Andy wrote:
Hello again Takashi,
I put in some printks, and indeed the function
does
run and it correctly detects that there are no headphones present, but the speakers are not
unmuted.
(the 'mute' variable both times is reported as
being
0x80 after it is set with snd_hda_codec_amp_read)
Ah, it means that this intiailization gets called before restoring the mixer elements. Since sony model doesn't have the mixer element for the NID 0x14 that is linked with 0x15, 0x14 isn't restored properly in the end.
How about the patch below? It's a bit too ad hoc, but better than buggy.
___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
![](https://secure.gravatar.com/avatar/5b19e9d0e834ea10ef75803718ad564b.jpg?s=120&d=mm&r=g)
At Wed, 22 Aug 2007 20:59:36 +0100 (BST), Andy wrote:
Alas, I spoke too soon. The headphone jack and internal speakers work as expected, until I adjust the main volume (labeled in alsamixer as 'front') at which point both the internal speakers and headphones play!
Unplugging the headphones and reconnecting them makes everything OK again.
Any ideas? (patch against 2.6.22 that makes my chip mostly work is attached). I guess that alc262_hippo_automute() needs to be called somewhere it isn't, but I couldn't see where.
Ah, that's because the front (actually it should be master) control changes the both AMP values. It should change only the HP amp and call alc262_hippo_automute() appropriately.
I'll fix this later.
thanks,
Takashi
![](https://secure.gravatar.com/avatar/5b19e9d0e834ea10ef75803718ad564b.jpg?s=120&d=mm&r=g)
At Thu, 23 Aug 2007 00:03:18 +0200, I wrote:
At Wed, 22 Aug 2007 20:59:36 +0100 (BST), Andy wrote:
Alas, I spoke too soon. The headphone jack and internal speakers work as expected, until I adjust the main volume (labeled in alsamixer as 'front') at which point both the internal speakers and headphones play!
Unplugging the headphones and reconnecting them makes everything OK again.
Any ideas? (patch against 2.6.22 that makes my chip mostly work is attached). I guess that alc262_hippo_automute() needs to be called somewhere it isn't, but I couldn't see where.
Ah, that's because the front (actually it should be master) control changes the both AMP values. It should change only the HP amp and call alc262_hippo_automute() appropriately.
I'll fix this later.
... and committed to HG tree. Please give it a try.
Takashi
![](https://secure.gravatar.com/avatar/78ca427d88b16967ec471f28bdbd53f0.jpg?s=120&d=mm&r=g)
Hello Takashi,
I can confirm that this is now working as expected. I have a 'master' output instead of 'front', and adjusting the levels no longer re-enables the internal speakers.
Thanks very much! Andy.
--- Takashi Iwai tiwai@suse.de wrote:
At Thu, 23 Aug 2007 00:03:18 +0200, I wrote:
At Wed, 22 Aug 2007 20:59:36 +0100 (BST), Andy wrote:
Alas, I spoke too soon. The headphone jack and internal speakers work as expected, until I
adjust the
main volume (labeled in alsamixer as 'front') at
which
point both the internal speakers and headphones
play!
Unplugging the headphones and reconnecting them
makes
everything OK again.
Any ideas? (patch against 2.6.22 that makes my
chip
mostly work is attached). I guess that alc262_hippo_automute() needs to be called
somewhere
it isn't, but I couldn't see where.
Ah, that's because the front (actually it should
be master) control
changes the both AMP values. It should change
only the HP amp and
call alc262_hippo_automute() appropriately.
I'll fix this later.
... and committed to HG tree. Please give it a try.
Takashi _______________________________________________ Alsa-devel mailing list Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
___________________________________________________________ Yahoo! Answers - Got a question? Someone out there knows the answer. Try it now. http://uk.answers.yahoo.com/
participants (2)
-
Andy
-
Takashi Iwai