Commit 5abd4888 authored by Takashi Iwai's avatar Takashi Iwai

ALSA: hda - Fix truncated control names

... like "Speaker Surround Playback Switch".
This fix had been already applied to patch_conexant.c but was
forgotten in other places, then migrated to hda_generic.c.
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent c30aa7b2
...@@ -1497,7 +1497,7 @@ static int create_extra_outs(struct hda_codec *codec, int num_pins, ...@@ -1497,7 +1497,7 @@ static int create_extra_outs(struct hda_codec *codec, int num_pins,
{ {
struct hda_gen_spec *spec = codec->spec; struct hda_gen_spec *spec = codec->spec;
struct hda_bind_ctls *ctl; struct hda_bind_ctls *ctl;
char name[32]; char name[44];
int i, n, err; int i, n, err;
if (!num_pins || !pins[0]) if (!num_pins || !pins[0])
...@@ -2545,7 +2545,7 @@ static int parse_mic_boost(struct hda_codec *codec) ...@@ -2545,7 +2545,7 @@ static int parse_mic_boost(struct hda_codec *codec)
nid = cfg->inputs[i].pin; nid = cfg->inputs[i].pin;
if (get_wcaps(codec, nid) & AC_WCAP_IN_AMP) { if (get_wcaps(codec, nid) & AC_WCAP_IN_AMP) {
const char *label; const char *label;
char boost_label[32]; char boost_label[44];
struct nid_path *path; struct nid_path *path;
unsigned int val; unsigned int val;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment