From: Jarkko Nikula Date: Fri, 20 May 2011 12:47:40 +0000 (+0300) Subject: ASoC: core: Don't set "(null)" as a driver name X-Git-Tag: v3.0-rc1~347^2~1^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b39535b9e54888649923beaab443af212b6c0fd;p=pandora-kernel.git 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 Acked-by: Liam Girdwood Signed-off-by: Mark Brown --- Reading git-diff-tree failed