@@ -239,7 +239,7 @@ static int pcm_capture_hw_params(struct snd_pcm_substream *substream,
239
239
struct snd_oxfw * oxfw = substream -> private_data ;
240
240
int err = 0 ;
241
241
242
- if (substream -> runtime -> status -> state == SNDRV_PCM_STATE_OPEN ) {
242
+ if (substream -> runtime -> state == SNDRV_PCM_STATE_OPEN ) {
243
243
unsigned int rate = params_rate (hw_params );
244
244
unsigned int channels = params_channels (hw_params );
245
245
unsigned int frames_per_period = params_period_size (hw_params );
@@ -262,7 +262,7 @@ static int pcm_playback_hw_params(struct snd_pcm_substream *substream,
262
262
struct snd_oxfw * oxfw = substream -> private_data ;
263
263
int err = 0 ;
264
264
265
- if (substream -> runtime -> status -> state == SNDRV_PCM_STATE_OPEN ) {
265
+ if (substream -> runtime -> state == SNDRV_PCM_STATE_OPEN ) {
266
266
unsigned int rate = params_rate (hw_params );
267
267
unsigned int channels = params_channels (hw_params );
268
268
unsigned int frames_per_period = params_period_size (hw_params );
@@ -286,7 +286,7 @@ static int pcm_capture_hw_free(struct snd_pcm_substream *substream)
286
286
287
287
mutex_lock (& oxfw -> mutex );
288
288
289
- if (substream -> runtime -> status -> state != SNDRV_PCM_STATE_OPEN )
289
+ if (substream -> runtime -> state != SNDRV_PCM_STATE_OPEN )
290
290
-- oxfw -> substreams_count ;
291
291
292
292
snd_oxfw_stream_stop_duplex (oxfw );
@@ -301,7 +301,7 @@ static int pcm_playback_hw_free(struct snd_pcm_substream *substream)
301
301
302
302
mutex_lock (& oxfw -> mutex );
303
303
304
- if (substream -> runtime -> status -> state != SNDRV_PCM_STATE_OPEN )
304
+ if (substream -> runtime -> state != SNDRV_PCM_STATE_OPEN )
305
305
-- oxfw -> substreams_count ;
306
306
307
307
snd_oxfw_stream_stop_duplex (oxfw );
0 commit comments