diff options
Diffstat (limited to 'sound/pci/ice1712/psc724.c')
-rw-r--r-- | sound/pci/ice1712/psc724.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/pci/ice1712/psc724.c b/sound/pci/ice1712/psc724.c index 302ac6ddd545..4019cf27d117 100644 --- a/sound/pci/ice1712/psc724.c +++ b/sound/pci/ice1712/psc724.c | |||
@@ -203,12 +203,12 @@ static void psc724_set_jack_state(struct snd_ice1712 *ice, bool hp_connected) | |||
203 | /* notify about master speaker mute change */ | 203 | /* notify about master speaker mute change */ |
204 | memset(&elem_id, 0, sizeof(elem_id)); | 204 | memset(&elem_id, 0, sizeof(elem_id)); |
205 | elem_id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; | 205 | elem_id.iface = SNDRV_CTL_ELEM_IFACE_MIXER; |
206 | strncpy(elem_id.name, "Master Speakers Playback Switch", | 206 | strlcpy(elem_id.name, "Master Speakers Playback Switch", |
207 | sizeof(elem_id.name)); | 207 | sizeof(elem_id.name)); |
208 | kctl = snd_ctl_find_id(ice->card, &elem_id); | 208 | kctl = snd_ctl_find_id(ice->card, &elem_id); |
209 | snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); | 209 | snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); |
210 | /* and headphone mute change */ | 210 | /* and headphone mute change */ |
211 | strncpy(elem_id.name, spec->wm8776.ctl[WM8776_CTL_HP_SW].name, | 211 | strlcpy(elem_id.name, spec->wm8776.ctl[WM8776_CTL_HP_SW].name, |
212 | sizeof(elem_id.name)); | 212 | sizeof(elem_id.name)); |
213 | kctl = snd_ctl_find_id(ice->card, &elem_id); | 213 | kctl = snd_ctl_find_id(ice->card, &elem_id); |
214 | snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); | 214 | snd_ctl_notify(ice->card, SNDRV_CTL_EVENT_MASK_VALUE, &kctl->id); |