Unverified Commit 3b621787 authored by Krzysztof Kozlowski's avatar Krzysztof Kozlowski Committed by Mark Brown
Browse files

ASoC: img: Use snd_soc_substream_to_rtd() for accessing private_data

parent b695d8be
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -395,7 +395,7 @@ static int img_i2s_in_dma_prepare_slave_config(struct snd_pcm_substream *st,
	struct snd_pcm_hw_params *params, struct dma_slave_config *sc)
{
	unsigned int i2s_channels = params_channels(params) / 2;
	struct snd_soc_pcm_runtime *rtd = st->private_data;
	struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(st);
	struct snd_dmaengine_dai_dma_data *dma_data;
	int ret;

+1 −1
Original line number Diff line number Diff line
@@ -401,7 +401,7 @@ static int img_i2s_out_dma_prepare_slave_config(struct snd_pcm_substream *st,
	struct snd_pcm_hw_params *params, struct dma_slave_config *sc)
{
	unsigned int i2s_channels = params_channels(params) / 2;
	struct snd_soc_pcm_runtime *rtd = st->private_data;
	struct snd_soc_pcm_runtime *rtd = snd_soc_substream_to_rtd(st);
	struct snd_dmaengine_dai_dma_data *dma_data;
	int ret;