mirror of https://gitee.com/openkylin/linux.git
ASoC: Fix continuation line formats
String constants that are continued on subsequent lines with \ are not good. Signed-off-by: Joe Perches <joe@perches.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
This commit is contained in:
parent
b058091379
commit
2f1ff6614c
|
@ -349,9 +349,7 @@ static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
|
||||||
sport_handle->tx_dma_buf = dma_alloc_coherent(NULL, \
|
sport_handle->tx_dma_buf = dma_alloc_coherent(NULL, \
|
||||||
size, &sport_handle->tx_dma_phy, GFP_KERNEL);
|
size, &sport_handle->tx_dma_phy, GFP_KERNEL);
|
||||||
if (!sport_handle->tx_dma_buf) {
|
if (!sport_handle->tx_dma_buf) {
|
||||||
pr_err("Failed to allocate memory for tx dma \
|
pr_err("Failed to allocate memory for tx dma buf - Please increase uncached DMA memory region\n");
|
||||||
buf - Please increase uncached DMA \
|
|
||||||
memory region\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
} else
|
} else
|
||||||
memset(sport_handle->tx_dma_buf, 0, size);
|
memset(sport_handle->tx_dma_buf, 0, size);
|
||||||
|
@ -362,9 +360,7 @@ static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
|
||||||
sport_handle->rx_dma_buf = dma_alloc_coherent(NULL, \
|
sport_handle->rx_dma_buf = dma_alloc_coherent(NULL, \
|
||||||
size, &sport_handle->rx_dma_phy, GFP_KERNEL);
|
size, &sport_handle->rx_dma_phy, GFP_KERNEL);
|
||||||
if (!sport_handle->rx_dma_buf) {
|
if (!sport_handle->rx_dma_buf) {
|
||||||
pr_err("Failed to allocate memory for rx dma \
|
pr_err("Failed to allocate memory for rx dma buf - Please increase uncached DMA memory region\n");
|
||||||
buf - Please increase uncached DMA \
|
|
||||||
memory region\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
} else
|
} else
|
||||||
memset(sport_handle->rx_dma_buf, 0, size);
|
memset(sport_handle->rx_dma_buf, 0, size);
|
||||||
|
|
|
@ -207,8 +207,7 @@ static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
|
||||||
buf->area = dma_alloc_coherent(pcm->card->dev, size,
|
buf->area = dma_alloc_coherent(pcm->card->dev, size,
|
||||||
&buf->addr, GFP_KERNEL);
|
&buf->addr, GFP_KERNEL);
|
||||||
if (!buf->area) {
|
if (!buf->area) {
|
||||||
pr_err("Failed to allocate dma memory \
|
pr_err("Failed to allocate dma memory - Please increase uncached DMA memory region\n");
|
||||||
Please increase uncached DMA memory region\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
buf->bytes = size;
|
buf->bytes = size;
|
||||||
|
|
|
@ -244,8 +244,7 @@ static int bf5xx_pcm_preallocate_dma_buffer(struct snd_pcm *pcm, int stream)
|
||||||
buf->area = dma_alloc_coherent(pcm->card->dev, size * 4,
|
buf->area = dma_alloc_coherent(pcm->card->dev, size * 4,
|
||||||
&buf->addr, GFP_KERNEL);
|
&buf->addr, GFP_KERNEL);
|
||||||
if (!buf->area) {
|
if (!buf->area) {
|
||||||
pr_err("Failed to allocate dma memory \
|
pr_err("Failed to allocate dma memory - Please increase uncached DMA memory region\n");
|
||||||
Please increase uncached DMA memory region\n");
|
|
||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
buf->bytes = size;
|
buf->bytes = size;
|
||||||
|
|
Loading…
Reference in New Issue