summaryrefslogtreecommitdiff
path: root/sound/ppc/daca.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2024-08-07 15:34:39 +0200
committerTakashi Iwai <tiwai@suse.de>2024-08-08 07:49:47 +0200
commit76a6ef90d5400dbd282803a2d4de70b1bef593f7 (patch)
tree7bf3c0a3e56e01e56e65956051ec69f3c2dd0ed6 /sound/ppc/daca.c
parent7ba0212231bc89571cbb916545ac1237084e1ad6 (diff)
ALSA: ppc: Use standard print API
Use the standard print API with dev_*() instead of the old house-baked one. It gives better information and allows dynamically control of debug prints. Reviewed-by: Jaroslav Kysela <perex@perex.cz> Signed-off-by: Takashi Iwai <tiwai@suse.de> Link: https://patch.msgid.link/20240807133452.9424-50-tiwai@suse.de
Diffstat (limited to 'sound/ppc/daca.c')
-rw-r--r--sound/ppc/daca.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/ppc/daca.c b/sound/ppc/daca.c
index 4da9278dd58a..d5766952f3db 100644
--- a/sound/ppc/daca.c
+++ b/sound/ppc/daca.c
@@ -69,7 +69,7 @@ static int daca_set_volume(struct pmac_daca *mix)
data[1] |= mix->deemphasis ? 0x40 : 0;
if (i2c_smbus_write_block_data(mix->i2c.client, DACA_REG_AVOL,
2, data) < 0) {
- snd_printk(KERN_ERR "failed to set volume \n");
+ dev_err(&mix->i2c.client->dev, "failed to set volume\n");
return -EINVAL;
}
return 0;