mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-26 18:30:54 +07:00
Merge branch 'topic/asoc' into for-linus
This commit is contained in:
commit
e50a96e7c2
@ -659,6 +659,7 @@ static int ak4535_remove(struct platform_device *pdev)
|
|||||||
snd_soc_free_pcms(socdev);
|
snd_soc_free_pcms(socdev);
|
||||||
snd_soc_dapm_free(socdev);
|
snd_soc_dapm_free(socdev);
|
||||||
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
|
#if defined(CONFIG_I2C) || defined(CONFIG_I2C_MODULE)
|
||||||
|
if (codec->control_data)
|
||||||
i2c_unregister_device(codec->control_data);
|
i2c_unregister_device(codec->control_data);
|
||||||
i2c_del_driver(&ak4535_i2c_driver);
|
i2c_del_driver(&ak4535_i2c_driver);
|
||||||
#endif
|
#endif
|
||||||
|
@ -300,7 +300,7 @@ static int fsl_dma_new(struct snd_card *card, struct snd_soc_dai *dai,
|
|||||||
if (!card->dev->coherent_dma_mask)
|
if (!card->dev->coherent_dma_mask)
|
||||||
card->dev->coherent_dma_mask = fsl_dma_dmamask;
|
card->dev->coherent_dma_mask = fsl_dma_dmamask;
|
||||||
|
|
||||||
ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->dev,
|
ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, card->dev,
|
||||||
fsl_dma_hardware.buffer_bytes_max,
|
fsl_dma_hardware.buffer_bytes_max,
|
||||||
&pcm->streams[0].substream->dma_buffer);
|
&pcm->streams[0].substream->dma_buffer);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
@ -310,7 +310,7 @@ static int fsl_dma_new(struct snd_card *card, struct snd_soc_dai *dai,
|
|||||||
return -ENOMEM;
|
return -ENOMEM;
|
||||||
}
|
}
|
||||||
|
|
||||||
ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, pcm->dev,
|
ret = snd_dma_alloc_pages(SNDRV_DMA_TYPE_DEV, card->dev,
|
||||||
fsl_dma_hardware.buffer_bytes_max,
|
fsl_dma_hardware.buffer_bytes_max,
|
||||||
&pcm->streams[1].substream->dma_buffer);
|
&pcm->streams[1].substream->dma_buffer);
|
||||||
if (ret) {
|
if (ret) {
|
||||||
@ -418,7 +418,7 @@ static int fsl_dma_open(struct snd_pcm_substream *substream)
|
|||||||
return -EBUSY;
|
return -EBUSY;
|
||||||
}
|
}
|
||||||
|
|
||||||
dma_private = dma_alloc_coherent(substream->pcm->dev,
|
dma_private = dma_alloc_coherent(substream->pcm->card->dev,
|
||||||
sizeof(struct fsl_dma_private), &ld_buf_phys, GFP_KERNEL);
|
sizeof(struct fsl_dma_private), &ld_buf_phys, GFP_KERNEL);
|
||||||
if (!dma_private) {
|
if (!dma_private) {
|
||||||
dev_err(substream->pcm->card->dev,
|
dev_err(substream->pcm->card->dev,
|
||||||
@ -445,7 +445,7 @@ static int fsl_dma_open(struct snd_pcm_substream *substream)
|
|||||||
dev_err(substream->pcm->card->dev,
|
dev_err(substream->pcm->card->dev,
|
||||||
"can't register ISR for IRQ %u (ret=%i)\n",
|
"can't register ISR for IRQ %u (ret=%i)\n",
|
||||||
dma_private->irq, ret);
|
dma_private->irq, ret);
|
||||||
dma_free_coherent(substream->pcm->dev,
|
dma_free_coherent(substream->pcm->card->dev,
|
||||||
sizeof(struct fsl_dma_private),
|
sizeof(struct fsl_dma_private),
|
||||||
dma_private, dma_private->ld_buf_phys);
|
dma_private, dma_private->ld_buf_phys);
|
||||||
return ret;
|
return ret;
|
||||||
@ -778,13 +778,13 @@ static int fsl_dma_close(struct snd_pcm_substream *substream)
|
|||||||
free_irq(dma_private->irq, dma_private);
|
free_irq(dma_private->irq, dma_private);
|
||||||
|
|
||||||
if (dma_private->ld_buf_phys) {
|
if (dma_private->ld_buf_phys) {
|
||||||
dma_unmap_single(substream->pcm->dev,
|
dma_unmap_single(substream->pcm->card->dev,
|
||||||
dma_private->ld_buf_phys,
|
dma_private->ld_buf_phys,
|
||||||
sizeof(dma_private->link), DMA_TO_DEVICE);
|
sizeof(dma_private->link), DMA_TO_DEVICE);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Deallocate the fsl_dma_private structure */
|
/* Deallocate the fsl_dma_private structure */
|
||||||
dma_free_coherent(substream->pcm->dev,
|
dma_free_coherent(substream->pcm->card->dev,
|
||||||
sizeof(struct fsl_dma_private),
|
sizeof(struct fsl_dma_private),
|
||||||
dma_private, dma_private->ld_buf_phys);
|
dma_private, dma_private->ld_buf_phys);
|
||||||
substream->runtime->private_data = NULL;
|
substream->runtime->private_data = NULL;
|
||||||
|
Loading…
Reference in New Issue
Block a user