ALSA: hda - Call snd_pcm_lib_hw_rates() again after codec open callback
The PCM rates bit field may have been changed by the codec open callback. In that case, we need to reset rate_min and rate_max. So, simply call snd_pcm_lib_hw_rates() again after the codec open callback. Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
@@ -1454,6 +1454,7 @@ static int azx_pcm_open(struct snd_pcm_substream *substream)
|
|||||||
mutex_unlock(&chip->open_mutex);
|
mutex_unlock(&chip->open_mutex);
|
||||||
return err;
|
return err;
|
||||||
}
|
}
|
||||||
|
snd_pcm_limit_hw_rates(runtime);
|
||||||
spin_lock_irqsave(&chip->reg_lock, flags);
|
spin_lock_irqsave(&chip->reg_lock, flags);
|
||||||
azx_dev->substream = substream;
|
azx_dev->substream = substream;
|
||||||
azx_dev->running = 0;
|
azx_dev->running = 0;
|
||||||
|
Reference in New Issue
Block a user