Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 14880
b: refs/heads/master
c: ab60e30
h: refs/heads/master
v: v3
  • Loading branch information
Hans Verkuil authored and Linus Torvalds committed Dec 1, 2005
1 parent ee0652a commit 6109095
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3535396d3ac7fc5eeda4526aee34494a479cc628
refs/heads/master: ab60e303cd3e73a68d5e397be50a1cb35452513c
14 changes: 8 additions & 6 deletions trunk/drivers/media/video/saa7115.c
Original file line number Diff line number Diff line change
Expand Up @@ -771,17 +771,19 @@ static v4l2_std_id saa7115_get_v4lstd(struct i2c_client *client)

static void saa7115_log_status(struct i2c_client *client)
{
static const char * const audclk_freq_strs[] = {
"44.1 kHz",
"48 kHz",
"32 kHz"
};
struct saa7115_state *state = i2c_get_clientdata(client);
char *audfreq = "undefined";
int reg1e, reg1f;
int signalOk;
int vcr;

saa7115_info("Audio frequency: %s\n", audclk_freq_strs[state->audclk_freq]);
switch (state->audclk_freq) {
case V4L2_AUDCLK_32_KHZ: audfreq = "32 kHz"; break;
case V4L2_AUDCLK_441_KHZ: audfreq = "44.1 kHz"; break;
case V4L2_AUDCLK_48_KHZ: audfreq = "48 kHz"; break;
}

saa7115_info("Audio frequency: %s\n", audfreq);
if (client->name[6] == '4') {
/* status for the saa7114 */
reg1f = saa7115_read(client, 0x1f);
Expand Down

0 comments on commit 6109095

Please sign in to comment.