Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

virtio sound hard lock logs #96

Draft
wants to merge 1 commit into
base: celadon/u/mr0/master
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion sound/virtio/virtio_pcm_ops.c
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ static int virtsnd_pcm_trigger(struct snd_pcm_substream *substream, int command)
case SNDRV_PCM_TRIGGER_START:
case SNDRV_PCM_TRIGGER_PAUSE_RELEASE:
queue = virtsnd_pcm_queue(vss);

printk("virtsnd_pcm_trigger, start \n");
spin_lock_irqsave(&queue->lock, flags);
spin_lock(&vss->lock);
if (vss->direction == SNDRV_PCM_STREAM_CAPTURE)
Expand All @@ -343,6 +343,7 @@ static int virtsnd_pcm_trigger(struct snd_pcm_substream *substream, int command)
vss->xfer_enabled = true;
spin_unlock(&vss->lock);
spin_unlock_irqrestore(&queue->lock, flags);
printk("virtsnd_pcm_trigger, finish \n");
if (rc)
return rc;

Expand Down
Loading