Commit dae15a9d authored by Takashi Iwai's avatar Takashi Iwai

ALSA: x86: Move dma_mask debug print into intel_hdmi_lpe_audio.c

It belongs to the right place.

And, remove a few sanity checks (e.g. NULL card) and debug prints as
well.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent 0e18060f
...@@ -1600,8 +1600,6 @@ int hdmi_audio_probe(struct platform_device *devptr, ...@@ -1600,8 +1600,6 @@ int hdmi_audio_probe(struct platform_device *devptr,
pr_debug("Enter %s\n", __func__); pr_debug("Enter %s\n", __func__);
pr_debug("hdmi_audio_probe dma_mask: %p\n", devptr->dev.dma_mask);
/* allocate memory for saving internal context and working */ /* allocate memory for saving internal context and working */
intelhaddata = kzalloc(sizeof(*intelhaddata), GFP_KERNEL); intelhaddata = kzalloc(sizeof(*intelhaddata), GFP_KERNEL);
if (!intelhaddata) if (!intelhaddata)
...@@ -1653,15 +1651,6 @@ int hdmi_audio_probe(struct platform_device *devptr, ...@@ -1653,15 +1651,6 @@ int hdmi_audio_probe(struct platform_device *devptr,
retval = snd_pcm_lib_preallocate_pages_for_all(pcm, retval = snd_pcm_lib_preallocate_pages_for_all(pcm,
SNDRV_DMA_TYPE_DEV, NULL, SNDRV_DMA_TYPE_DEV, NULL,
HAD_MAX_BUFFER, HAD_MAX_BUFFER); HAD_MAX_BUFFER, HAD_MAX_BUFFER);
if (card->dev == NULL)
pr_debug("card->dev is NULL!!!!! Should not be this case\n");
else if (card->dev->dma_mask == NULL)
pr_debug("hdmi_audio_probe dma_mask is NULL!!!!!\n");
else
pr_debug("hdmi_audio_probe dma_mask is : %p\n",
card->dev->dma_mask);
if (retval) if (retval)
goto err; goto err;
......
...@@ -315,6 +315,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev) ...@@ -315,6 +315,7 @@ static int hdmi_lpe_audio_probe(struct platform_device *pdev)
}; };
dev_dbg(&pdev->dev, "Enter %s\n", __func__); dev_dbg(&pdev->dev, "Enter %s\n", __func__);
dev_dbg(&pdev->dev, "dma_mask: %p\n", pdev->dev.dma_mask);
/* get resources */ /* get resources */
irq = platform_get_irq(pdev, 0); irq = platform_get_irq(pdev, 0);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment