Skip to content

Commit 8dcfdf5

Browse files
povikjannau
authored andcommitted
ASoC: macaudio: Do not constrain sense PCM
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
1 parent 222b1f0 commit 8dcfdf5

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

sound/soc/apple/macaudio.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -499,8 +499,12 @@ static int macaudio_fe_startup(struct snd_pcm_substream *substream)
499499

500500
struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(substream);
501501
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];
502503
int ret;
503504

505+
if (props->is_sense)
506+
return 0;
507+
504508
/* The FEs must never have more channels than the hardware */
505509
ret = snd_pcm_hw_constraint_minmax(substream->runtime,
506510
SNDRV_PCM_HW_PARAM_CHANNELS, 0, ma->max_channels);

0 commit comments

Comments
 (0)