Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * ALSA SoC Audio Layer - Samsung I2S Controller driver
0004  *
0005  * Copyright (c) 2010 Samsung Electronics Co. Ltd.
0006  *  Jaswinder Singh <jassisinghbrar@gmail.com>
0007  */
0008 
0009 #ifndef __SND_SOC_SAMSUNG_I2S_H
0010 #define __SND_SOC_SAMSUNG_I2S_H
0011 
0012 #define SAMSUNG_I2S_DAI        "samsung-i2s"
0013 #define SAMSUNG_I2S_DAI_SEC    "samsung-i2s-sec"
0014 
0015 #define SAMSUNG_I2S_DIV_BCLK        1
0016 
0017 #define SAMSUNG_I2S_RCLKSRC_0       0
0018 #define SAMSUNG_I2S_RCLKSRC_1       1
0019 #define SAMSUNG_I2S_CDCLK       2
0020 /* Operation clock for IIS logic */
0021 #define SAMSUNG_I2S_OPCLK       3
0022 #define  SAMSUNG_I2S_OPCLK_CDCLK_OUT    0   /* CODEC clock out */
0023 #define  SAMSUNG_I2S_OPCLK_CDCLK_IN 1   /* CODEC clock in */
0024 #define  SAMSUNG_I2S_OPCLK_BCLK_OUT 2   /* Bit clock out */
0025 #define  SAMSUNG_I2S_OPCLK_PCLK     3   /* Audio bus clock */
0026 
0027 #endif /* __SND_SOC_SAMSUNG_I2S_H */