Changeset 685 for GPL/branches/uniaud32-next/alsa-kernel/pci/intel8x0.c
- Timestamp:
- May 27, 2021, 12:02:50 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/alsa-kernel/pci/intel8x0.c
r629 r685 358 358 struct ac97_pcm *pcm; 359 359 int pcm_open_flag; 360 unsigned int prepared:1; 360 361 unsigned int suspended: 1; 361 362 }; … … 717 718 int status, civ, i, step; 718 719 int ack = 0; 720 721 if (!ichdev->prepared || ichdev->suspended) 722 return; 719 723 720 724 spin_lock_irqsave(&chip->reg_lock, flags); … … 908 912 snd_ac97_pcm_close(ichdev->pcm); 909 913 ichdev->pcm_open_flag = 0; 914 ichdev->prepared = 0; 910 915 } 911 916 err = snd_ac97_pcm_open(ichdev->pcm, params_rate(hw_params), … … 929 934 snd_ac97_pcm_close(ichdev->pcm); 930 935 ichdev->pcm_open_flag = 0; 936 ichdev->prepared = 0; 931 937 } 932 938 return 0; … … 1003 1009 } 1004 1010 snd_intel8x0_setup_periods(chip, ichdev); 1011 ichdev->prepared = 1; 1005 1012 return 0; 1006 1013 }
Note:
See TracChangeset
for help on using the changeset viewer.