ASoC: cs530x: Correct constant naming

Signed-off-by: Vitaly Rodionov <vitalyr@opensource.cirrus.com>
Link: https://patch.msgid.link/20251023090327.58275-5-vitalyr@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
Vitaly Rodionov
2025-10-23 10:03:12 +01:00
committed by Mark Brown
parent f97ebfda8d
commit ddbcd2f396
2 changed files with 10 additions and 10 deletions

View File

@@ -491,23 +491,23 @@ static int cs530x_hw_params(struct snd_pcm_substream *substream,
break;
case 44100:
case 48000:
fs_val = CS530X_FS_48K_44P1K;
fs_val = CS530X_FS_44P1K_48K;
break;
case 88200:
case 96000:
fs_val = CS530X_FS_96K_88P2K;
fs_val = CS530X_FS_88P2K_96K;
break;
case 176400:
case 192000:
fs_val = CS530X_FS_192K_176P4K;
fs_val = CS530X_FS_176P4K_192K;
break;
case 356800:
case 384000:
fs_val = CS530X_FS_384K_356P8K;
fs_val = CS530X_FS_356P8K_384K;
break;
case 705600:
case 768000:
fs_val = CS530X_FS_768K_705P6K;
fs_val = CS530X_FS_705P6K_768K;
break;
default:
dev_err(component->dev, "Invalid sample rate %d\n", fs);

View File

@@ -73,11 +73,11 @@
/* CLK_CFG_1 */
#define CS530X_SAMPLE_RATE_MASK GENMASK(2, 0)
#define CS530X_FS_32K 0
#define CS530X_FS_48K_44P1K 1
#define CS530X_FS_96K_88P2K 2
#define CS530X_FS_192K_176P4K 3
#define CS530X_FS_384K_356P8K 4
#define CS530X_FS_768K_705P6K 5
#define CS530X_FS_44P1K_48K 1
#define CS530X_FS_88P2K_96K 2
#define CS530X_FS_176P4K_192K 3
#define CS530X_FS_356P8K_384K 4
#define CS530X_FS_705P6K_768K 5
/* CHIP_ENABLE */
#define CS530X_GLOBAL_EN BIT(0)