mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2025-11-07 13:30:07 -05:00
pcm: dshare: Call snd_pcm_dshare_state() directly
... otherwise it may be a deadlock if recursive lock isn't available. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
eae572ef5e
commit
bb862e3bb1
1 changed files with 3 additions and 1 deletions
|
|
@ -227,6 +227,8 @@ static int snd_pcm_dshare_sync_ptr(snd_pcm_t *pcm)
|
|||
* plugin implementation
|
||||
*/
|
||||
|
||||
static snd_pcm_state_t snd_pcm_dshare_state(snd_pcm_t *pcm);
|
||||
|
||||
static int snd_pcm_dshare_status(snd_pcm_t *pcm, snd_pcm_status_t * status)
|
||||
{
|
||||
snd_pcm_direct_t *dshare = pcm->private_data;
|
||||
|
|
@ -244,7 +246,7 @@ static int snd_pcm_dshare_status(snd_pcm_t *pcm, snd_pcm_status_t * status)
|
|||
default:
|
||||
break;
|
||||
}
|
||||
status->state = snd_pcm_state(pcm);
|
||||
status->state = snd_pcm_dshare_state(pcm);
|
||||
status->trigger_tstamp = dshare->trigger_tstamp;
|
||||
status->avail = snd_pcm_mmap_playback_avail(pcm);
|
||||
status->avail_max = status->avail > dshare->avail_max ? status->avail : dshare->avail_max;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue