Skip to content

Commit

Permalink
ALSA: hda - Fix truncated control names
Browse files Browse the repository at this point in the history
... 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: Takashi Iwai <tiwai@suse.de>
  • Loading branch information
Takashi Iwai committed Jan 12, 2013
1 parent c30aa7b commit 5abd488
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/pci/hda/hda_generic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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_bind_ctls *ctl;
char name[32];
char name[44];
int i, n, err;

if (!num_pins || !pins[0])
Expand Down Expand Up @@ -2545,7 +2545,7 @@ static int parse_mic_boost(struct hda_codec *codec)
nid = cfg->inputs[i].pin;
if (get_wcaps(codec, nid) & AC_WCAP_IN_AMP) {
const char *label;
char boost_label[32];
char boost_label[44];
struct nid_path *path;
unsigned int val;

Expand Down

0 comments on commit 5abd488

Please sign in to comment.