ALSA: hda - Increase PCM stream name buf in patch_realtek.c
authorTakashi Iwai <tiwai@suse.de>
Fri, 31 Jul 2009 08:05:11 +0000 (10:05 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 31 Jul 2009 08:06:34 +0000 (10:06 +0200)
The name buf with size 16 is too short for some codec names, e.g.
truncated like "ALC861-VD Analo".  Now the size is doubled.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/hda/patch_realtek.c

index 8c8b273116fbcc71bbe241bd6f9b63c69fbcd2ef..b95df5d5dcc238bb675ffd1be34500acb5a6c503 100644 (file)
@@ -275,13 +275,13 @@ struct alc_spec {
                                                 */
        unsigned int num_init_verbs;
 
-       char stream_name_analog[16];    /* analog PCM stream */
+       char stream_name_analog[32];    /* analog PCM stream */
        struct hda_pcm_stream *stream_analog_playback;
        struct hda_pcm_stream *stream_analog_capture;
        struct hda_pcm_stream *stream_analog_alt_playback;
        struct hda_pcm_stream *stream_analog_alt_capture;
 
-       char stream_name_digital[16];   /* digital PCM stream */
+       char stream_name_digital[32];   /* digital PCM stream */
        struct hda_pcm_stream *stream_digital_playback;
        struct hda_pcm_stream *stream_digital_capture;