|
@@ -1680,7 +1680,7 @@ static void dpcm_init_runtime_hw(struct snd_pcm_runtime *runtime,
|
|
struct snd_soc_pcm_stream *stream)
|
|
struct snd_soc_pcm_stream *stream)
|
|
{
|
|
{
|
|
runtime->hw.rate_min = stream->rate_min;
|
|
runtime->hw.rate_min = stream->rate_min;
|
|
- runtime->hw.rate_max = stream->rate_max;
|
|
|
|
|
|
+ runtime->hw.rate_max = min_not_zero(stream->rate_max, UINT_MAX);
|
|
runtime->hw.channels_min = stream->channels_min;
|
|
runtime->hw.channels_min = stream->channels_min;
|
|
runtime->hw.channels_max = stream->channels_max;
|
|
runtime->hw.channels_max = stream->channels_max;
|
|
if (runtime->hw.formats)
|
|
if (runtime->hw.formats)
|