mirror of
https://github.com/torvalds/linux.git
synced 2026-05-31 10:33:41 +02:00
ASoC: qcom: x1e80100: set card driver name from match data
Sound machine drivers for Qualcomm SoCs can be reused across multiple SoCs. But user space ALSA UCM files depend on the card driver name which should be set per board/SoC. Allow such customization by using driver match data as sound card driver name. Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com> Message-ID: <20250902140044.54508-2-srinivas.kandagatla@oss.qualcomm.com> Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
3279052eab
commit
5ab26b8ca5
|
|
@ -210,14 +210,14 @@ static int x1e80100_platform_probe(struct platform_device *pdev)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
card->driver_name = "x1e80100";
|
||||
card->driver_name = of_device_get_match_data(dev);
|
||||
x1e80100_add_be_ops(card);
|
||||
|
||||
return devm_snd_soc_register_card(dev, card);
|
||||
}
|
||||
|
||||
static const struct of_device_id snd_x1e80100_dt_match[] = {
|
||||
{ .compatible = "qcom,x1e80100-sndcard", },
|
||||
{ .compatible = "qcom,x1e80100-sndcard", .data = "x1e80100" },
|
||||
{}
|
||||
};
|
||||
MODULE_DEVICE_TABLE(of, snd_x1e80100_dt_match);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user