alsa-mixer: Set mdev to NULL if there is no mapping 09/268709/2
authorIgor V. Kovalenko <igor.v.kovalenko@gmail.com>
Fri, 6 Aug 2021 19:26:40 +0000 (22:26 +0300)
committerSeungbae Shin <seungbae.shin@samsung.com>
Mon, 24 Jan 2022 03:33:27 +0000 (03:33 +0000)
commitce033b0c9d2049fbca56ea54dc0ea5b3ebf2e827
tree5b7cce7554a16877662f053e5b9b4e21361922fa
parent81e423c8492d89ecdc21aa4346fef6dae42b1f49
alsa-mixer: Set mdev to NULL if there is no mapping

We check if mapping is NULL but if so we never set mdev, set it to NULL as well.

Fixes: 79cb1369fc4d22966cb65253e9da2ccda2f25b45
Change-Id: I615491e5752f2ad23794b90170fee291525659ce
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/615>
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c