diff options
author | Tushar Behera <tushar.b@samsung.com> | 2014-07-04 14:22:59 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-04 20:31:45 +0100 |
commit | 00ad93e26375d974801886070738d0c7cf187fdf (patch) | |
tree | cbb949692ab0ff4799fff14651656fe53a6f2eef /sound/soc/samsung | |
parent | 46aed597527384b30a6d49bff1806f6b1ed1fd77 (diff) | |
download | linux-00ad93e26375d974801886070738d0c7cf187fdf.tar.gz linux-00ad93e26375d974801886070738d0c7cf187fdf.tar.bz2 linux-00ad93e26375d974801886070738d0c7cf187fdf.zip |
ASoC: samsung: Make card name for Snow configurable
Snow sound-card driver supports multiple boards with different
audio codecs. Updating the sound card name per board basis would provide
some more information to the end-user.
Signed-off-by: Tushar Behera <tushar.b@samsung.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r-- | sound/soc/samsung/snow.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sound/soc/samsung/snow.c b/sound/soc/samsung/snow.c index 8bbd348358dd..0acf5d0eed53 100644 --- a/sound/soc/samsung/snow.c +++ b/sound/soc/samsung/snow.c @@ -92,6 +92,9 @@ static int snow_probe(struct platform_device *pdev) card->dev = &pdev->dev; + /* Update card-name if provided through DT, else use default name */ + snd_soc_of_parse_card_name(card, "samsung,model"); + ret = devm_snd_soc_register_card(&pdev->dev, card); if (ret) { dev_err(&pdev->dev, "snd_soc_register_card failed (%d)\n", ret); |