linux/sound/pci/hda/hda_beep.h

/* SPDX-License-Identifier: GPL-2.0+ */
/*
 * Digital Beep Input Interface for HD-audio codec
 *
 * Author: Matt Ranostay <[email protected]>
 * Copyright (c) 2008 Embedded Alley Solutions Inc
 */

#ifndef __SOUND_HDA_BEEP_H
#define __SOUND_HDA_BEEP_H

#include <sound/hda_codec.h>

#define HDA_BEEP_MODE_OFF
#define HDA_BEEP_MODE_ON

/* beep information */
struct hda_beep {};

#ifdef CONFIG_SND_HDA_INPUT_BEEP
int snd_hda_enable_beep_device(struct hda_codec *codec, int enable);
int snd_hda_attach_beep_device(struct hda_codec *codec, int nid);
void snd_hda_detach_beep_device(struct hda_codec *codec);
#else
static inline int snd_hda_attach_beep_device(struct hda_codec *codec, int nid)
{
	return 0;
}
static inline void snd_hda_detach_beep_device(struct hda_codec *codec)
{
}
#endif
#endif