From: Takashi Iwai <tiwai@suse.de>
To: Enrico Mioso <mrkiko.rs@gmail.com>
Cc: hui.wang@canonical.com, alsa-devel@alsa-project.org,
kailang@realtek.com, david.henningsson@canonical.com
Subject: Re: Intel HDA audio on EEE PC 1101HGo
Date: Sun, 12 Apr 2015 08:01:17 +0200 [thread overview]
Message-ID: <s5hvbh13mxe.wl-tiwai@suse.de> (raw)
In-Reply-To: <alpine.LNX.2.20.1504111011090.1174@localhost.localdomain>
At Sat, 11 Apr 2015 10:13:51 +0200 (CEST),
Enrico Mioso wrote:
>
> When I plug in the jack and the audio is going, sometimes the audio will go to
> the headphones and to the PC speakers.
It means that the unsol event hasn't been processed correctly. We
need to debug via trace points which verb triggers this, for example.
(See Documentation/sound/alsa/HD-Audio.txt.)
Usually when a communication stall happens it reports switching to
polling mode. This is already a suspect. The stall at powering down
to D3 is known on some codecs / controllers, so this itself isn't too
serious. But if this happens at anything else, it needs more care.
> But stopping the audio and waiting for
> the controller to enter power save mode, and starting it again, solves the
> problem. But in my situation I had to ask the driver to reset the controller
> any time it exits power save:
> options snd_hda_intel power_save_controller=1 power_save=5
> so - I think the driver is not able to communicate properly with the device due
> to problems elsewhere, not of it's own. I would like so much to see what
> windows does in these cases. :)
Yes, it's very likely some communication error that makes the codec
hang. It's interesting that the controller power save fixes it. This
implies that the problem is rather in the controller side.
What if you set the following flags?
codec->bus->sync_write = 1;
codec->bus->allow_bus_reset = 1;
Takashi
> thank you guys for your work again - this intended to be an hilarious mail.
> Have a good weekend.
> Enrico
>
> I have CONFIG_SND_HDA_INPUT_JACK=y (I know it's uncorrelated).
> On Thu, 9 Apr 2015, Takashi Iwai wrote:
>
> ==Date: Thu, 9 Apr 2015 17:59:15
> ==From: Takashi Iwai <tiwai@suse.de>
> ==To: Enrico Mioso <mrkiko.rs@gmail.com>
> ==Cc: perex@perex.cz, hui.wang@canonical.com, david.henningsson@canonical.com,
> == kailang@realtek.com, alsa-devel@alsa-project.org
> ==Subject: Re: Intel HDA audio on EEE PC 1101HGo
> ==
> ==At Wed, 8 Apr 2015 21:40:53 +0200 (CEST),
> ==Enrico Mioso wrote:
> ==>
> ==> Hello guys.
> ==> I am writing to you all to talk you about a strange behaviour of the Intel HDA
> ==> Audio device on an EEE PC 1101H.
> ==> The audio device at some point simply doesn't react to commands, giving in
> ==> dmesgo utput like this:
> ==>
> ==> [22321.638079] snd_hda_intel 0000:00:1b.0: azx_get_response timeout, switching
> ==> to polling mode: last cmd=0x00170503
> ==> [22322.641410] snd_hda_intel 0000:00:1b.0: azx_get_response timeout, switching
> ==> to single_cmd mode: last cmd=0x00170503
> ==
> ==This looks already bad. It means that power down of the codec
> ==failed.
> ==
> ==But, the recent version should ignore this error. There was a logic
> ==failure to check this, but this was corrected recently.
> ==
> ==Could you check the latest 4.0-rc whether it works better?
> ==If not, take alsa-info.sh output snapshots at good and bad working
> ==moments. Run the script with --no-upload option, and attach the
> ==outputs (better compressed).
> ==
> ==
> ==Takashi
> ==
>
next prev parent reply other threads:[~2015-04-12 6:01 UTC|newest]
Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-04-08 19:40 Intel HDA audio on EEE PC 1101HGo Enrico Mioso
2015-04-08 20:25 ` Enrico Mioso
2015-04-09 15:59 ` Takashi Iwai
2015-04-09 16:02 ` Enrico Mioso
2015-04-09 20:02 ` Enrico Mioso
2015-04-11 8:13 ` Enrico Mioso
2015-04-12 6:01 ` Takashi Iwai [this message]
2015-04-13 20:25 ` Enrico Mioso
2016-11-22 13:09 ` Enrico Mioso
2016-11-22 15:55 ` Mrkiko Rs
2016-11-22 16:41 ` Enrico Mioso
2016-11-23 8:19 ` Enrico Mioso
2016-12-01 10:12 ` Takashi Iwai
2016-12-01 13:50 ` Enrico Mioso
2016-12-01 13:57 ` Takashi Iwai
2016-12-02 9:20 ` Enrico Mioso
2017-01-03 13:49 ` Enrico Mioso
2017-01-10 10:52 ` Takashi Iwai
2017-01-10 13:32 ` Enrico Mioso
2017-01-10 13:34 ` Enrico Mioso
2017-01-12 14:05 ` Enrico Mioso
2017-01-12 16:10 ` Enrico Mioso
2017-01-12 16:20 ` Takashi Iwai
2017-01-12 18:11 ` Enrico Mioso
2017-01-12 20:26 ` Enrico Mioso
2017-01-13 19:42 ` Enrico Mioso
2017-01-14 8:44 ` Takashi Iwai
2017-01-14 9:20 ` Enrico Mioso
2017-01-14 9:46 ` Takashi Iwai
2017-01-14 22:43 ` Enrico Mioso
2017-01-14 22:43 ` Enrico Mioso
2017-01-15 13:14 ` Enrico Mioso
2017-01-20 13:00 ` Enrico Mioso
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=s5hvbh13mxe.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=alsa-devel@alsa-project.org \
--cc=david.henningsson@canonical.com \
--cc=hui.wang@canonical.com \
--cc=kailang@realtek.com \
--cc=mrkiko.rs@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.