rt700-sdw.c (d0bbcb4e836f0ffc6c0aeba6341ce227384805e3) | rt700-sdw.c (2acd30b9f6032c6cbefc5e255c17ebbb0718e56a) |
---|---|
1// SPDX-License-Identifier: GPL-2.0 2// 3// rt700-sdw.c -- rt700 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8 9#include <linux/delay.h> 10#include <linux/device.h> 11#include <linux/mod_devicetable.h> 12#include <linux/soundwire/sdw.h> 13#include <linux/soundwire/sdw_type.h> | 1// SPDX-License-Identifier: GPL-2.0 2// 3// rt700-sdw.c -- rt700 ALSA SoC audio driver 4// 5// Copyright(c) 2019 Realtek Semiconductor Corp. 6// 7// 8 9#include <linux/delay.h> 10#include <linux/device.h> 11#include <linux/mod_devicetable.h> 12#include <linux/soundwire/sdw.h> 13#include <linux/soundwire/sdw_type.h> |
14#include <linux/soundwire/sdw_registers.h> |
|
14#include <linux/module.h> 15#include <linux/regmap.h> 16#include <sound/soc.h> 17#include "rt700.h" 18#include "rt700-sdw.h" 19 20static bool rt700_readable_register(struct device *dev, unsigned int reg) 21{ --- 311 unchanged lines hidden (view full) --- 333static int rt700_read_prop(struct sdw_slave *slave) 334{ 335 struct sdw_slave_prop *prop = &slave->prop; 336 int nval, i; 337 u32 bit; 338 unsigned long addr; 339 struct sdw_dpn_prop *dpn; 340 | 15#include <linux/module.h> 16#include <linux/regmap.h> 17#include <sound/soc.h> 18#include "rt700.h" 19#include "rt700-sdw.h" 20 21static bool rt700_readable_register(struct device *dev, unsigned int reg) 22{ --- 311 unchanged lines hidden (view full) --- 334static int rt700_read_prop(struct sdw_slave *slave) 335{ 336 struct sdw_slave_prop *prop = &slave->prop; 337 int nval, i; 338 u32 bit; 339 unsigned long addr; 340 struct sdw_dpn_prop *dpn; 341 |
342 prop->scp_int1_mask = SDW_SCP_INT1_IMPL_DEF | SDW_SCP_INT1_BUS_CLASH | 343 SDW_SCP_INT1_PARITY; 344 |
|
341 prop->paging_support = false; 342 343 /* first we need to allocate memory for set bits in port lists */ 344 prop->source_ports = 0x14; /* BITMAP: 00010100 */ 345 prop->sink_ports = 0xA; /* BITMAP: 00001010 */ 346 347 nval = hweight32(prop->source_ports); 348 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, --- 187 unchanged lines hidden --- | 345 prop->paging_support = false; 346 347 /* first we need to allocate memory for set bits in port lists */ 348 prop->source_ports = 0x14; /* BITMAP: 00010100 */ 349 prop->sink_ports = 0xA; /* BITMAP: 00001010 */ 350 351 nval = hweight32(prop->source_ports); 352 prop->src_dpn_prop = devm_kcalloc(&slave->dev, nval, --- 187 unchanged lines hidden --- |