diff options
author | Takashi Iwai <tiwai@suse.de> | 2019-08-06 12:46:26 +0200 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2019-08-06 12:46:35 +0200 |
commit | dae02c8c64937532466d95fdb6ead6ada8000673 (patch) | |
tree | 1aa28cc48c37996a7e75aceb5f2430b7f0305127 /include/sound | |
parent | ALSA: firewire-lib: localize kernel APIs to start/stop each AMDTP stream (diff) | |
parent | ALSA: usb-audio: fix a memory leak bug (diff) | |
download | linux-dev-dae02c8c64937532466d95fdb6ead6ada8000673.tar.xz linux-dev-dae02c8c64937532466d95fdb6ead6ada8000673.zip |
Merge branch 'for-linus' into for-next
Pull 5.3 development branch for further fixes of USB-audio stuff.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/sound')
-rw-r--r-- | include/sound/compress_driver.h | 5 | ||||
-rw-r--r-- | include/sound/simple_card_utils.h | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/include/sound/compress_driver.h b/include/sound/compress_driver.h index c5188ff724d1..bc88d6f964da 100644 --- a/include/sound/compress_driver.h +++ b/include/sound/compress_driver.h @@ -173,10 +173,7 @@ static inline void snd_compr_drain_notify(struct snd_compr_stream *stream) if (snd_BUG_ON(!stream)) return; - if (stream->direction == SND_COMPRESS_PLAYBACK) - stream->runtime->state = SNDRV_PCM_STATE_SETUP; - else - stream->runtime->state = SNDRV_PCM_STATE_PREPARED; + stream->runtime->state = SNDRV_PCM_STATE_SETUP; wake_up(&stream->runtime->sleep); } diff --git a/include/sound/simple_card_utils.h b/include/sound/simple_card_utils.h index 954563ee2277..985a5f583de4 100644 --- a/include/sound/simple_card_utils.h +++ b/include/sound/simple_card_utils.h @@ -141,6 +141,10 @@ inline void asoc_simple_debug_dai(struct asoc_simple_priv *priv, { struct device *dev = simple_priv_to_dev(priv); + /* dai might be NULL */ + if (!dai) + return; + if (dai->name) dev_dbg(dev, "%s dai name = %s\n", name, dai->name); |