sound: pci: hda: fix compilation error
Krishna Reddy [Tue, 24 Sep 2013 21:10:31 +0000 (14:10 -0700)]
fix compilation error and warnings.

Change-Id: I3edc04b7677c23282bf21bfd20631d88ea660b29
Signed-off-by: Krishna Reddy <vdumpa@nvidia.com>
Reviewed-on: http://git-master/r/278501
Reviewed-by: Alex Waterman <alexw@nvidia.com>
(cherry picked from commit 16aec429bf803f63df02b6da4f8788cf69e12fa3)
Signed-off-by: Ajay Nandakumar <anandakumarm@nvidia.com>

sound/pci/hda/hda_intel.c

index acac101..6d088da 100644 (file)
@@ -2837,9 +2837,9 @@ azx_attach_pcm_stream(struct hda_bus *bus, struct hda_codec *codec,
                                err = (int)chip->sgt;
                                goto sgt_fail;
                        }
-                       chip->paddr = sg_dma_address(chip->sgt);
+                       chip->paddr = sg_dma_address(chip->sgt->sgl);
                        snd_printk(KERN_DEBUG SFX
-                         "paddr=%08x vaddr=%08x\n", chip->paddr, chip->vaddr);
+                         "paddr=%08llx vaddr=%p\n", chip->paddr, chip->vaddr);
                        substream->dma_buffer.area = chip->vaddr;
                        substream->dma_buffer.addr = chip->paddr;
                        substream->dma_buffer.bytes = size;