@@ -418,15 +418,15 @@ static __poll_t snd_compr_poll(struct file *f, poll_table *wait)
418
418
419
419
guard (mutex )(& stream -> device -> lock );
420
420
421
- switch (stream -> runtime -> state ) {
421
+ switch (runtime -> state ) {
422
422
case SNDRV_PCM_STATE_OPEN :
423
423
case SNDRV_PCM_STATE_XRUN :
424
424
return snd_compr_get_poll (stream ) | EPOLLERR ;
425
425
default :
426
426
break ;
427
427
}
428
428
429
- poll_wait (f , & stream -> runtime -> sleep , wait );
429
+ poll_wait (f , & runtime -> sleep , wait );
430
430
431
431
#if IS_ENABLED (CONFIG_SND_COMPRESS_ACCEL )
432
432
if (stream -> direction == SND_COMPRESS_ACCEL ) {
@@ -445,18 +445,18 @@ static __poll_t snd_compr_poll(struct file *f, poll_table *wait)
445
445
avail = snd_compr_get_avail (stream );
446
446
pr_debug ("avail is %ld\n" , (unsigned long )avail );
447
447
/* check if we have at least one fragment to fill */
448
- switch (stream -> runtime -> state ) {
448
+ switch (runtime -> state ) {
449
449
case SNDRV_PCM_STATE_DRAINING :
450
450
/* stream has been woken up after drain is complete
451
451
* draining done so set stream state to stopped
452
452
*/
453
453
retval = snd_compr_get_poll (stream );
454
- stream -> runtime -> state = SNDRV_PCM_STATE_SETUP ;
454
+ runtime -> state = SNDRV_PCM_STATE_SETUP ;
455
455
break ;
456
456
case SNDRV_PCM_STATE_RUNNING :
457
457
case SNDRV_PCM_STATE_PREPARED :
458
458
case SNDRV_PCM_STATE_PAUSED :
459
- if (avail >= stream -> runtime -> fragment_size )
459
+ if (avail >= runtime -> fragment_size )
460
460
retval = snd_compr_get_poll (stream );
461
461
break ;
462
462
default :
0 commit comments