sound: soc: fix compilation error on arm64.
authorsugar <sugar.zhang@rock-chips.com>
Thu, 20 Nov 2014 01:05:12 +0000 (09:05 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 20 Nov 2014 11:52:48 +0000 (19:52 +0800)
sound/soc/codecs/rt3261-dsp.c
sound/soc/codecs/rt3261_ioctl.c
sound/soc/codecs/rt5640_ioctl.c
sound/soc/codecs/rt56xx_ioctl.c
sound/soc/codecs/rt_codec_ioctl.c

index 875c402be3cecab696d556726a13ad172f63e1e4..e4468bd211d9727fa81c2636a556e5b157eef280 100644 (file)
@@ -1075,7 +1075,7 @@ static ssize_t dsp_reg_store(struct device *dev,
        unsigned int val=0,addr=0;
        int i;
 
-       printk("register \"%s\" count=%d\n",buf,count);
+       dev_dbg(codec->dev, "register \"%s\" count=%zu\n", buf, count);
 
        for(i=0;i<count;i++) //address
        {
@@ -1117,10 +1117,11 @@ static ssize_t dsp_reg_store(struct device *dev,
                        break;
                }
        }
-       printk("addr=0x%x val=0x%x\n",addr,val);
+       dev_dbg(codec->dev, "addr=0x%x val=0x%x\n", addr, val);
        if(i==count)
        {
-               printk("0x%04x = 0x%04x\n",addr,rt3261_dsp_read(codec, addr));
+               dev_dbg(codec->dev, "0x%04x = 0x%04x\n",
+                       addr, rt3261_dsp_read(codec, addr));
        }
        else
        {
@@ -1223,7 +1224,7 @@ int rt_codec_dsp_ioctl_common(struct snd_hwdep *hw, struct file *file, unsigned
                dev_err(codec->dev, "copy_from_user faild\n");
                return -EFAULT;
        }
-       dev_dbg(codec->dev, "rt_codec.number=%d\n",rt_codec.number);
+       dev_dbg(codec->dev, "rt_codec.number=%zu\n", rt_codec.number);
        buf = kmalloc(sizeof(*buf) * rt_codec.number, GFP_KERNEL);
        if (buf == NULL)
                return -ENOMEM;
index e2865dcad602c1aef5401f25b6ce0d868941044c..1350dadb900da92a2886f175f4345676c3562aef 100755 (executable)
@@ -197,8 +197,8 @@ int rt3261_ioctl_common(struct snd_hwdep *hw, struct file *file,
                dev_err(codec->dev,"copy_from_user faild\n");
                return -EFAULT;
        }
-       dev_dbg(codec->dev, "%s(): rt_codec.number=%d, cmd=%d\n",
-                       __func__, rt_codec.number, cmd);
+       dev_dbg(codec->dev, "%s(): rt_codec.number=%zu, cmd=%d\n",
+               __func__, rt_codec.number, cmd);
        buf = kmalloc(sizeof(*buf) * rt_codec.number, GFP_KERNEL);
        if (buf == NULL)
                return -ENOMEM;
index 62e7efcf2d0667a1f205f5f4706f8c6f21f6b223..d74aec90f324ab55c8d4096e7f55d358f2ef9fc9 100755 (executable)
@@ -198,8 +198,8 @@ int rt5640_ioctl_common(struct snd_hwdep *hw, struct file *file,
                dev_err(codec->dev,"copy_from_user faild\n");
                return -EFAULT;
        }
-       dev_dbg(codec->dev, "%s(): rt56xx.number=%d, cmd=%d\n",
-                       __func__, rt56xx.number, cmd);
+       dev_dbg(codec->dev, "%s(): rt56xx.number=%zu, cmd=%d\n",
+               __func__, rt56xx.number, cmd);
        buf = kmalloc(sizeof(*buf) * rt56xx.number, GFP_KERNEL);
        if (buf == NULL)
                return -ENOMEM;
index afc6dcd59846ace5ca204ca99db80298d3549d60..e9067232f9da872f66c9578541b85cb22c7eeca4 100755 (executable)
@@ -43,8 +43,8 @@ static int rt56xx_hwdep_ioctl_common(struct snd_hwdep *hw,
                dev_err(codec->dev,"copy_from_user faild\n");
                return -EFAULT;
        }
-       dev_dbg(codec->dev, "%s(): rt56xx.number=%d, cmd=%d\n",
-                       __func__, rt56xx.number, cmd);
+       dev_dbg(codec->dev, "%s(): rt56xx.number=%zu, cmd=%d\n",
+               __func__, rt56xx.number, cmd);
        buf = kmalloc(sizeof(*buf) * rt56xx.number, GFP_KERNEL);
        if (buf == NULL)
                return -ENOMEM;
index 0b993704f05a9b6a0ef5a2ef6224287981f499ec..ab952a62a8d5f70894e45e5863c31eb9bf5546d0 100644 (file)
@@ -43,8 +43,8 @@ static int rt_codec_hwdep_ioctl_common(struct snd_hwdep *hw,
                dev_err(codec->dev,"copy_from_user faild\n");
                return -EFAULT;
        }
-       dev_dbg(codec->dev, "%s(): rt_codec.number=%d, cmd=%d\n",
-                       __func__, rt_codec.number, cmd);
+       dev_dbg(codec->dev, "%s(): rt_codec.number=%zu, cmd=%d\n",
+               __func__, rt_codec.number, cmd);
        buf = kmalloc(sizeof(*buf) * rt_codec.number, GFP_KERNEL);
        if (buf == NULL)
                return -ENOMEM;