mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 17:30:53 +07:00
ASoC: jack: create kctls according to jack pins info
Jack kctls are now created according to the pin info. Signed-off-by: Jie Yang <yang.jie@intel.com> Acked-by: Mark Brown <broonie@kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
This commit is contained in:
parent
2ba2dfa1fc
commit
f63e8581e2
@ -197,6 +197,7 @@ int snd_soc_jack_add_pins(struct snd_soc_jack *jack, int count,
|
|||||||
|
|
||||||
INIT_LIST_HEAD(&pins[i].list);
|
INIT_LIST_HEAD(&pins[i].list);
|
||||||
list_add(&(pins[i].list), &jack->pins);
|
list_add(&(pins[i].list), &jack->pins);
|
||||||
|
snd_jack_add_new_kctl(jack->jack, pins[i].pin, pins[i].mask);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Update to reflect the last reported status; canned jack
|
/* Update to reflect the last reported status; canned jack
|
||||||
|
Loading…
Reference in New Issue
Block a user