OSDN Git Service

ALSA: cs4281: Fix missing chip initialization
authorTakashi Iwai <tiwai@suse.de>
Tue, 20 Jul 2021 22:17:20 +0000 (00:17 +0200)
committerTakashi Iwai <tiwai@suse.de>
Tue, 20 Jul 2021 22:31:39 +0000 (00:31 +0200)
commit35fe7901150d5a4a67b4bab544e926fbbf00ebfe
treef3db7fda90654647ac4cfeb8bcafcb0d9d5f0d0f
parent9b7843d1e125dca0d6ed0af9e8dd709d41eb25ad
ALSA: cs4281: Fix missing chip initialization

The chip variable was forgotten to be initialized properly while
changing the object creation from the own malloc to
card->private_data.  This patch fixes it.

Fixes: 99041fea70d0 ("ALSA: cs4281: Allocate resources with device-managed APIs")
Reported-by: Nathan Chancellor <nathan@kernel.org>
Link: https://lore.kernel.org/r/s5him14ocjz.wl-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/cs4281.c