]> Git Repo - linux.git/commit
ASoC: core: Don't set "(null)" as a driver name
authorJarkko Nikula <[email protected]>
Fri, 20 May 2011 12:47:40 +0000 (15:47 +0300)
committerMark Brown <[email protected]>
Sun, 22 May 2011 02:31:11 +0000 (10:31 +0800)
commit2b39535b9e54888649923beaab443af212b6c0fd
tree0b4e42916a78e943a6ff15fc414f108fd9b1bfb5
parent0dfe8da4921fdae6b9c77e320731e490d4b15a99
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 <[email protected]>
Acked-by: Liam Girdwood <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
sound/soc/soc-core.c
This page took 0.052774 seconds and 4 git commands to generate.