ASoC: cht_bsw_rt5645: Fix writing to string literal
authorCarlo Caione <carlo@endlessm.com>
Tue, 23 Feb 2016 08:50:20 +0000 (09:50 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 26 Feb 2016 02:11:47 +0000 (11:11 +0900)
commitc8560b7c917f8738f5d80dd516930edc1d05e4e4
treea7de5e31b7d139cc7b924dd4d751ddb7a579e168
parent65b4bcb82967fd5a60694c3477e58a04a9170aea
ASoC: cht_bsw_rt5645: Fix writing to string literal

We cannot use strcpy() to write to a const char * location. This is
causing a 'BUG: unable to handle kernel paging request' error at boot
when using the cht-bsw-rt5645 driver.

With this patch we also fix a wrong indexing in the driver where the
codec_name of the wrong dai_link is being overwritten.

Signed-off-by: Carlo Caione <carlo@endlessm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/cht_bsw_rt5645.c