diff options
Diffstat (limited to 'sound/core/oss/linear.c')
| -rw-r--r-- | sound/core/oss/linear.c | 10 | 
1 files changed, 4 insertions, 6 deletions
diff --git a/sound/core/oss/linear.c b/sound/core/oss/linear.c index 4c1d1682719..2045697f449 100644 --- a/sound/core/oss/linear.c +++ b/sound/core/oss/linear.c @@ -90,11 +90,8 @@ static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin,  			       struct snd_pcm_plugin_channel *dst_channels,  			       snd_pcm_uframes_t frames)  { -	struct linear_priv *data; -  	if (snd_BUG_ON(!plugin || !src_channels || !dst_channels))  		return -ENXIO; -	data = (struct linear_priv *)plugin->extra_data;  	if (frames == 0)  		return 0;  #ifdef CONFIG_SND_DEBUG @@ -114,7 +111,8 @@ static snd_pcm_sframes_t linear_transfer(struct snd_pcm_plugin *plugin,  	return frames;  } -static void init_data(struct linear_priv *data, int src_format, int dst_format) +static void init_data(struct linear_priv *data, +		      snd_pcm_format_t src_format, snd_pcm_format_t dst_format)  {  	int src_le, dst_le, src_bytes, dst_bytes; @@ -140,9 +138,9 @@ static void init_data(struct linear_priv *data, int src_format, int dst_format)  	if (snd_pcm_format_signed(src_format) !=  	    snd_pcm_format_signed(dst_format)) {  		if (dst_le) -			data->flip = cpu_to_le32(0x80000000); +			data->flip = (__force u32)cpu_to_le32(0x80000000);  		else -			data->flip = cpu_to_be32(0x80000000); +			data->flip = (__force u32)cpu_to_be32(0x80000000);  	}  }  | 
