daca.c (75bf465f0bc33e9b776a46d6a1b9b990f5fb7c37) | daca.c (c031b0cc77a1bef980eb360e317a6bbd54211326) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * PMac DACA lowlevel functions 4 * 5 * Copyright (c) by Takashi Iwai <tiwai@suse.de> 6 */ 7 8 --- 172 unchanged lines hidden (view full) --- 181 if (change) { 182 mix->amp_on = !!ucontrol->value.integer.value[0]; 183 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG, 184 mix->amp_on ? 0x05 : 0x04); 185 } 186 return change; 187} 188 | 1// SPDX-License-Identifier: GPL-2.0-or-later 2/* 3 * PMac DACA lowlevel functions 4 * 5 * Copyright (c) by Takashi Iwai <tiwai@suse.de> 6 */ 7 8 --- 172 unchanged lines hidden (view full) --- 181 if (change) { 182 mix->amp_on = !!ucontrol->value.integer.value[0]; 183 i2c_smbus_write_byte_data(mix->i2c.client, DACA_REG_GCFG, 184 mix->amp_on ? 0x05 : 0x04); 185 } 186 return change; 187} 188 |
189static struct snd_kcontrol_new daca_mixers[] = { | 189static const struct snd_kcontrol_new daca_mixers[] = { |
190 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 191 .name = "Deemphasis Switch", 192 .info = daca_info_deemphasis, 193 .get = daca_get_deemphasis, 194 .put = daca_put_deemphasis 195 }, 196 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 197 .name = "Master Playback Volume", --- 72 unchanged lines hidden --- | 190 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 191 .name = "Deemphasis Switch", 192 .info = daca_info_deemphasis, 193 .get = daca_get_deemphasis, 194 .put = daca_put_deemphasis 195 }, 196 { .iface = SNDRV_CTL_ELEM_IFACE_MIXER, 197 .name = "Master Playback Volume", --- 72 unchanged lines hidden --- |