Ignore:
Timestamp:
Jul 24, 2021, 3:42:01 PM (4 years ago)
Author:
David Azarewicz
Message:

Merge in changes from uniaud32next branch.

Location:
GPL/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • GPL/trunk

  • GPL/trunk/alsa-kernel/pci/intel8x0.c

    r679 r689  
    358358        struct ac97_pcm *pcm;
    359359        int pcm_open_flag;
     360        unsigned int prepared:1;
    360361        unsigned int suspended: 1;
    361362};
     
    717718        int status, civ, i, step;
    718719        int ack = 0;
     720
     721        if (!(ichdev->prepared || chip->in_measurement) || ichdev->suspended)
     722                return;
    719723
    720724        spin_lock_irqsave(&chip->reg_lock, flags);
     
    908912                snd_ac97_pcm_close(ichdev->pcm);
    909913                ichdev->pcm_open_flag = 0;
     914                ichdev->prepared = 0;
    910915        }
    911916        err = snd_ac97_pcm_open(ichdev->pcm, params_rate(hw_params),
     
    929934                snd_ac97_pcm_close(ichdev->pcm);
    930935                ichdev->pcm_open_flag = 0;
     936                ichdev->prepared = 0;
    931937        }
    932938        return 0;
     
    10031009        }
    10041010        snd_intel8x0_setup_periods(chip, ichdev);
     1011        ichdev->prepared = 1;
    10051012        return 0;
    10061013}
Note: See TracChangeset for help on using the changeset viewer.