diff options
author | Keyon Jie <yang.jie@linux.intel.com> | 2019-01-09 16:20:51 +0800 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-01-09 10:29:18 +0100 |
commit | fc2a6cf060d0c6feeb3719bf40088e48c5926e40 (patch) | |
tree | ede7813da14b78480bb290dd2a0eb3f691a5b902 /sound/hda/hdac_stream.c | |
parent | 081e01f059ba03b25499cb4616ec58db0979406d (diff) | |
download | lwn-fc2a6cf060d0c6feeb3719bf40088e48c5926e40.tar.gz lwn-fc2a6cf060d0c6feeb3719bf40088e48c5926e40.zip |
ALSA: hda: Fix a mask wrong issue in snd_hdac_stream_start()
To enable SIE(Stream Interrupt Enable) in snd_hdac_stream_start(), we
should set both mask and value to be "1 << azx_dev->index" for register
update, the mask was 0, here fix it.
Signed-off-by: Keyon Jie <yang.jie@linux.intel.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/hda/hdac_stream.c')
-rw-r--r-- | sound/hda/hdac_stream.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sound/hda/hdac_stream.c b/sound/hda/hdac_stream.c index eee422390d8e..ba73a33480b6 100644 --- a/sound/hda/hdac_stream.c +++ b/sound/hda/hdac_stream.c @@ -56,7 +56,9 @@ void snd_hdac_stream_start(struct hdac_stream *azx_dev, bool fresh_start) azx_dev->start_wallclk -= azx_dev->period_wallclk; /* enable SIE */ - snd_hdac_chip_updatel(bus, INTCTL, 0, 1 << azx_dev->index); + snd_hdac_chip_updatel(bus, INTCTL, + 1 << azx_dev->index, + 1 << azx_dev->index); /* set DMA start and interrupt mask */ snd_hdac_stream_updateb(azx_dev, SD_CTL, 0, SD_CTL_DMA_START | SD_INT_MASK); |