Re: [PATCH v2 2/3] ASoC: simple-card: move hp and mic detection to soc_card probe

From: Kuninori Morimoto
Date: Mon Jun 11 2018 - 01:43:27 EST



Hi Katsuhiro

> > > This patch moves headphone and microphone detection to probe() of
> > > snd_soc_card from init() of snd_soc_dai_link. This is because init()
> > > is called (and an input device /dev/input/eventX is created too)
> > > twice or above if simple card has two or more DAI links.
(snip)
> It seems if simple card has multiple DAI links, it creates multiple input
> devices.
>
> For example simple card has 3-links, 3 input devices /dev/input/event0,
> event1, event2 are created. Is it correct?

Oh, I see, fair enough.
I'm sorry, it was my English skill error.

Best regards
---
Kuninori Morimoto