We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 222b1f0 commit 8dcfdf5Copy full SHA for 8dcfdf5
1 file changed
sound/soc/apple/macaudio.c
@@ -499,8 +499,12 @@ static int macaudio_fe_startup(struct snd_pcm_substream *substream)
499
500
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
501
struct macaudio_snd_data *ma = snd_soc_card_get_drvdata(rtd->card);
502
+ struct macaudio_link_props *props = &ma->link_props[rtd->dai_link->id];
503
int ret;
504
505
+ if (props->is_sense)
506
+ return 0;
507
+
508
/* The FEs must never have more channels than the hardware */
509
ret = snd_pcm_hw_constraint_minmax(substream->runtime,
510
SNDRV_PCM_HW_PARAM_CHANNELS, 0, ma->max_channels);
0 commit comments