From 5b41857a2253b98f411a7c5f3d2a8b8e94973eff Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 14 Mar 2023 20:08:09 +0100 Subject: [PATCH] mixer/plugins/volume_mapping: add SPDX header --- src/mixer/plugins/volume_mapping.c | 17 ++--------------- src/mixer/plugins/volume_mapping.h | 7 +++---- 2 files changed, 5 insertions(+), 19 deletions(-) diff --git a/src/mixer/plugins/volume_mapping.c b/src/mixer/plugins/volume_mapping.c index beecce640..27e6e3761 100644 --- a/src/mixer/plugins/volume_mapping.c +++ b/src/mixer/plugins/volume_mapping.c @@ -1,18 +1,5 @@ -/* - * Copyright (c) 2010 Clemens Ladisch - * - * Permission to use, copy, modify, and/or distribute this software for any - * purpose with or without fee is hereby granted, provided that the above - * copyright notice and this permission notice appear in all copies. - * - * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES - * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF - * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR - * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES - * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN - * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF - * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - */ +// SPDX-License-Identifier: ISC +// Copyright (c) 2010 Clemens Ladisch /* * The functions in this file map the value ranges of ALSA mixer controls onto diff --git a/src/mixer/plugins/volume_mapping.h b/src/mixer/plugins/volume_mapping.h index f781542cf..8790908f4 100644 --- a/src/mixer/plugins/volume_mapping.h +++ b/src/mixer/plugins/volume_mapping.h @@ -1,5 +1,6 @@ -#ifndef VOLUME_MAPPING_H_INCLUDED -#define VOLUME_MAPPING_H_INCLUDED +// SPDX-License-Identifier: ISC + +#pragma once #include @@ -13,5 +14,3 @@ int set_normalized_playback_volume(snd_mixer_elem_t *elem, int set_normalized_capture_volume(snd_mixer_elem_t *elem, double volume, int dir); - -#endif