File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change 27
27
#define SDnFMT_BITS (x ) ((x) << 4)
28
28
#define SDnFMT_CHAN (x ) ((x) << 0)
29
29
30
- static inline u32 get_mult_div (struct snd_sof_dev * sdev , int rate )
30
+ u32 hda_dsp_get_mult_div (struct snd_sof_dev * sdev , int rate )
31
31
{
32
32
switch (rate ) {
33
33
case 8000 :
@@ -61,7 +61,7 @@ static inline u32 get_mult_div(struct snd_sof_dev *sdev, int rate)
61
61
}
62
62
};
63
63
64
- static inline u32 get_bits (struct snd_sof_dev * sdev , int sample_bits )
64
+ u32 hda_dsp_get_bits (struct snd_sof_dev * sdev , int sample_bits )
65
65
{
66
66
switch (sample_bits ) {
67
67
case 8 :
@@ -95,8 +95,8 @@ int hda_dsp_pcm_hw_params(struct snd_sof_dev *sdev,
95
95
u32 size , rate , bits ;
96
96
97
97
size = params_buffer_bytes (params );
98
- rate = get_mult_div (sdev , params_rate (params ));
99
- bits = get_bits (sdev , params_width (params ));
98
+ rate = hda_dsp_get_mult_div (sdev , params_rate (params ));
99
+ bits = hda_dsp_get_bits (sdev , params_width (params ));
100
100
101
101
hstream -> substream = substream ;
102
102
Original file line number Diff line number Diff line change @@ -502,6 +502,8 @@ void hda_dsp_d0i3_work(struct work_struct *work);
502
502
/*
503
503
* DSP PCM Operations.
504
504
*/
505
+ u32 hda_dsp_get_mult_div (struct snd_sof_dev * sdev , int rate );
506
+ u32 hda_dsp_get_bits (struct snd_sof_dev * sdev , int sample_bits );
505
507
int hda_dsp_pcm_open (struct snd_sof_dev * sdev ,
506
508
struct snd_pcm_substream * substream );
507
509
int hda_dsp_pcm_close (struct snd_sof_dev * sdev ,
You can’t perform that action at this time.
0 commit comments