diff options
author | Jarkko Nikula <jhnikula@gmail.com> | 2011-05-20 14:47:40 +0200 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2011-05-22 04:31:11 +0200 |
commit | 2b39535b9e54888649923beaab443af212b6c0fd (patch) | |
tree | 0b4e42916a78e943a6ff15fc414f108fd9b1bfb5 /sound/sparc/dbri.c | |
parent | ASoC: Tegra: Fix compile when debugfs not enabled (diff) | |
download | linux-2b39535b9e54888649923beaab443af212b6c0fd.tar.xz linux-2b39535b9e54888649923beaab443af212b6c0fd.zip |
ASoC: core: Don't set "(null)" as a driver name
Commit 22de71b ("ASoC: core - allow ASoC more flexible machine name")
writes "(null)" to driver name string in struct snd_card if card->driver_name
is NULL. This causes segmentation faults with some user space ALSA utilities
like aplay and arecord.
Fix this by using the card->name if no driver name is specified.
Signed-off-by: Jarkko Nikula <jhnikula@gmail.com>
Acked-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/sparc/dbri.c')
0 files changed, 0 insertions, 0 deletions