blob: ca2119096ad771f880732e3e12ec102fdd73f622 [file] [log] [blame]
/*
* include/linux/amlogic/media/sound/aout_notify.h
*
* Copyright (C) 2017 Amlogic, Inc. All rights reserved.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
*/
#ifndef _AML_NOTIFY_H
#define _AML_NOTIFY_H
#include <linux/notifier.h>
/* HDMI audio stream type ID */
#define AOUT_EVENT_IEC_60958_PCM 0x1
#define AOUT_EVENT_RAWDATA_AC_3 0x2
#define AOUT_EVENT_RAWDATA_MPEG1 0x3
#define AOUT_EVENT_RAWDATA_MP3 0x4
#define AOUT_EVENT_RAWDATA_MPEG2 0x5
#define AOUT_EVENT_RAWDATA_AAC 0x6
#define AOUT_EVENT_RAWDATA_DTS 0x7
#define AOUT_EVENT_RAWDATA_ATRAC 0x8
#define AOUT_EVENT_RAWDATA_ONE_BIT_AUDIO 0x9
#define AOUT_EVENT_RAWDATA_DOBLY_DIGITAL_PLUS 0xA
#define AOUT_EVENT_RAWDATA_DTS_HD 0xB
#define AOUT_EVENT_RAWDATA_MAT_MLP 0xC
#define AOUT_EVENT_RAWDATA_DST 0xD
#define AOUT_EVENT_RAWDATA_WMA_PRO 0xE
#define AOUT_EVENT_RAWDATA_DTS_HD_MA (AOUT_EVENT_RAWDATA_DTS_HD|(1<<8))
int aout_notifier_call_chain(unsigned long val, void *v);
int aout_unregister_client(struct notifier_block *p);
int aout_register_client(struct notifier_block *p);
#endif /* _AML_NOTIFY_H */