ak4531_codec.c (efb0ad25d370344e61bb4fca8c3b9c3c6047922e) | ak4531_codec.c (b4e5e70775546480035e156b40040e5d0d4264d1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * Universal routines for AK4531 codec 5 */ 6 7#include <linux/delay.h> 8#include <linux/init.h> --- 241 unchanged lines hidden (view full) --- 250 mutex_unlock(&ak4531->reg_mutex); 251 return change; 252} 253 254static const DECLARE_TLV_DB_SCALE(db_scale_master, -6200, 200, 0); 255static const DECLARE_TLV_DB_SCALE(db_scale_mono, -2800, 400, 0); 256static const DECLARE_TLV_DB_SCALE(db_scale_input, -5000, 200, 0); 257 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * Copyright (c) by Jaroslav Kysela <perex@perex.cz> 4 * Universal routines for AK4531 codec 5 */ 6 7#include <linux/delay.h> 8#include <linux/init.h> --- 241 unchanged lines hidden (view full) --- 250 mutex_unlock(&ak4531->reg_mutex); 251 return change; 252} 253 254static const DECLARE_TLV_DB_SCALE(db_scale_master, -6200, 200, 0); 255static const DECLARE_TLV_DB_SCALE(db_scale_mono, -2800, 400, 0); 256static const DECLARE_TLV_DB_SCALE(db_scale_input, -5000, 200, 0); 257 |
258static struct snd_kcontrol_new snd_ak4531_controls[] = { | 258static const struct snd_kcontrol_new snd_ak4531_controls[] = { |
259 260AK4531_DOUBLE_TLV("Master Playback Switch", 0, 261 AK4531_LMASTER, AK4531_RMASTER, 7, 7, 1, 1, 262 db_scale_master), 263AK4531_DOUBLE("Master Playback Volume", 0, AK4531_LMASTER, AK4531_RMASTER, 0, 0, 0x1f, 1), 264 265AK4531_SINGLE_TLV("Master Mono Playback Switch", 0, AK4531_MONO_OUT, 7, 1, 1, 266 db_scale_mono), --- 204 unchanged lines hidden --- | 259 260AK4531_DOUBLE_TLV("Master Playback Switch", 0, 261 AK4531_LMASTER, AK4531_RMASTER, 7, 7, 1, 1, 262 db_scale_master), 263AK4531_DOUBLE("Master Playback Volume", 0, AK4531_LMASTER, AK4531_RMASTER, 0, 0, 0x1f, 1), 264 265AK4531_SINGLE_TLV("Master Mono Playback Switch", 0, AK4531_MONO_OUT, 7, 1, 1, 266 db_scale_mono), --- 204 unchanged lines hidden --- |