summaryrefslogtreecommitdiffstats
path: root/block/badblocks.c
diff options
context:
space:
mode:
authorAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>2019-06-17 13:36:35 +0200
committerMark Brown <broonie@kernel.org>2019-06-25 16:32:58 +0200
commit8a5b0177a7f6099ff534a4d9ce72673af5c3cade (patch)
treecefe9e3842b694ab70667c529bddfcc55f3ee05c /block/badblocks.c
parentASoC: Intel: Skylake: Initialize lists before access so they are safe to use (diff)
downloadlinux-8a5b0177a7f6099ff534a4d9ce72673af5c3cade.tar.xz
linux-8a5b0177a7f6099ff534a4d9ce72673af5c3cade.zip
ALSA: hdac: Fix codec name after machine driver is unloaded and reloaded
Currently on each driver reload internal counter is being increased. It causes failure to enumerate driver devices, as they have hardcoded: .codec_name = "ehdaudio0D2", As there is currently no devices with multiple hda codecs and there is currently no established way to reliably differentiate, between them, always assign bus->idx = 0; This fixes a problem when we unload and reload machine driver idx gets incremented, so .codec_name would've needed to be set to "ehdaudio1D2" after first reload and so on. Signed-off-by: Amadeusz Sławiński <amadeuszx.slawinski@linux.intel.com> Acked-by: Takashi Iwai <tiwai@suse.de> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'block/badblocks.c')
0 files changed, 0 insertions, 0 deletions