ASoC: simple-card-utils: Support configure pin_name for asoc_simple_init_jack
authorShengjiu Wang <shengjiu.wang@nxp.com>
Wed, 15 Jul 2020 14:09:37 +0000 (22:09 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 16 Jul 2020 22:24:12 +0000 (23:24 +0100)
commit764aafdb985b182bce0c91503e9233cb97a2f0d7
tree82bf54dc4c69255d221eb0027d7cdf35132d35d3
parenta3f6bf8e544ac5fbfe72a331343fb6264373d04d
ASoC: simple-card-utils: Support configure pin_name for asoc_simple_init_jack

Currently the pin_name is fixed in asoc_simple_init_jack, but some driver
may use a different pin_name. So add a new parameter in
asoc_simple_init_jack for configuring pin_name.

If this parameter is NULL, then the default pin_name is used.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Link: https://lore.kernel.org/r/1594822179-1849-2-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/simple_card_utils.h
sound/soc/generic/simple-card-utils.c