Back to home page

OSCL-LXR

 
 

    


0001 /*
0002  * Copyright © 2016 Intel Corporation
0003  *
0004  * Permission is hereby granted, free of charge, to any person obtaining a
0005  * copy of this software and associated documentation files (the "Software"),
0006  * to deal in the Software without restriction, including without limitation
0007  * the rights to use, copy, modify, merge, publish, distribute, sublicense,
0008  * and/or sell copies of the Software, and to permit persons to whom the
0009  * Software is furnished to do so, subject to the following conditions:
0010  *
0011  * The above copyright notice and this permission notice (including the next
0012  * paragraph) shall be included in all copies or substantial portions of the
0013  * Software.
0014  *
0015  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0016  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0017  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
0018  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0019  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
0020  * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
0021  * IN THE SOFTWARE.
0022  */
0023 
0024 #ifndef _INTEL_LPE_AUDIO_H_
0025 #define _INTEL_LPE_AUDIO_H_
0026 
0027 #include <linux/types.h>
0028 #include <linux/spinlock_types.h>
0029 
0030 struct platform_device;
0031 
0032 #define HDMI_MAX_ELD_BYTES  128
0033 
0034 struct intel_hdmi_lpe_audio_port_pdata {
0035     u8 eld[HDMI_MAX_ELD_BYTES];
0036     int port;
0037     int pipe;
0038     int ls_clock;
0039     bool dp_output;
0040 };
0041 
0042 struct intel_hdmi_lpe_audio_pdata {
0043     struct intel_hdmi_lpe_audio_port_pdata port[3]; /* for ports B,C,D */
0044     int num_ports;
0045     int num_pipes;
0046 
0047     void (*notify_audio_lpe)(struct platform_device *pdev, int port); /* port: 0==B,1==C,2==D */
0048     spinlock_t lpe_audio_slock;
0049 };
0050 
0051 #endif /* _I915_LPE_AUDIO_H_ */