New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 781320 link

Starred by 1 user

Issue metadata

Status: WontFix
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 1
Type: Bug



Sign in to add a comment

Audio playback broken

Project Member Reported by la...@chromium.org, Nov 3 2017

Issue description

On 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
 
Cc: dgreid@chromium.org
I don't see any similar bug reports; Dylan, have you heard of anything like this recently?

Comment 2 by la...@chromium.org, 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
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.

Cc: ka...@chromium.org
Components: -Internals>Media>Audio OS>Kernel>Audio
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!
Cc: wuchengli@chromium.org
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.
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
Status: WontFix (was: Untriaged)
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