ALSA: oxfw: Change the way to start stream
In past commit, this driver can keep stream formations for each sampling rate. So its stream functionality can decide stream formations with given some parameters. This commit moves related codes from PCM functionality to stream functionality. Furthermore, to set stream format correctly, this commit uses AV/C Stream Format Information command instead of AV/C Input/Output Plug Signal Format command. Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp> Acked-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Takashi Iwai <tiwai@suse.de>
这个提交包含在:
@@ -89,7 +89,8 @@ int avc_general_inquiry_sig_fmt(struct fw_unit *unit, unsigned int rate,
|
||||
unsigned short pid);
|
||||
|
||||
int snd_oxfw_stream_init_simplex(struct snd_oxfw *oxfw);
|
||||
int snd_oxfw_stream_start_simplex(struct snd_oxfw *oxfw);
|
||||
int snd_oxfw_stream_start_simplex(struct snd_oxfw *oxfw, unsigned int rate,
|
||||
unsigned int pcm_channels);
|
||||
void snd_oxfw_stream_stop_simplex(struct snd_oxfw *oxfw);
|
||||
void snd_oxfw_stream_destroy_simplex(struct snd_oxfw *oxfw);
|
||||
void snd_oxfw_stream_update_simplex(struct snd_oxfw *oxfw);
|
||||
|
在新工单中引用
屏蔽一个用户