prodigy_hifi.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | prodigy_hifi.c (b4e5e70775546480035e156b40040e5d0d4264d1) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * ALSA driver for ICEnsemble VT1724 (Envy24HT) 4 * 5 * Lowlevel functions for Audiotrak Prodigy 7.1 Hifi 6 * based on pontis.c 7 * 8 * Copyright (c) 2007 Julian Scheel <julian@jusst.de> --- 270 unchanged lines hidden (view full) --- 279 } 280 mutex_unlock(&ice->gpio_mutex); 281 return change; 282} 283 284static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); 285static const DECLARE_TLV_DB_LINEAR(ak4396_db_scale, TLV_DB_GAIN_MUTE, 0); 286 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * ALSA driver for ICEnsemble VT1724 (Envy24HT) 4 * 5 * Lowlevel functions for Audiotrak Prodigy 7.1 Hifi 6 * based on pontis.c 7 * 8 * Copyright (c) 2007 Julian Scheel <julian@jusst.de> --- 270 unchanged lines hidden (view full) --- 279 } 280 mutex_unlock(&ice->gpio_mutex); 281 return change; 282} 283 284static const DECLARE_TLV_DB_SCALE(db_scale_wm_dac, -12700, 100, 1); 285static const DECLARE_TLV_DB_LINEAR(ak4396_db_scale, TLV_DB_GAIN_MUTE, 0); 286 |
287static struct snd_kcontrol_new prodigy_hd2_controls[] = { | 287static const struct snd_kcontrol_new prodigy_hd2_controls[] = { |
288 { 289 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 290 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 291 SNDRV_CTL_ELEM_ACCESS_TLV_READ), 292 .name = "Front Playback Volume", 293 .info = ak4396_dac_vol_info, 294 .get = ak4396_dac_vol_get, 295 .put = ak4396_dac_vol_put, --- 440 unchanged lines hidden (view full) --- 736 return change; 737} 738 739 740/* 741 * mixers 742 */ 743 | 288 { 289 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 290 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 291 SNDRV_CTL_ELEM_ACCESS_TLV_READ), 292 .name = "Front Playback Volume", 293 .info = ak4396_dac_vol_info, 294 .get = ak4396_dac_vol_get, 295 .put = ak4396_dac_vol_put, --- 440 unchanged lines hidden (view full) --- 736 return change; 737} 738 739 740/* 741 * mixers 742 */ 743 |
744static struct snd_kcontrol_new prodigy_hifi_controls[] = { | 744static const struct snd_kcontrol_new prodigy_hifi_controls[] = { |
745 { 746 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 747 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 748 SNDRV_CTL_ELEM_ACCESS_TLV_READ), 749 .name = "Master Playback Volume", 750 .info = wm_master_vol_info, 751 .get = wm_master_vol_get, 752 .put = wm_master_vol_put, --- 513 unchanged lines hidden --- | 745 { 746 .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 747 .access = (SNDRV_CTL_ELEM_ACCESS_READWRITE | 748 SNDRV_CTL_ELEM_ACCESS_TLV_READ), 749 .name = "Master Playback Volume", 750 .info = wm_master_vol_info, 751 .get = wm_master_vol_get, 752 .put = wm_master_vol_put, --- 513 unchanged lines hidden --- |