diff options
Diffstat (limited to 'sound/pci/hda/patch_si3054.c')
-rw-r--r-- | sound/pci/hda/patch_si3054.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/pci/hda/patch_si3054.c b/sound/pci/hda/patch_si3054.c index b0270d1b64ce..d014b7bb70df 100644 --- a/sound/pci/hda/patch_si3054.c +++ b/sound/pci/hda/patch_si3054.c | |||
@@ -214,6 +214,7 @@ static int si3054_build_pcms(struct hda_codec *codec) | |||
214 | info->name = "Si3054 Modem"; | 214 | info->name = "Si3054 Modem"; |
215 | info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm; | 215 | info->stream[SNDRV_PCM_STREAM_PLAYBACK] = si3054_pcm; |
216 | info->stream[SNDRV_PCM_STREAM_CAPTURE] = si3054_pcm; | 216 | info->stream[SNDRV_PCM_STREAM_CAPTURE] = si3054_pcm; |
217 | info->is_modem = 1; | ||
217 | return 0; | 218 | return 0; |
218 | } | 219 | } |
219 | 220 | ||
@@ -282,7 +283,7 @@ static struct hda_codec_ops si3054_patch_ops = { | |||
282 | 283 | ||
283 | static int patch_si3054(struct hda_codec *codec) | 284 | static int patch_si3054(struct hda_codec *codec) |
284 | { | 285 | { |
285 | struct si3054_spec *spec = kcalloc(1, sizeof(*spec), GFP_KERNEL); | 286 | struct si3054_spec *spec = kzalloc(sizeof(*spec), GFP_KERNEL); |
286 | if (spec == NULL) | 287 | if (spec == NULL) |
287 | return -ENOMEM; | 288 | return -ENOMEM; |
288 | codec->spec = spec; | 289 | codec->spec = spec; |