Audio playback broken |
||||
Issue descriptionOn CrOS 10094 (or earlier), audio does not work. Playback either does not start or (for video) plays without audio. Restarting cras immediately fixes this. Suspicious logging from /var/log/messages: 2017-11-03T10:03:01.430622-06:00 ERR cras_server[1578]: Could not get info for device: Speaker 2017-11-03T10:03:01.430639-06:00 ERR cras_server[1578]: Could not get info for device: Headphone [cras restarts several times here] 2017-11-03T11:21:26.139085-06:00 ERR cras_server[2722]: Requesting dbus name Connection ":1.33" is not allowed to own the service "org.chromium.cras" due to security policies in the configuration file This is on kahlee but similar symptoms have been seen on bigdaddy as well. Chrome 64.0.3257.0
,
Nov 3 2017
> Restarting cras immediately fixes this. This worked the first time. The second time I had to sign out/back in after restarting cras before playback started working
,
Nov 6 2017
I'm seeing something similar but restarting CrAS doesn't fix it. For Kahlee at least, issuing a cras_test_client --plug 6:1:0 magically makes playback start working. I haven't had time to debug on other platforms yet to see if it's similar there.
,
Nov 6 2017
This might be a regression. Note that in #0 "Restarting cras immediately fixes this.". Autotest can not catch this because it restarts cras in the beginning of the test. But for issue like #3, autotest should catch it. Kalin, could you please check whether this is issue on some platform only, or across different platforms ? Thanks!
,
Nov 6 2017
,
Nov 7 2017
What's the repro rate on bigdaddy? What's the version? If you can still repro, please submit a feedback report right after it fails on bigdaddy.
,
Nov 7 2017
The error messages in #0 suggests that snd_ctl_pcm_info fails: https://cs.corp.google.com/chromeos_public/src/third_party/adhd/cras/src/server/cras_alsa_card.c?type=cs&q=%22Could+not+get+info+for+device%22+package:%5Echromeos_public$&l=374 Restarting CRAS fix the issue just might be the fact that snd_ctl_pcm_info works after long time enough after boot. snd_ctl_pcm_info is the same call "aplay -l" use to list device. http://git.alsa-project.org/?p=alsa-utils.git;a=blob;f=aplay/aplay.c;h=e58e1bcbdd7e5c784b85df90f15ef41326d3f6dd;hb=HEAD#l295 so, you might be able to repro the issue with aplay -l early at boot. And after that you'll need to check why kernel fails to reply snd_ctl_pcm_info, that is, ioctl(hw->fd, SNDRV_CTL_IOCTL_PCM_INFO, info) https://chromium.googlesource.com/chromiumos/third_party/alsa-lib/+/e1c876a2f0df6c658a5ea0ddde14ee7201fd124b/src/control/control_hw.c#268
,
Nov 7 2017
I haven't been able to repro again on Bigdaddy so this might be an issue specific to Kahlee. I'll open an internal bug for that. |
||||
►
Sign in to add a comment |
||||
Comment 1 by jclinton@chromium.org
, Nov 3 2017