ASoC: wcd9335: Use DT bindings instead of local DAI definitions
Get DAI indices from DT bindings and remove the currently used local definitions. Signed-off-by: Yassine Oudjana <y.oudjana@protonmail.com> Acked-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Link: https://lore.kernel.org/r/20220622161322.168017-3-y.oudjana@protonmail.com Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
57b8b2113e
commit
66348f178d
|
@ -24,6 +24,8 @@
|
||||||
#include "wcd9335.h"
|
#include "wcd9335.h"
|
||||||
#include "wcd-clsh-v2.h"
|
#include "wcd-clsh-v2.h"
|
||||||
|
|
||||||
|
#include <dt-bindings/sound/qcom,wcd9335.h>
|
||||||
|
|
||||||
#define WCD9335_RATES_MASK (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
|
#define WCD9335_RATES_MASK (SNDRV_PCM_RATE_8000 | SNDRV_PCM_RATE_16000 |\
|
||||||
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\
|
SNDRV_PCM_RATE_32000 | SNDRV_PCM_RATE_48000 |\
|
||||||
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000)
|
SNDRV_PCM_RATE_96000 | SNDRV_PCM_RATE_192000)
|
||||||
|
@ -203,17 +205,6 @@ enum wcd9335_sido_voltage {
|
||||||
SIDO_VOLTAGE_NOMINAL_MV = 1100,
|
SIDO_VOLTAGE_NOMINAL_MV = 1100,
|
||||||
};
|
};
|
||||||
|
|
||||||
enum {
|
|
||||||
AIF1_PB = 0,
|
|
||||||
AIF1_CAP,
|
|
||||||
AIF2_PB,
|
|
||||||
AIF2_CAP,
|
|
||||||
AIF3_PB,
|
|
||||||
AIF3_CAP,
|
|
||||||
AIF4_PB,
|
|
||||||
NUM_CODEC_DAIS,
|
|
||||||
};
|
|
||||||
|
|
||||||
enum {
|
enum {
|
||||||
COMPANDER_1, /* HPH_L */
|
COMPANDER_1, /* HPH_L */
|
||||||
COMPANDER_2, /* HPH_R */
|
COMPANDER_2, /* HPH_R */
|
||||||
|
|
Loading…
Reference in New Issue